GNU bug report logs - #23705
25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled

Previous Next

Package: emacs;

Reported by: Arash <pbqbqp <at> gmail.com>

Date: Mon, 6 Jun 2016 08:40:01 UTC

Severity: wishlist

Found in version 25.0.94

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23705 <at> debbugs.gnu.org, pbqbqp <at> gmail.com
Subject: bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Wed, 08 Jun 2016 05:40:20 +0300
> From: Glenn Morris <rgm <at> gnu.org>
> Date: Tue, 07 Jun 2016 17:51:35 -0400
> Cc: 23705 <at> debbugs.gnu.org
> 
> Arash wrote:
> 
> > If I evalulate this in `emacs -Q' with subword-mode enabled, 8G won't expand:
> >
> > (define-abbrev-table 'c++-mode-abbrev-table
> >   '(("8g" "struct" nil 0)
> >     ("8G" "class" nil 0)))
> 
> Ref http://debbugs.gnu.org/17558#25
> 
> "Someone" needs to change instances of -word in abbrev.el to -word-strictly.
> Perhaps just abbrev--before-point is enough. But who knows.

Actually, I don't think this is a bug.  In subword-mode, "8G" is 2
words.  At the time, I deliberately left abbrevs out of the
*-word-strictly conversion, since I believe users of this mode should
be able to expand sub-words.

So I think the OP needs to change the abbrevs in use to not bump into
this contradiction.




This bug report was last modified 7 years and 228 days ago.

Previous Next


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