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

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

Re: Looking for some examples


From: Patrick Mahan
Subject: Re: Looking for some examples
Date: Wed, 6 Oct 2021 14:33:33 -0700

On Wed, Oct 6, 2021 at 1:32 PM Stephen Berman <stephen.berman@gmx.net>
wrote:

> On Wed, 6 Oct 2021 12:30:40 -0700 Patrick Mahan <plmahan@gmail.com> wrote:
>
> > I've looked around on the wiki and googled, but I haven't really found
> any
> > examples.
> >
> > I am cleaning a bunch of old code with tons of CPP macros of the form -
> > #define MACRONAME(_arg1, _arg2) \
> >     do {                                                   \
> >         /* code */                                       \
> >     } while (0)
> >
> > I am converting these all to inline functions and already have some emacs
> > lisp code written to handle converting everything but the backslashes.  I
> > would like to remove the backslashes, but I do not want to leave all that
> > empty whitespace behind.  Is there a way to do this using
> > query-replace-regexp that also removes the whitespace?
>
> C-M-% [[:space:]]+\\$ RET RET !
>
>
ARRGGGH! Why can I not remember '[[:space:]]'!!!!  *Sigh* that's what I was
looking for...

Patrick


reply via email to

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