unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Running just-one-space after expand-abbrev
@ 2008-11-12 17:49 Ian Eure
  2008-11-13 19:33 ` Nikolaj Schumacher
  0 siblings, 1 reply; 6+ messages in thread
From: Ian Eure @ 2008-11-12 17:49 UTC (permalink / raw)
  To: help-gnu-emacs

I have abbrevs for public/protected/private: pub/prot/pri.

I often find that I'm editing something like:

public function foo();

And I want to change it from public to protected. My first thought is:  
C-a M-d prot SPC

The problem is that the M-d leaves the whitespace to the left of  
"function," and the SPC to expand the   abbrev gives another, so now I  
have two spaces.

Is it possible to run (just-one-space) after an abbrev is expanded? I  
tried advising (expand-abbrev), but that didn't work. I don't see any  
hooks for that function, either.

Ideas?




^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <mailman.175.1226512203.26697.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2008-11-17 15:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-12 17:49 Running just-one-space after expand-abbrev Ian Eure
2008-11-13 19:33 ` Nikolaj Schumacher
2008-11-13 19:52   ` Ian Eure
2008-11-17 15:52     ` Nikolaj Schumacher
     [not found] <mailman.175.1226512203.26697.help-gnu-emacs@gnu.org>
2008-11-12 22:28 ` aartist
2008-11-12 23:59   ` Ian Eure

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