From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SPdYOkNJT2E2YgEAgWs5BA (envelope-from ) for ; Sat, 25 Sep 2021 18:07:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id gOcCNkNJT2FZFAAAB5/wlQ (envelope-from ) for ; Sat, 25 Sep 2021 16:07:31 +0000 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 4616721AF2 for ; Sat, 25 Sep 2021 18:07:31 +0200 (CEST) Received: from localhost ([::1]:55180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUAD3-0001vD-Km for larch@yhetil.org; Sat, 25 Sep 2021 12:07:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53092) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUAAW-0001J5-06 for emacs-orgmode@gnu.org; Sat, 25 Sep 2021 12:04:52 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46772) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUAAV-0006au-Nf; Sat, 25 Sep 2021 12:04:51 -0400 Received: from [78.194.183.21] (port=52732 helo=hal) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUAAU-0003ZE-Sw; Sat, 25 Sep 2021 12:04:51 -0400 Received: by hal (Postfix, from userid 1000) id AD90F1E041B; Sat, 25 Sep 2021 18:04:47 +0200 (CEST) From: Bastien To: Maxim Nikulin Subject: Re: [PATCH] ox-latex: Allow percent sign in 'src-block' caption In-Reply-To: (Maxim Nikulin's message of "Tue, 7 Sep 2021 19:21:42 +0700") Organization: GNU References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Sat, 25 Sep 2021 18:04:47 +0200 Message-ID: <87y27kwsio.fsf@bzg.fr> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632586051; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=P7BLCVjz8GUBT9XadAFX88eAavhRDI6FyPvkOm+ygM0=; b=N1Jkxwv1fc7DQChMLaVFgjicqezgTNtuvqpL9puC/jqZxq8idPyhLWqcaa+c2k/ydPw12n 7UsnHsivtWap5ddMf2E4LvvNLMyJmmkdQng3JvlAGEeRCroBXkdTqa42q0XSxsU4XAm+2H aTMaAsGFrL35k9GA6d5xfsxS7lhtWI7BebUdC87YFS7wwKw5H6mT2gUb6lE3W2+SOmzYwM l/nQbOaJoLh79vszpFHxVusAoCYXzejCHHlFQG/JzC6U91KWSHXiTLDlAbmb3blm6iLpMn 7AHTwNZUW8cs88lgt0zrghidJEAr7Wetg0J2Pgkb2+qNU1Nogb45A/1WMp5u8w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632586051; a=rsa-sha256; cv=none; b=ExW29xsh3bC/i3j5Mfwk/Sb7aLMZae3DNzZeYQylqu35F+fuzIEHkXsVdtXtMlvPUBOcdi gz5SNBujMMwSkoaikJSsR4Kg+Wo8+YalD4EHnSnUVy/bSbKMcycvn7JZRUPRSKF7uShkvK dxTJgzLDaNZtGngZPLUhxgr99lHWeJGiNNkiZgZUmCeW1oVf3WeyoFa4Ri9RnbpQO46TvS 6V2tJFyJk5CkusWrTN/JjWn3jYjRfa3cgvINUqlMfDoQCs+0rYh9Vf6w6vsYu1ljDtT5zt kt71aRaHcerQlA6rpLg0DyKo+uB3n9EqSqrv5b8+6msFBWkLmIpa6jcm+s3zQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -2.89 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 4616721AF2 X-Spam-Score: -2.89 X-Migadu-Scanner: scn0.migadu.com X-TUID: ZCFMnRc0K/Fy Hi Maxim, Maxim Nikulin writes: > On 03/09/2021 19:17, Maxim Nikulin wrote: >> On 30/07/2021 22:00, Charest, Luc wrote: >>> >>> org-latex-src-block: Not enough arguments for format string >> >> Confirmed >> >> User input is combined with format string in `org-latex-src-block' >> so percent character in caption is treated as a format specifier.> >> Maybe emacs versions newer than 26 does not throw an error >> on extra specifier with missed argument. =:latex-cation-above nil= >> might still cause corrupted LaTeX code. > > I have decided that it is better to provide a partial fix than to leave > the problem as is. This patch covers only plain verbatim environment, > more advanced formatting using listings or minted should be addressed > by another change (Anybody?). Applied, thanks. > Do not close the bug after applying this patch. I've opened a bug from the original report, I'll check it does appear in updates.orgmode.org correctly.