From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id CDU2Hpm/Hmck/wAA62LTzQ:P1 (envelope-from ) for ; Sun, 27 Oct 2024 22:32:57 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id CDU2Hpm/Hmck/wAA62LTzQ (envelope-from ) for ; Sun, 27 Oct 2024 23:32:57 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=bernoul.li header.s=sel2011a header.b=fcVgCqu6; 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=reject) header.from=bernoul.li ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730068377; 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:dkim-signature; bh=kHtDcg3TSpGjC/zrao90+3q2QN6IXtGoW65T+1IIlMA=; b=Sdcf71I91CWLXbck9RdasQMeyU6M6Ytd+s/qNLGloEmJ/Z+gba0WJZeXQ4EskP8lSWP8go mHEK935kR/arzngQsP/BrB8p8Gs8oFGrobsmw/rssyKrcJfXa1uhYehV9XF4yADXkPEpZO A+tAqjWH5WEZ/YoRYsvm3NI2RnYkNH1Sf1ZBvAMK4tXqPNRtA6uMHZ6mhjd6dn9sjx1qFU 3ySRj9tSKhu44RklT3SWbjgv7/y4GgDyJiqeP8TlHfrW/shqkYY+bZ9wwyxkj7uuqhPr1W DEFxwS7dWYA0knCDI57e6A1Em/LaCHHzWhZXLYfhtybc3GttPlAJ4hh5Utd7QQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730068377; a=rsa-sha256; cv=none; b=PeSKJNSDu3lPipl3byrDdgycCS670JSyofFILXNhD4P6dQuxluRT57GRL9WFmeAk8xIYdb 2Tk+Pc3kgviM6JuzKXJH491Hnd6H970WXJbSrZvT8pwXg2Cupts4dh4d7+CVI3hCCfOp8x L06Hbshqs7AboKfRuhbjGzqDOK3WMit+VzGIkbaDMfwNvLM+NnmS6gwSeR/UMBHrPR3q1Z 8Q5JwfwghTt32pS+WHsNHddJ6tW/HJKW4YvPU674Rtul91K7T/zVAHWBTdNCSgS4elmZUn RTAAnEP6mbShYzNTEYTRKD5jdFbbLDLnCk4DzPnAA5TzTdclU4FVFYj199IyFg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=bernoul.li header.s=sel2011a header.b=fcVgCqu6; 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=reject) header.from=bernoul.li 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 E6626806D4 for ; Sun, 27 Oct 2024 23:32:56 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5Bnj-00086k-Cb; Sun, 27 Oct 2024 18:31:59 -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 1t5Bnh-00086Q-8p for emacs-orgmode@gnu.org; Sun, 27 Oct 2024 18:31:57 -0400 Received: from mail.hostpark.net ([212.243.197.30]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5Bnf-0006W8-1f for emacs-orgmode@gnu.org; Sun, 27 Oct 2024 18:31:56 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 49B761649F; Sun, 27 Oct 2024 23:31:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from; s=sel2011a; t=1730068306; bh=TMdSWq3yGx7614FLkdNs5AlZFMgsOjiglj+3eXjZqLA=; b= fcVgCqu6o/MSFxN8YLHuMKdGb4XjXOQB1+zswz58pAYZDfTptHAzSElE8ctNybxf kmPYAPabA/4hYOpX57gjKM9Sdj4TSOM8/Xz/3ycN+QWPZB1n57VLQfN5aGikcRat k8XzbCugXYW/WtlAhlHISaB2l7RVGJSSsUL6AqPYybs= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id XAUsiKRSLQN7; Sun, 27 Oct 2024 23:31:46 +0100 (CET) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id B0DEE16459; Sun, 27 Oct 2024 23:31:45 +0100 (CET) From: Jonas Bernoulli To: Ihor Radchenko , 8dcc <8dcc.git@gmail.com> Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] Texinfo: Commas in URL text are not escaped In-Reply-To: <87ed4cwkzm.fsf@localhost> References: <87set58skp.fsf@gmail.com> <87ed4cwkzm.fsf@localhost> Date: Sun, 27 Oct 2024 23:31:44 +0100 Message-ID: <87iktd9nzj.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=212.243.197.30; envelope-from=jonas@bernoul.li; helo=mail.hostpark.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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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-Spam-Score: -3.80 X-Spam-Score: -3.80 X-Migadu-Queue-Id: E6626806D4 X-Migadu-Scanner: mx13.migadu.com X-TUID: qpVcnYLWC4VU Ihor Radchenko writes: > 8dcc <8dcc.git@gmail.com> writes: > >> When exported to Texinfo using `org-texinfo-export-to-texinfo', >> generates the following file: >> >> ... >> @uref{https://example.com, Foo} >> >> @uref{https://example.com, Foo, Bar} >> ... >> >> The comma on the text of the second URL is being interpreted by Texinfo >> as an argument separator, which in the case of `@uref', only the third >> argument is displayed, hiding the second argument and the actual URL >> when exporting the file. > > Fixed, on main. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=39264d3d41 > Thanks for reporting! > * lisp/ox-texinfo.el (org-texinfo--sanitize-content): Sanitize commas > everywhere to make sure that we do not end up with text commas being > interpreted as argument separator in @command{arg1, arg2, ...}. This > approach will produce @comma{} even when it is not necessary, but it > is the safest approach. Could you please find a more localized solution? I would expect that this can be done in org-texinfo-link instead. Replacing every comma with @comma{} makes the resulting texinfo much harder to read. Cheers, Jonas