From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Patrick Mahan Newsgroups: gmane.emacs.help Subject: Re: Looking for some examples Date: Wed, 6 Oct 2021 14:33:33 -0700 Message-ID: References: <87a6jlopww.fsf@rub.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14898"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 07 00:06:37 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 1mYF3d-0003jc-Ig for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 00:06:37 +0200 Original-Received: from localhost ([::1]:44588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYF3c-0005WL-3K for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Oct 2021 18:06:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50288) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYEXu-0003fS-Fh for help-gnu-emacs@gnu.org; Wed, 06 Oct 2021 17:33:50 -0400 Original-Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]:41964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYEXr-000389-Kl for help-gnu-emacs@gnu.org; Wed, 06 Oct 2021 17:33:49 -0400 Original-Received: by mail-lf1-x130.google.com with SMTP id j5so16025727lfg.8 for ; Wed, 06 Oct 2021 14:33:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=o3t8jaEAIC+zsWA1vCVNiA1w2dnRhkLYy+6xSeAaJTE=; b=HHejzBMmT+suChN+vZC7aAeJOdsZ8Lc1fFxmi+riFFWnSHg4dAVAGHMi5w9a2dVVRN kse4QFMyZEINVW9kPE4zMIzJJv/e4f8TADhEeFsIhovfUjdxY0Tib6NmqWrh4GxXMRIC MtNJoAr/f19E7c3jle36dCQDansvxIe40KoHGrO6Hj+3YXqzjBUi16wBr9plSeWnnYls sz60uRMeRXNdQh38AAi3VpvPIWNSoOZr/kpsTBWDT8gXPY6gkOkFe3HS7dwiF6YsDOA8 C86Ryqy2yy39TXVmmlFg1zRQm9RLkJeIQVv4FvUOM66EFVooaRigznLqwXCf2wWb5ZUy ARbg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=o3t8jaEAIC+zsWA1vCVNiA1w2dnRhkLYy+6xSeAaJTE=; b=JCuulWlHGYnFN2sSZc5YIKkPVuGzYKbnL6tS599e6f471lvsikGyYPsQGhxrt2vYWK CV40va8mXjSITsAi2F0YcVOfaP+Qfp8mypg9a2g7hJu0k7bSXw3gkoSXD1AR3kh55E9p xASXH/Q/wdEdThw99nruipM1WquIAX7Nyj8c4QS47Pt016e3XlZvFl7oPNJ36w97sA4R L1XJ5UGJ2FB/x7Z1X+H8H7U7eF476YhNb0lZ9DloYaTk6b+yCK0CqmoSHnszsIFPOWBc LXq5pyOxZ1ZesdryeidqCYLl3czjrw/97wLLVJSeJa308tFHaKClVcyWfFG00ir6N9YE 37Lg== X-Gm-Message-State: AOAM530wuF0iHfV8rZNdadnon+QRtRgAQyieHGCZBO7QGnZkvnc+wiQF /aTrrM3x2GVyvIhVpjJ5V+ceiAiowU/mjAQvDlI= X-Google-Smtp-Source: ABdhPJyNRDpxBHuqwBZ4ISABt3q1GrJNEllOj49BXPQkJipb9ZM3LueBdPZyn7VVh1TJlZXFY5FfqHhx8ZHQwcsUPVQ= X-Received: by 2002:a2e:86d4:: with SMTP id n20mr449778ljj.444.1633556024954; Wed, 06 Oct 2021 14:33:44 -0700 (PDT) In-Reply-To: <87a6jlopww.fsf@rub.de> Received-SPF: pass client-ip=2a00:1450:4864:20::130; envelope-from=plmahan@gmail.com; helo=mail-lf1-x130.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:133628 Archived-At: On Wed, Oct 6, 2021 at 1:32 PM Stephen Berman wrote: > 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 ! > > ARRGGGH! Why can I not remember '[[:space:]]'!!!! *Sigh* that's what I was looking for... Patrick