GNU bug report logs - #42854
26.1; ERC: erc-send-current-line does not expand global abbrevs

Previous Next

Package: emacs;

Reported by: "Bradley M. Kuhn" <bkuhn <at> ebb.org>

Date: Thu, 13 Aug 2020 19:12:01 UTC

Severity: normal

Tags: fixed

Found in version 26.1

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42854 in the body.
You can then email your comments to 42854 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#42854; Package emacs. (Thu, 13 Aug 2020 19:12:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Bradley M. Kuhn" <bkuhn <at> ebb.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 13 Aug 2020 19:12:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Bradley M. Kuhn" <bkuhn <at> ebb.org>
To: bug-gnu-emacs <at> gnu.org
Cc: emacs-erc <at> gnu.org
Subject: 26.1; ERC: erc-send-current-line does not expand global abbrevs
Date: Thu, 13 Aug 2020 12:10:29 -0700
erc-send-current-line does not expand abbrevs from the global abbrevs
table.  In most modes, hitting <RET> at the end of a line will in fact
expand the abbrev at the point, but hitting <RET> at the end of a line in an
ERC buffer on an IRC channel (which, in ERC mode, is bound to
erc-send-current-line) does not expand the abbrev.

BTW, Thank you so much for ERC and GNU Emacs.  I use both daily!

In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.5)
 of 2019-09-22, modified by Debian built on x86-grnet-01
Windowing system distributor 'The X.Org Foundation', version 11.0.12004000
System Description:	Debian GNU/Linux 10 (buster)

Recent messages:
RET (translated from <return>) runs the command erc-send-current-line

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --enable-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils --build x86_64-linux-gnu
 --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man
 --enable-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils --with-x=yes
 --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs-StqULU/emacs-26.1+1=. -fstack-protector-strong
 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro'

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL
LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LIBSYSTEMD LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Fundamental

Minor modes in effect:
  erc-networks-mode: t
  erc-capab-identify-mode: t
  erc-spelling-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-ring-mode: t
  erc-pcomplete-mode: t
  erc-netsplit-mode: t
  erc-log-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  desktop-save-mode: t
  which-function-mode: t
  global-magit-file-mode: t
  diff-auto-refine-mode: t
  magit-auto-revert-mode: t
  global-git-commit-mode: t
  async-bytecomp-package-mode: t
  shell-dirtrack-mode: t
  display-time-mode: t
  erc-stamp-mode: t
  erc-match-mode: t
  erc-smiley-mode: t
  erc-irccontrols-mode: t
  erc-noncommands-mode: t
  erc-move-to-prompt-mode: t
  erc-readonly-mode: t
  cl-old-struct-compat-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  buffer-read-only: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

Features:
(shadow emacsbug ibuf-ext woman man dired-aux iso-transl flow-fill novice
etags xref project rect grep vc descr-text dabbrev mailalias browse-url qp
sort gnus-cite w3m-form w3m timezone w3m-hist w3m-fb bookmark-w3m w3m-ems
w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util mm-archive mail-extr
gnus-async gnus-bcklg gnus-ml disp-table misearch multi-isearch
cursor-sensor nndraft nnmh nndoc gnus-agent gnus-srvr gnus-score score-mode
nnvirtual gnus-msg utf-7 gnus-cache network-stream starttls nntp smiley
gnus-art mm-uu mml2015 mm-view mml-smime smime dig vc-svn info goto-addr
view sendmail python tramp-sh tramp tramp-compat tramp-loaddefs trampver
ucs-normalize tex-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds sieve-mode
elec-pair erc-networks erc-capab erc-spelling erc-track erc-ring
erc-pcomplete erc-netsplit erc-log erc-button erc-fill markdown-mode
conf-mode cperl-mode sgml-mode dom sh-script smie executable beancount
subr-x vc-dispatcher vc-hg flyspell ispell vc-git ledger-mode ledger-check
ledger-texi ledger-test ledger-sort ledger-report ledger-reconcile
ledger-occur ledger-fonts ledger-fontify ledger-state ledger-complete
ledger-schedule ledger-init ledger-xact ledger-post ledger-exec
ledger-navigate ledger-context ledger-commodities esh-var esh-io esh-cmd
esh-opt esh-ext esh-proc esh-groups eshell esh-module esh-mode esh-arg
esh-util cus-edit cus-start cus-load ledger-regex rx desktop frameset
which-func imenu pir-mode cl edmacro kmacro cc-styles cc-align cc-engine
cc-vars cc-defs cal-china lunar solar cal-dst cal-bahai cal-islam cal-hebrew
holidays hol-loaddefs appt diary-lib diary-loaddefs org-agenda org-rmail
org-mhe org-irc org-info org-gnus nnir org-docview org-bibtex bibtex
org-bbdb org-w3m org-capture org-element avl-tree generator org org-macro
org-footnote org-pcomplete org-list org-faces org-entities noutline outline
org-version ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table
ob-keys ob-exp ob-comint ob-core ob-eval org-compat org-macs org-loaddefs
find-func org-install memoize ibuffer ibuffer-loaddefs flow-ctrl warnings
magit-obsolete magit-blame magit-stash magit-bisect magit-remote
magit-commit magit-sequence magit-notes magit-worktree magit-branch
magit-collab ghub-graphql treepy graphql pcase ghub url-http url-gw nsm
url-auth url url-proxy url-privacy url-expand url-methods url-history
url-cookie url-domsuf url-util mailcap let-alist json map magit-files
magit-refs magit-status magit magit-repos magit-apply magit-wip magit-log
magit-diff smerge-mode diff-mode magit-core magit-autorevert autorevert
filenotify magit-process magit-margin magit-mode git-commit magit-git
magit-section magit-utils crm magit-popup log-edit easy-mmode pcvs-util
add-log with-editor cl-extra help-mode async-bytecomp async shell pcomplete
dash ido dict gnus-sum gnus-fun gnus-alias advice gnus-topic gnus-group
gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7
netrc nnoo parse-time gnus-spec gnus-int gnus-range message rmc puny rfc822
mml mml-sec epa derived epg mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail
rmail-loaddefs rfc2047 rfc2045 ietf-drums mail-utils mm-util mail-prsvr
wid-edit time cal-menu calendar cal-loaddefs server avoid doc-view jka-compr
image-mode dired dired-loaddefs compile comint ansi-color ring erc-stamp
erc-match erc-goodies erc erc-backend erc-compat format-spec thingatpt pp
finder-inf package easymenu epg-config url-handlers url-parse auth-source
cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq
byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib w3m-load
time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd
fontset image regexp-opt fringe tabulated-list replace newcomment text-mode
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch
timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
composite charscript charprop case-table epa-hook jka-cmpr-hook help simple
abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces
cus-face macroexp files text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget hashtable-print-readable backquote dbusbind
inotify lcms2 dynamic-setting system-font-setting font-render-setting
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 5271019 352029)
 (symbols 48 71739 425)
 (miscs 40 17419 59135)
 (strings 32 320414 107355)
 (string-bytes 1 18590866)
 (vectors 16 102922)
 (vector-slots 8 2783166 212030)
 (floats 8 1339 1014)
 (intervals 56 362731 2438)
 (buffers 992 602))

-- 

Bradley M. Kuhn - he/him

Pls. support the charity where I work, Software Freedom Conservancy:
https://sfconservancy.org/supporter/




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42854; Package emacs. (Fri, 16 Oct 2020 15:39:01 GMT) Full text and rfc822 format available.

Message #8 received at 42854 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: "Bradley M. Kuhn" <bkuhn <at> ebb.org>
Cc: 42854 <at> debbugs.gnu.org, emacs-erc <at> gnu.org
Subject: Re: bug#42854: 26.1; ERC: erc-send-current-line does not expand
 global abbrevs
Date: Fri, 16 Oct 2020 17:38:04 +0200
"Bradley M. Kuhn" <bkuhn <at> ebb.org> writes:

> erc-send-current-line does not expand abbrevs from the global abbrevs
> table.  In most modes, hitting <RET> at the end of a line will in fact
> expand the abbrev at the point, but hitting <RET> at the end of a line in an
> ERC buffer on an IRC channel (which, in ERC mode, is bound to
> erc-send-current-line) does not expand the abbrev.

I wondered whether there might be a problem here with surprising abbrev
expansions -- it's too late for the user to change the abbrev after
having hit RET, after all -- but I see what a bunch of modes work along
similar lines, so I've made RET in erc expand the final abbrev on the
list in Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 16 Oct 2020 15:39:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 42854 <at> debbugs.gnu.org and "Bradley M. Kuhn" <bkuhn <at> ebb.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Fri, 16 Oct 2020 15:39:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 14 Nov 2020 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.