unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* Characterset for Abbrevation names limited
@ 2007-06-21 13:17 Wilmar Igl
  2007-06-22 19:20 ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Wilmar Igl @ 2007-06-21 13:17 UTC (permalink / raw)
  To: bug-gnu-emacs

Hi,

sofar it is not possible to use characters other the [a-Z][0-9] as names 
of abbreviations when using <add-global-abbreviation>.
To avoid conflicts with emacs abbreviations and other acronyms used in 
the text I would suggest to allow non-alphabetical/non-number characters 
like, [!"#%&/].
Example: M-x add-global-abbrev RET !myabbr RET

Best,

Will


* E-mail: wilmar.igl[AT]gmx.de

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

* Re: Characterset for Abbrevation names limited
  2007-06-21 13:17 Characterset for Abbrevation names limited Wilmar Igl
@ 2007-06-22 19:20 ` Glenn Morris
  2007-06-24 15:08   ` Wilmar Igl
  0 siblings, 1 reply; 4+ messages in thread
From: Glenn Morris @ 2007-06-22 19:20 UTC (permalink / raw)
  To: Wilmar Igl; +Cc: bug-gnu-emacs

Wilmar Igl wrote:

> sofar it is not possible to use characters other the [a-Z][0-9] as names 
> of abbreviations when using <add-global-abbreviation>.
> To avoid conflicts with emacs abbreviations and other acronyms used in 
> the text I would suggest to allow non-alphabetical/non-number characters 
> like, [!"#%&/].

It's not that simple. Because of the way abbrevs are expanded, the
characters in an abbrev must all be recognized as part of a word.
So in general it's not possible to allow arbitrary characters (eg `!')
in abbrevs. In specific modes that change the syntax of some
characters to be word constituents, these characters can be used in
abbrevs.

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

* Re: Characterset for Abbrevation names limited
  2007-06-22 19:20 ` Glenn Morris
@ 2007-06-24 15:08   ` Wilmar Igl
  2007-06-25 18:44     ` Glenn Morris
  0 siblings, 1 reply; 4+ messages in thread
From: Wilmar Igl @ 2007-06-24 15:08 UTC (permalink / raw)
  To: Glenn Morris

Dear Glenn,

thanks for the info. In this case I'd suggest to change the prompt
of global-add-abbrev from e.g.:

M-x Global abbrev for "Desoxyribonucleicacid":

to:

M-x Global abbrev for "Desoxyribonucleicacid" (only letters [a-Z][0-9]):

and/or include a similar comment into the function description.
Otherwise an uninformed user might use the unsupported characters like 
[!"#%&/] and register the failure of the function and interpret it as a bug.

Best,

Wilmar

Glenn Morris skrev:
> Wilmar Igl wrote:
> 
>> sofar it is not possible to use characters other the [a-Z][0-9] as names 
>> of abbreviations when using <add-global-abbreviation>.
>> To avoid conflicts with emacs abbreviations and other acronyms used in 
>> the text I would suggest to allow non-alphabetical/non-number characters 
>> like, [!"#%&/].
> 
> It's not that simple. Because of the way abbrevs are expanded, the
> characters in an abbrev must all be recognized as part of a word.
> So in general it's not possible to allow arbitrary characters (eg `!')
> in abbrevs. In specific modes that change the syntax of some
> characters to be word constituents, these characters can be used in
> abbrevs.


-- 
Wilmar IGL (Mr.)
PhD, Psychologist

* Postal Addresses:
-Fogdevreten 13 B
SE-171 65 Stockholm/Solna
Sweden
-c/o Michael und Christa Igl
Sittling 330
D-93333 Neustadt a. d. Donau
Germany

* Phone:
- Sweden: +46 (0) 73 75 44 9 43 (mobile)
- Germany: +49 (0) 176 29 49 87 10 (mobile)
- VoIP: wilmar.igl (Skype), +49 (0) 9445 35 33 31 (landline, SkypeIn)

* E-mail: wilmar.igl[AT]gmx.de

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

* Re: Characterset for Abbrevation names limited
  2007-06-24 15:08   ` Wilmar Igl
@ 2007-06-25 18:44     ` Glenn Morris
  0 siblings, 0 replies; 4+ messages in thread
From: Glenn Morris @ 2007-06-25 18:44 UTC (permalink / raw)
  To: bug-gnu-emacs


Reply received off-list (it seems to be the season):

Wilmar Igl wrote (on Sun, 24 Jun 2007 at 17:08 +0200):

> thanks for the info. In this case I'd suggest to change the prompt
> of global-add-abbrev from e.g.:
> 
> M-x Global abbrev for "Desoxyribonucleicacid":
> 
> to:
> 
> M-x Global abbrev for "Desoxyribonucleicacid" (only letters [a-Z][0-9]):
> 
> and/or include a similar comment into the function description.
> Otherwise an uninformed user might use the unsupported characters like 
> [!"#%&/] and register the failure of the function and interpret it as a bug.

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

end of thread, other threads:[~2007-06-25 18:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-21 13:17 Characterset for Abbrevation names limited Wilmar Igl
2007-06-22 19:20 ` Glenn Morris
2007-06-24 15:08   ` Wilmar Igl
2007-06-25 18:44     ` Glenn Morris

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