GNU bug report logs - #56500
29.0.50; no-self-insert property doesn't work when <TAB> triggers abbrev

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Mon, 11 Jul 2022 19:00:02 UTC

Severity: normal

Found in version 29.0.50

To reply to this bug, email your comments to 56500 AT debbugs.gnu.org.

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

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


Report forwarded to monnier <at> iro.umontreal.ca, bug-gnu-emacs <at> gnu.org:
bug#56500; Package emacs. (Mon, 11 Jul 2022 19:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sean Whitton <spwhitton <at> spwhitton.name>:
New bug report received and forwarded. Copy sent to monnier <at> iro.umontreal.ca, bug-gnu-emacs <at> gnu.org. (Mon, 11 Jul 2022 19:00:02 GMT) Full text and rfc822 format available.

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

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; no-self-insert property doesn't work when <TAB> triggers
 abbrev
Date: Mon, 11 Jul 2022 11:59:31 -0700
X-debbugs-cc: monnier <at> iro.umontreal.ca

Hello,

1. emacs -q

2. Evaluate these:

   (setq tab-always-indent nil)
   (define-skeleton foo "" "" "hi")
   (define-abbrev lisp-mode-abbrev-table "foo" "" #'foo :system t)

3. Note that (get 'foo 'no-self-insert) => t.

4. Switch to *scratch*.

5. M-x abbrev-mode RET

6. foo<SPC>

   "foo" is replaced by "hi" and the space character disappears, as
   expected since Emacs 21 introduced the no-self-insert property.

7. <RET><RET>foo<TAB>

   "foo" is replaced by "hi", but the tab character remains.

-- 
Sean Whitton




This bug report was last modified 1 year and 283 days ago.

Previous Next


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