This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [commit] Deprecate remaining STREQ uses


> Date: Sat, 06 Dec 2003 09:08:57 -0500
> From: Andrew Cagney <cagney@gnu.org>
> > 
> >     Expand C macros in the region, using the C preprocessor.
> >     Normally display output in temp buffer, but
> >     prefix arg means replace the region with it.
> > 
> > Note the last sentence: it means that "C-u M-x c-macro-expand RET"
> > will replace the marked region with the results of the expansion.
> 
> I found the documentation (needed it to set the variable that makes it 
> prompt for the command arguments, and set the CPP to run :-) but could 
> make neither head nor tails out of "prefix arg".

The index search in the manual is your friend in such cases.  Once
you look at the Emacs manual in the *info* buffer, type the following
words of wisdom:

      i prefix arg RET

and you will land on the right section of the manual.

(The `i' command uses the index entries produced by @cindex, @findex
and the like.  Given a good indexing job, this command is IMHO the
most efficient method of getting to the information you need.  Perhaps
now you will better understand why I always ask for good index entries
for any new terminology added to the GDB manual. ;-)

> 	#define A(B,C) ((B) + (C))
> 	A(b,c)
> 
> into
> 
> 	( ( b ) + ( c ) )

Ah, in that case indenting will not help.  But something like
replacing all occurences of "( " with "(" and " )" with ")" should do
most of the work, I think.  Press `!', the exclam mark, when Emacs
asks for confirmation of the first replacement, and it will do the
rest of the replacements automatically without asking.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]