From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7064 invoked by alias); 5 Dec 2003 16:26:32 -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 7037 invoked from network); 5 Dec 2003 16:26:31 -0000 Received: from unknown (HELO localhost.redhat.com) (216.129.200.20) by sources.redhat.com with SMTP; 5 Dec 2003 16:26:31 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 88F802B8F; Fri, 5 Dec 2003 11:26:32 -0500 (EST) Message-ID: <3FD0B1B8.4030807@gnu.org> Date: Fri, 05 Dec 2003 16:26:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: [commit] Deprecate remaining STREQ uses References: <3FC119EB.1060102@gnu.org> <3FC234C0.1000500@gnu.org> <2914-Mon24Nov2003212333+0200-eliz@elta.co.il> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-12/txt/msg00210.txt.bz2 > From: David Carlton >> Date: Mon, 24 Nov 2003 12:06:24 -0800 >> >> I was thinking that just using keyboard macros might do the trick: > > > For such a simple job, it probably would. But c-macro-expand is more > trustworthy, IMHO: it actually runs cpp and has provisions for you to > specify the same compiler switches as are used during an actual > compilation, so you don't run a risk of missing some obscure #define > somewhere. Is there a way, in EMACS, to pipe a section of code through a shell and then have that code re-inserted in place? I've played with c-macro-expand but found the experience less than satisfying. The text ends up in a separate window leaving me with an additional messy cut/paste step. Andrew PS: Steps will likely be: - change streq[n] to sane equivalents - re-indent rougly half of GDB the output of cpp is messy, I'm going to need to re-indent it, which means I'm going to need to re-indent befor the event - this to-be-determined step