help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Running just-one-space after expand-abbrev


From: aartist
Subject: Re: Running just-one-space after expand-abbrev
Date: Wed, 12 Nov 2008 14:28:04 -0800 (PST)
User-agent: G2/1.0

On Nov 12, 12:49 pm, Ian Eure <i...@digg.com> wrote:
> 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?
Are you sure?
I couldn't repeat it..


reply via email to

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