emacs-devel
[Top][All Lists]
Advanced

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

Abbrev should preserve case


From: Andreas Röhler
Subject: Abbrev should preserve case
Date: Wed, 20 Jun 2007 19:48:05 +0200
User-agent: KMail/1.8.2

Info emacs,  Node: Expanding Abbrevs,  says:

...

,----
|    Abbrev expansion preserves case; thus, `foo' expands into `find
| outer otter'; `Foo' into `Find outer otter', and `FOO' into `FIND OUTER
| OTTER'
`----

From there users may guess, it would be possible to
define `foo', `Foo' and `FOO' as abbrev names likewise
and altogether.

Which don't work, because `add-abbrev' in line 289
abbrev.el down-cases every input, thus only down-cased
names are registered.

,----
| (define-abbrev table (downcase name) exp))))
`----


Exists a reason for that?

I would much appreciate, if I could mix freely up- and
downcase chars. This would extend the range of possible
abbrev-names considerably.

The latter is of interest, if you don't use abbrev the
common way, but for whole phrases, defined by
machine. 

If no one objects, I would try to change that.



Andreas Roehler




reply via email to

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