unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* abbrev definition (manual)
@ 2017-07-25 23:18 Jean-Christophe Helary
  2017-07-26  7:00 ` Colin Baxter
  2017-07-26 14:29 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: Jean-Christophe Helary @ 2017-07-25 23:18 UTC (permalink / raw)
  To: emacs-devel

I find the manual explanation for the definition of an abbrev confusing:

The usual way to define an abbrev is to enter the text you want the abbrev to expand to, position point after it, and type C-x a g (add-global-abbrev). This reads the abbrev itself using the minibuffer, and then defines it as an abbrev for one or more words before point. Use a numeric argument to say how many words before point should be taken as the expansion. For example, to define the abbrev ‘foo’ as mentioned above, insert the text ‘find outer otter’ and then type C-u 3 C-x a g f o o RET.

What about that:

The usual way to define an abbrev is to enter the text you want the abbrev to expand to, position point after it, and type C-x a g (add-global-abbrev).  Use a numeric argument to say how many words before point should be taken as the expansion.  This prompts for the abbrev itself in the minibuffer, and then defines it as an abbrev for the words specified before point.  For example, to define the abbrev 'foo' as mentioned above, insert the text 'find outer otter' and then type C-u 3 C-x a g f o o RET.

Jean-Christophe 





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

end of thread, other threads:[~2017-07-26 14:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-25 23:18 abbrev definition (manual) Jean-Christophe Helary
2017-07-26  7:00 ` Colin Baxter
2017-07-26 14:29 ` 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).