unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
@ 2016-06-06  7:18 Arash
  2016-06-07 21:51 ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Arash @ 2016-06-06  7:18 UTC (permalink / raw)
  To: 23705

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)))





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  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
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2016-06-07 21:51 UTC (permalink / raw)
  To: Arash; +Cc: 23705

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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-06-07 21:51 ` Glenn Morris
@ 2016-06-08  2:40   ` Eli Zaretskii
  2016-06-09 15:01     ` Arash
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2016-06-08  2:40 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 23705, pbqbqp

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





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-06-08  2:40   ` Eli Zaretskii
@ 2016-06-09 15:01     ` Arash
  2016-06-09 15:06       ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Arash @ 2016-06-09 15:01 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 23705

> 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





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-06-09 15:01     ` Arash
@ 2016-06-09 15:06       ` Eli Zaretskii
  2016-06-18 18:22         ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2016-06-09 15:06 UTC (permalink / raw)
  To: Arash; +Cc: 23705

> From: Arash <pbqbqp@gmail.com>
> Cc: Glenn Morris <rgm@gnu.org>,  23705@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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-06-09 15:06       ` Eli Zaretskii
@ 2016-06-18 18:22         ` Eli Zaretskii
  2016-06-23 17:17           ` Glenn Morris
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2016-06-18 18:22 UTC (permalink / raw)
  To: 23705-done

> Date: Thu, 09 Jun 2016 18:06:33 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: 23705@debbugs.gnu.org
> 
> > From: Arash <pbqbqp@gmail.com>
> > Cc: Glenn Morris <rgm@gnu.org>,  23705@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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-06-18 18:22         ` Eli Zaretskii
@ 2016-06-23 17:17           ` Glenn Morris
  2016-07-06  8:01             ` Arash
  0 siblings, 1 reply; 11+ messages in thread
From: Glenn Morris @ 2016-06-23 17:17 UTC (permalink / raw)
  To: 23705; +Cc: pbqbqp

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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-06-23 17:17           ` Glenn Morris
@ 2016-07-06  8:01             ` Arash
  2016-07-06 14:56               ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Arash @ 2016-07-06  8:01 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 23705

> 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).





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-07-06  8:01             ` Arash
@ 2016-07-06 14:56               ` Eli Zaretskii
  2016-07-07  1:14                 ` Arash
  0 siblings, 1 reply; 11+ messages in thread
From: Eli Zaretskii @ 2016-07-06 14:56 UTC (permalink / raw)
  To: Arash; +Cc: 23705

> From: Arash <pbqbqp@gmail.com>
> Cc: 23705@debbugs.gnu.org,  eliz@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.





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-07-06 14:56               ` Eli Zaretskii
@ 2016-07-07  1:14                 ` Arash
  2016-07-07 19:58                   ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Arash @ 2016-07-07  1:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 23705

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





^ permalink raw reply	[flat|nested] 11+ messages in thread

* bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled
  2016-07-07  1:14                 ` Arash
@ 2016-07-07 19:58                   ` Eli Zaretskii
  0 siblings, 0 replies; 11+ messages in thread
From: Eli Zaretskii @ 2016-07-07 19:58 UTC (permalink / raw)
  To: Arash; +Cc: 23705

> From: Arash <pbqbqp@gmail.com>
> Cc: rgm@gnu.org,  23705@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





^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-07-07 19:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).