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

To reply to this bug, email your comments to 23705 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 bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Mon, 06 Jun 2016 08:40:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arash <pbqbqp <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 06 Jun 2016 08:40:01 GMT) Full text and rfc822 format available.

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

From: Arash <pbqbqp <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Mon, 06 Jun 2016 11:48:06 +0430
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)))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Tue, 07 Jun 2016 21:52:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Arash <pbqbqp <at> gmail.com>
Cc: 23705 <at> debbugs.gnu.org
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Tue, 07 Jun 2016 17:51:35 -0400
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.




Added indication that bug 23705 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 07 Jun 2016 21:53:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Wed, 08 Jun 2016 02:40:02 GMT) Full text and rfc822 format available.

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

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: Re: 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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Thu, 09 Jun 2016 15:02:02 GMT) Full text and rfc822 format available.

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

From: Arash <pbqbqp <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Glenn Morris <rgm <at> gnu.org>, 23705 <at> debbugs.gnu.org
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Thu, 09 Jun 2016 19:31:18 +0430
> So I think the OP needs to change the abbrevs in use to not bump into
> this contradiction.

I think I just turn subword-mode off :D




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Thu, 09 Jun 2016 15:07:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arash <pbqbqp <at> gmail.com>
Cc: rgm <at> gnu.org, 23705 <at> debbugs.gnu.org
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Thu, 09 Jun 2016 18:06:33 +0300
> From: Arash <pbqbqp <at> gmail.com>
> Cc: Glenn Morris <rgm <at> gnu.org>,  23705 <at> debbugs.gnu.org
> Date: Thu, 09 Jun 2016 19:31:18 +0430
> 
> > So I think the OP needs to change the abbrevs in use to not bump into
> > this contradiction.
> 
> I think I just turn subword-mode off :D

Yes, that's another possibility.




Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Sat, 18 Jun 2016 18:22:02 GMT) Full text and rfc822 format available.

Notification sent to Arash <pbqbqp <at> gmail.com>:
bug acknowledged by developer. (Sat, 18 Jun 2016 18:22:02 GMT) Full text and rfc822 format available.

Message #24 received at 23705-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: 23705-done <at> debbugs.gnu.org
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Sat, 18 Jun 2016 21:22:05 +0300
> Date: Thu, 09 Jun 2016 18:06:33 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 23705 <at> debbugs.gnu.org
> 
> > From: Arash <pbqbqp <at> gmail.com>
> > Cc: Glenn Morris <rgm <at> gnu.org>,  23705 <at> debbugs.gnu.org
> > Date: Thu, 09 Jun 2016 19:31:18 +0430
> > 
> > > So I think the OP needs to change the abbrevs in use to not bump into
> > > this contradiction.
> > 
> > I think I just turn subword-mode off :D
> 
> Yes, that's another possibility.

No further comments, so I'm marking this bug as done.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Thu, 23 Jun 2016 17:18:02 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: 23705 <at> debbugs.gnu.org
Cc: eliz <at> gnu.org, pbqbqp <at> gmail.com
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Thu, 23 Jun 2016 13:17:04 -0400
Eli Zaretskii wrote:

>> > I think I just turn subword-mode off :D
>> 
>> Yes, that's another possibility.
>
> No further comments, so I'm marking this bug as done.

My comment is that if the OP's reaction "I'll just stop using
subword-mode then" is a common one, then the changes to make
subword-mode more pervasive are problematic.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Wed, 06 Jul 2016 08:04:01 GMT) Full text and rfc822 format available.

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

From: Arash <pbqbqp <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 23705 <at> debbugs.gnu.org, eliz <at> gnu.org
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Wed, 06 Jul 2016 12:31:09 +0430
> My comment is that if the OP's reaction "I'll just stop using
> subword-mode then" is a common one, then the changes to make
> subword-mode more pervasive are problematic.

By his explanation I thaught the two modes are incompatible so I gave
up! (actually I didn't think that, I just didn't want to be mean lol)

So, My situation:
I'm using mixed case abbrevs in a abbrev/tempo setup, for example (with
^ being the cursor)

"8g" expands:
struct ^

"8G" expands:
struct ^ {
    ^
};
(I have tons of these! and I'm used to them and I love 'em)

and subword-mode might have been a little help in camelCase/PascalCase
codes.

Anyway! I reported the bug/incompatiblity, so now you know!
Hope it gets fixed before 25 (if it's a bug).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Wed, 06 Jul 2016 14:57:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arash <pbqbqp <at> gmail.com>
Cc: rgm <at> gnu.org, 23705 <at> debbugs.gnu.org
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Wed, 06 Jul 2016 17:56:21 +0300
> From: Arash <pbqbqp <at> gmail.com>
> Cc: 23705 <at> debbugs.gnu.org,  eliz <at> gnu.org
> Date: Wed, 06 Jul 2016 12:31:09 +0430
> 
> Anyway! I reported the bug/incompatiblity, so now you know!
> Hope it gets fixed before 25 (if it's a bug).

I don't see how it can be fixed, since there are 2 conflicting goals
involved.  The only way forward I can think of is a defcustom that
would allow users to choose one of these two goals.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Thu, 07 Jul 2016 01:15:01 GMT) Full text and rfc822 format available.

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

From: Arash <pbqbqp <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rgm <at> gnu.org, 23705 <at> debbugs.gnu.org
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Thu, 07 Jul 2016 05:44:46 +0430
> I don't see how it can be fixed, since there are 2 conflicting goals
> involved.  The only way forward I can think of is a defcustom that
> would allow users to choose one of these two goals.

That would be great.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#23705; Package emacs. (Thu, 07 Jul 2016 19:59:02 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Arash <pbqbqp <at> gmail.com>
Cc: rgm <at> gnu.org, 23705 <at> debbugs.gnu.org
Subject: Re: bug#23705: 25.0.94;
 Upper-case abbrev expansion doesn't work with subword-mode enabled
Date: Thu, 07 Jul 2016 22:58:13 +0300
> From: Arash <pbqbqp <at> gmail.com>
> Cc: rgm <at> gnu.org,  23705 <at> debbugs.gnu.org
> Date: Thu, 07 Jul 2016 05:44:46 +0430
> 
> > I don't see how it can be fixed, since there are 2 conflicting goals
> > involved.  The only way forward I can think of is a defcustom that
> > would allow users to choose one of these two goals.
> 
> That would be great.

Would someone please do this?

TIA




Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 09 Jul 2016 16:58:02 GMT) Full text and rfc822 format available.

Removed indication that bug 23705 blocks Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 14 Jul 2016 17:16:02 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Mon, 01 Jan 2018 16:23:02 GMT) Full text and rfc822 format available.

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

Previous Next


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