From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +BJFCgmP2GSfSgEASxT56A (envelope-from ) for ; Sun, 13 Aug 2023 10:06:33 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id WMI6CgmP2GQRxAAAauVa8A (envelope-from ) for ; Sun, 13 Aug 2023 10:06:33 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id CF8003DD86 for ; Sun, 13 Aug 2023 10:06:32 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZoW8cECO; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691913992; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=tJsZlxfAU4d3GD89wf9OGCYTRU6AuuZ6+xzivFRdM4U=; b=q1pVqwx+pAhDYiTupYKYe+UHSegDiepuWc/+TSXR+uDuF8LXfVu8J/KxyDdI2gmAfGrGYd yTm8jfy+9Qy6WFqZejzI/ubhv6xhLKz9AwIizBknzor8GA9vPEa1rvrYggrXsSdp7C9TfF 95UKd/g8Gu1CDF/EVSYtXr1kRnCWEMQHoGEfPRcAaOTtGjgCcjlyRt2U0mqhnrXpeFSX9i kqd1EZCO3hSmgKZKjmBGOUyYyGifuwMWspAE4wTMmVB904fYSL0mhkNEdqgc2J0XvrTPm3 h0XQgusNPT+x4kRRi36KskHyczoo1R/aD3pNPRuHedn96uNmu9FIVT0R4Svsxw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ZoW8cECO; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691913992; a=rsa-sha256; cv=none; b=dne6MaZUDT9TRjTd6xh95vs/Zo+VydnRcXEOGzMeEG0AyYYwfmRU9SLPeU7ZyD4/ut2NlN n6TYIZyp6dRVMQmeRhfROKcUZUqmt9VrPlg1Iq66BpBjdFDM+uKhAhb5M/pbEX+YnKj1QX ronJg6tFMhvlS5wKvuTm7EODUKxYxOtLAbPdkPTuSmZs34MC2uHi8z4m3gXoJZAHPLOHSd PpVTf9+xWceowjD4ZpnjL/66yAlzAVzV6KEY25pJOUn3+wz5jJnhRWiuMAYbsu0fmbsc21 VF1rmtirc06DeA/Em7BrV4CZl39BiPh6YzX/173uFbXOwpPB8TperXe4shnSsg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qV66z-0007bO-BZ; Sun, 13 Aug 2023 04:06:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qV66w-0007b1-0E for emacs-orgmode@gnu.org; Sun, 13 Aug 2023 04:06:06 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qV66u-0007lA-2c for emacs-orgmode@gnu.org; Sun, 13 Aug 2023 04:06:05 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 591B6240101 for ; Sun, 13 Aug 2023 10:06:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1691913962; bh=Q6D+EICin92+EwotwDM4Z1hu3W+/kKITOZo/o8ejz54=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ZoW8cECO6KWFz7w5lvWd3h+XiSq+DIJY5XKhmFynJiOHkQxomnxKbUFHfTXCM+k9b Od9QrDCnTOnJSBxl4la7PMmndLIu8PAzYLsF6xUTdaRwiAQpQvitlDW9Zm/D+39jhV UcKMHaS46bQqBtTTo6oENb+2NzfH77cyqq8S9D6XHvvJwhCeYbAJcfucl6hdUqP5iA MeSFiEAm3dNZHvAQua67hDmyxA+ZpM2VoguRHM0e4ABNeYmttL1LmVSyj8tnwTVGDp kCbMM9DHvo3uihaD/93ikyMhLWwC1lCnE1Qmx3p9hrh2WvX3m6+OJczNXkUPNptvo/ 2MxRI8cARSCiw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RNqpx55VJz6tsB; Sun, 13 Aug 2023 10:06:01 +0200 (CEST) From: Ihor Radchenko To: Juan Manuel =?utf-8?Q?Mac=C3=ADas?= Cc: orgmode Subject: Re: [patch] ox-latex.el: fix blank lines behavior in verse block In-Reply-To: <87ttt4jy9a.fsf@posteo.net> References: <87tttcml75.fsf@posteo.net> <87edkf6px1.fsf@localhost> <87350ug413.fsf@posteo.net> <87o7jgejhl.fsf@localhost> <87pm3wfvzx.fsf@posteo.net> <87il9nb62q.fsf@localhost> <871qgbb2q6.fsf@posteo.net> <874jl5526t.fsf@localhost> <87ttt59zsx.fsf@posteo.net> <877cq04rt7.fsf@localhost> <87ttt4jy9a.fsf@posteo.net> Date: Sun, 13 Aug 2023 08:06:27 +0000 Message-ID: <87r0o7l62k.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=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: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: CF8003DD86 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -5.64 X-Migadu-Spam-Score: -5.64 X-TUID: enONI83RBwk6 Juan Manuel Mac=C3=ADas writes: >>> + (concat "\\(" >>> + (regexp-quote org-latex-line-break-safe) >>> + "\n\\)" >>> + "\\(^[ \t]*" >>> + (regexp-quote org-latex-line-break-safe) >>> + "\n" >>> + "\\)+") >>> + (concat "^[ \t]*" (regexp-quote org-latex-line-break-safe) "$")) >> >> May also use rx for better readability. > > I remember that I tried rx a while ago and found it very useful and > comfortable, but then I haven't done anything with it. The fact is that > over time I have ended up getting used to suffering from the classic > regexp and it is hard for me to get out of there :-). Of course, with rx > it would be clearer but I would have to refresh my memory. You can refer to [[info:elisp#Rx Constructs][elisp#Rx Constructs]] I think your regexp in rx should look like (rx-to-string `(seq (group ,org-latex-line-break-safe "\n") (1+ (group line-start (0+ space) ,org-latex-line-break = "\n")))) --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at