bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subwor


From: Eli Zaretskii
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@gnu.org>
> Date: Tue, 07 Jun 2016 17:51:35 -0400
> Cc: 23705@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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]