From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Leo Butler Newsgroups: gmane.emacs.help Subject: Re: Mass conversion of specific items Date: Tue, 01 Sep 2020 13:34:24 -0500 Message-ID: <86y2ltxs5r.fsf@x201.butler.org> References: <871rjlmtc0.fsf@skimble.plus.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32441"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Sharon Kimble Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 01 20:35:28 2020 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 1kDB7v-0008Js-GT for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 20:35:27 +0200 Original-Received: from localhost ([::1]:37272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDB7u-0001TM-Hm for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 01 Sep 2020 14:35:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47806) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDB73-0001EX-9k for help-gnu-emacs@gnu.org; Tue, 01 Sep 2020 14:34:34 -0400 Original-Received: from umce3cip03.ad.umanitoba.ca ([130.179.21.18]:65081) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDB6z-00088c-1q for help-gnu-emacs@gnu.org; Tue, 01 Sep 2020 14:34:32 -0400 IronPort-SDR: C2stQhGro3n5qu+yhgJtdOOgEnkskX62tGO3TdZqYvCmmN8HmWI4un5iRH7xLPdhe3ipfUEXyU LwHB+CgsoWN1SCVOMawN7QYBdDw0IKBhRPcaWcwMdQI3Ron70iSGltSLQdQ6ydB7YO29YVg07G s26Q+qogxoQTJqBVs40WtWbYsB+sDIJxaBNujtsSxptOGcT1Ffkd1+FSqwJAvS6h6AyNuLpyOo wJ4wu7IJOsOIKrNHXoAnXpyP+foL4Q8YmG5T5gcMpUF7xTsBDRGhft8CbwnHlJPBT8/uanxlUt 86G+7kyziiTbBvZjIS6aFm7+ X-IronPort-AV: E=Sophos;i="5.76,380,1592888400"; d="scan'208";a="56054467" Original-Received: from 194.33.44.45.in-addr.arpa (HELO x201) ([45.44.33.194]) by umce3cip03.ad.umanitoba.ca with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Sep 2020 13:34:25 -0500 In-Reply-To: <871rjlmtc0.fsf@skimble.plus.com> (Sharon Kimble's message of "Tue, 01 Sep 2020 16:04:31 +0100") Received-SPF: pass client-ip=130.179.21.18; envelope-from=leo.butler@umanitoba.ca; helo=umce3cip03.ad.umanitoba.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/01 14:34:26 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, 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:123896 Archived-At: Sharon Kimble writes: > ******************************************************** > Caution: This message was sent from outside the University of Manitoba. > ******************************************************** > > > I'm hoping that someone can help with this problem I have. > > I have several org-mode files which have some specific formatting in > individual items, specifically - > > --8<---------------cut here---------------start------------->8--- > \uuline{foo} > --8<---------------cut here---------------end--------------->8--- > > This gives a double-underling of 'foo' when exported to latex and built > into a pdf file. > > I'm now in the situation when the double underlining also needs to be > italicised, and in org-mode its showing as - > > --8<---------------cut here---------------start------------->8--- > /\uuline{foo}/ > --8<---------------cut here---------------end--------------->8--- > > This gives a double-underling and italicised of 'foo' when exported to > latex and built into a pdf file. > > I would like to change about 150+ 'foos' and possibly using > 'replace-string' to do it. Also, 'foo' is lots of different words which > includes spaces between some of them. So how can I do it please? > > Thanks > Sharon. Sharon, M-x regexp-builder RET will give you a window that let's you build a regular expression (regexp) interactively. When I enter \\\\uuline{[^}]+} it finds both strings in your email (I'm using Gnus). Alternatively, you can use M-x search-forward-regexp RET to find the occurences of your regexp. You don't make precise what you want to change, so I cannot say if it is worth trying to craft a regexp replacement and use M-x query-replace-regexp HTH, Leo