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

Full log


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 2 years and 342 days ago.

Previous Next


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