unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 23705@debbugs.gnu.org, pbqbqp@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	[thread overview]
Message-ID: <831t48s8rv.fsf@gnu.org> (raw)
In-Reply-To: <jdporsr7ko.fsf@fencepost.gnu.org> (message from Glenn Morris on Tue, 07 Jun 2016 17:51:35 -0400)

> 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	other threads:[~2016-06-08  2:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-06  7:18 bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled Arash
2016-06-07 21:51 ` Glenn Morris
2016-06-08  2:40   ` Eli Zaretskii [this message]
2016-06-09 15:01     ` Arash
2016-06-09 15:06       ` Eli Zaretskii
2016-06-18 18:22         ` Eli Zaretskii
2016-06-23 17:17           ` Glenn Morris
2016-07-06  8:01             ` Arash
2016-07-06 14:56               ` Eli Zaretskii
2016-07-07  1:14                 ` Arash
2016-07-07 19:58                   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831t48s8rv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=23705@debbugs.gnu.org \
    --cc=pbqbqp@gmail.com \
    --cc=rgm@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).