unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Looking for some examples
@ 2021-10-06 19:30 Patrick Mahan
  2021-10-06 20:01 ` Emanuel Berg via Users list for the GNU Emacs text editor
  2021-10-06 20:32 ` Stephen Berman
  0 siblings, 2 replies; 6+ messages in thread
From: Patrick Mahan @ 2021-10-06 19:30 UTC (permalink / raw)
  To: Help Gnu Emacs

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?

Thanks,

Patrick


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

end of thread, other threads:[~2021-10-06 21:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-06 19:30 Looking for some examples Patrick Mahan
2021-10-06 20:01 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-06 20:10   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-10-06 20:32 ` Stephen Berman
2021-10-06 20:47   ` 2QdxY4RzWzUUiLuE
2021-10-06 21:33   ` Patrick Mahan

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