From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: Looking for some examples Date: Wed, 06 Oct 2021 22:32:15 +0200 Message-ID: <87a6jlopww.fsf@rub.de> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33287"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Help Gnu Emacs To: Patrick Mahan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 06 22:33:59 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYDby-0008Ul-J4 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 22:33:58 +0200 Original-Received: from localhost ([::1]:43662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYDbx-00071J-9n for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 16:33:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33072) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYDaS-0006aH-DP for help-gnu-emacs@gnu.org; Wed, 06 Oct 2021 16:32:24 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:50981) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYDaO-0001OE-6D for help-gnu-emacs@gnu.org; Wed, 06 Oct 2021 16:32:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1633552336; bh=HpXbGQ1i+yXfZhvNiZBDWmJlTusrOElkLoeGznY3iX8=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=bcJuac2/AB8qdYeiXWyQntpKwdbORdXUsyzcXkkZP/csEzex9OnT9+TYceOUnakDN NceQOCq0cnw6i66enohFdIDDNPna3DMgxO1W31JW6OIXjjgEoY4BgPGwYfXKOxXXdX ECLOuRQjmZzaGMvBjxce8i6mydmwbkhQcXH5MYio= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobelfs ([188.109.170.59]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N5VDE-1mrjLe26nK-01704G; Wed, 06 Oct 2021 22:32:16 +0200 In-Reply-To: (Patrick Mahan's message of "Wed, 6 Oct 2021 12:30:40 -0700") X-Provags-ID: V03:K1:+2W0lcJtHGPZC9AG+2DUeEiMG6G3ya6eShS/BzA8Bmr3iNjda4t 0T6XOXk1sXXpj6HBEO4urrSaM1t0pZHYC+WJtMZnvUHSW75ZdmpooHmAWR4wxVgNSY5LQNp ZGxu3khLo68Dnc7VuucIE165IWIt16bIYIjznjsG1fYQNDY5BseitA2jVzHKIe3MkGXftl/ vKoCEmBu262p65qDBAkgA== X-UI-Out-Filterresults: notjunk:1;V03:K0:LlHeD5VdPDE=:zNkl5SkSyTIE7WtOr7XnEr vpCnIG0HhoJ1+kCQynngkLBZ5trdWdshKT0rvVaWtK8M+VPf3g/rFBbqznWfvhh+NL9G7lB7t bE8rRlfSgBuHIJgDTHBVVMOqETt1cxiU1ztAPGiAdrU2NXSNxQS/CaQWsZbWHfAS5+wHkx6qs /zE1QmpsFmcCZh+1ZKkfaNImDQOoH4Odozt24DRMpxjWkuJlDsk7RGYbdMHYD9Kd19knV5ssp xID5adoB3mUyL/TMLSTI5/8VUa3ylfCEgd/n6tMc1lKOIP+NffQptjbzXpABtj7mHEzsrS4gF AJgomZwacPuaNxM9+Z63miS3b/GhOdPWU4bK7obM5DpmgS3gu6aEOQVhNVowSAjyGpvLc8Ny1 FamxvYa4d2MxMw/yT9DM19IgTZN8sxBh/WebSIawQLokHoF1cbvBaoS/+0siygwvfAT3F8VTX OJL9UFbTgFiniEU04tBfecadvfq3gxBaOwvu1HgF6ivK92SegMc2rLxKlvxhRWBDD5t0PH+kW idSk57PlRlz2Xj0Kr6uUnyL4kCA+cIhZ/kxTiBB5JCcbNMEWmPkRe5iSgfjRrG4Ro0ueI7o8E HsEOHzeoVR1Agh2AceGgRgmGnFl7g1PqvzLWWDr4CtpvV7euTKlNYWTi1HfpKuemAHxPexDkj boExGE95b5UKTyWkcmTwdBGvE5sMX5n+u33aIwANoaYTaq3LmcEbdY8wtC3pJnWj1IIbpM4V7 Ocdf7D0J3Dnm6MpudW72Al3y2ac2SeYbLWSREGBzKm8H6cHcmWx9oNgPrKLFYTB710McJWD6 Received-SPF: pass client-ip=212.227.15.18; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:133624 Archived-At: On Wed, 6 Oct 2021 12:30:40 -0700 Patrick Mahan 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 ! Steve Berman