From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19774 invoked by alias); 6 Dec 2003 15:23:51 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 19766 invoked from network); 6 Dec 2003 15:23:50 -0000 Received: from unknown (HELO gollum.inter.net.il) (192.114.186.22) by sources.redhat.com with SMTP; 6 Dec 2003 15:23:50 -0000 Received: from zaretski (pns03-196-203.inter.net.il [80.230.196.203]) by gollum.inter.net.il (Mirapoint Messaging Server MOS 3.3.8-GR) with ESMTP id BZN94156; Sat, 6 Dec 2003 17:23:45 +0200 (IST) Date: Sat, 06 Dec 2003 15:23:00 -0000 From: "Eli Zaretskii" To: Andrew Cagney Message-Id: <1659-Sat06Dec2003172251+0200-eliz@elta.co.il> CC: gdb-patches@sources.redhat.com In-reply-to: <3FD1E2F9.30009@gnu.org> (message from Andrew Cagney on Sat, 06 Dec 2003 09:08:57 -0500) Subject: Re: [commit] Deprecate remaining STREQ uses Reply-to: Eli Zaretskii References: <3FC119EB.1060102@gnu.org> <3FC234C0.1000500@gnu.org> <2914-Mon24Nov2003212333+0200-eliz@elta.co.il> <3FD0B1B8.4030807@gnu.org> <7137-Fri05Dec2003195510+0200-eliz@elta.co.il> <3FD1E2F9.30009@gnu.org> X-SW-Source: 2003-12/txt/msg00238.txt.bz2 > Date: Sat, 06 Dec 2003 09:08:57 -0500 > From: Andrew Cagney > > > > 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.