From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QCXZLwcO2mUEGQEA62LTzQ:P1 (envelope-from ) for ; Sat, 24 Feb 2024 16:40:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QCXZLwcO2mUEGQEA62LTzQ (envelope-from ) for ; Sat, 24 Feb 2024 16:40:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=RxuFE0ue; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708789255; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=NOpm5ge2dK2qQTlOfgVk9GKspSr0Jjjq9Zmhsf8d7Vc=; b=Iu0Uil7p27URiUhBo8ul8MziY/wiBg6QG4pvHlgK2m4E4zwO47tDHBFPEyXMDkL5uTuAPh dSlzRdsIO8N68e53P9qsNZfJqyYw2Cla8/q/2wqzpvdZiLhwFjVza1D4Ypst+K7rM8A1Qt EXMX7tsGlqOLmMmi9inEOvEITnONGjzTkoJIBpPN8cgkYQuIc3o32QspVzL5yMLNRvj/V1 N3YBMn0wjcuEqZZT2xQvVTCislF9+4c+A0MqsR+T7V4JD46xW7hR5Ew9r+NNMJ3reJml3e XGSlO7CAm2/B0R77iti2hJdiWSgTLXN2ePlI8jIGwRM3hoX4Y6fa+YLXSlwsaA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=RxuFE0ue; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708789255; a=rsa-sha256; cv=none; b=tz5xl2z8lg06cujpX3vG7VSCvkBc4VyF72LkY/Uamhh+M99LGhPRoP0dYNNUqdS3bbvx5E pTuXRxyfcAM7ORuLK1p14LIa8K/FAK8nQh7jovJigrkme9WS3DsD2kagBgqJ63BbmZzJvp ko0bkAeXApc8I6e/K+UxAFqZc1dURNEjYMH4wIYvGB+KLN/HvmC5jbtQf7Xr0JQb1xgiRR +T3ctbbSgAkXEK2xEUXaFlCtQFdIOauJig5+zqsmnlFkJd2lAISTutwwjN+4SKG3mFFugr kEm/8jD5OIr7Lg8P1D7p4/cM/4G9vH69C2p/2zvfw1g5eGe8g3wo0eYcWUtxTQ== 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 6D33E24C2C for ; Sat, 24 Feb 2024 16:40:55 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdu8J-0004Ja-D3; Sat, 24 Feb 2024 10:40:11 -0500 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 1rcoSH-0003ml-Dc for emacs-orgmode@gnu.org; Wed, 21 Feb 2024 10:24:17 -0500 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rco9E-0000Jv-Ee for emacs-orgmode@gnu.org; Wed, 21 Feb 2024 10:04:38 -0500 Received: by mail-wr1-x442.google.com with SMTP id ffacd0b85a97d-33d7afd1ee0so527462f8f.2 for ; Wed, 21 Feb 2024 07:04:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708527875; x=1709132675; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=NOpm5ge2dK2qQTlOfgVk9GKspSr0Jjjq9Zmhsf8d7Vc=; b=RxuFE0ueoCRWlcVLQ4U414N7HCz0xuWtXr/kxXfBc5AOFSa5JUy3F0pFDb5w3nLbbj x0I8aZkXL2QDJ6t/zu14BhlUQZ9v18J4BTLes2zOrsZ4I5Y014q2+R7mnmndxZ3m5MH1 twz9QXK8f8kNrYqUth659e7wuJmLBvlJcqV0GKUe2la4FD41U5Kx66N0evJBByoTlg9Z xfVQmY/XDJrKQ4vl7vkQ0oRlfj7pdLu1nUWW7VGgI7M5KHm544Xctx0iEfjsLvpwRUuj A2lh2alurm7dHKZ4XG5kue36KHc1pbD8Rp7Jt1YpQRyyUzTYfg4ysX+BzTW1d4YHONY0 G76Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708527875; x=1709132675; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NOpm5ge2dK2qQTlOfgVk9GKspSr0Jjjq9Zmhsf8d7Vc=; b=Dpg/j2MJ7dIUFrq+i+HGsi6fIeXNE4aHujt3Iat7w7qncJvKpohjY8PHSs6UEFB5P4 gQuFG+MXo8HbH/+7Dq6QbosiqOo7zVfzoUTuMivVCPDUBuQ+/gks81CuXfO5yCS4XCtI tmadNNweo/VcDw0sxKAQyuvSe8zqa1Pro2+vRigmzsBVXTFBHCX62NcMJ2TqVfV6Tx3l ApBbGsoLel1HBAXMl6k4EISHpdxcTqv9AUexZ7TBEe0ThwDQz2QpZ1fm/i6qce8nmeZ3 S5hSUcx63o/BDQ8N5Uu8YWoYzJWoQrXN6L+WPNlKXM67eTVYfcOHZZO/5DCsf7IYBU6q PDrw== X-Forwarded-Encrypted: i=1; AJvYcCV/5L2qvzRo5OOxwq2hE70nqHqJ6/KGphYyEGIwa84HvDeqZ9LtOtRy6YXEyyBQFBInMGpoTKTCp8SmcsdEZu6GCkMxVdI= X-Gm-Message-State: AOJu0Yz1pdbn9psQn5BYqoG7EuQitUR+CA5zusno/P64ChmDtCtE/T39 0iJ2+DOfKtPXbkcG1nSSByTuIgThX3ItEQyWKPOiMfOmxbo/ALRpxyqdzQafJzj/B7PRfY64IzP JTmf0gTRNigVl+Iagx7vi86qrWKk= X-Google-Smtp-Source: AGHT+IHs7YdSgfcDquZQ8YG3vazCRMOP0mw5UZiNZDHLAc6mJMTBjvqUpcgaVJ/qAOOMcWnuAq6RsxAyxUTI7BkOZLM= X-Received: by 2002:a05:6000:400d:b0:33d:2d02:b077 with SMTP id cp13-20020a056000400d00b0033d2d02b077mr11435026wrb.30.1708527874614; Wed, 21 Feb 2024 07:04:34 -0800 (PST) MIME-Version: 1.0 References: <87wmr1rc2w.fsf@localhost> In-Reply-To: From: =?UTF-8?Q?Martin_Edstr=C3=B6m?= Date: Wed, 21 Feb 2024 16:04:23 +0100 Message-ID: Subject: Re: Warn about shell-expansion in the docstring of org-latex-to-html-convert-command To: =?UTF-8?Q?Martin_Edstr=C3=B6m?= , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::442; envelope-from=meedstrom91@gmail.com; helo=mail-wr1-x442.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 24 Feb 2024 10:40:05 -0500 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -7.93 X-Spam-Score: -7.93 X-Migadu-Queue-Id: 6D33E24C2C X-TUID: T9MPYdvUhFZ+ Actually, I agree about your test case, that looks like it'd cause a proble= m. So we patch the function to use `shell-quote-argument'? On Wed, 21 Feb 2024 at 15:38, Max Nikulin wrote: > > On 19/02/2024 02:36, Martin Edstr=C3=B6m wrote: > > +Since this is a shell-command, remember to use single-quotes > > +around \\=3D'%i\\=3D', not double-quotes! Else a math fragment such > > +as \"$y =3D 200$\" gets butchered into only \" =3D 200\"." > > I am afraid, the code, not the docstring must be fixed. I have not tried > it, but I expect an issue with > > Test \(f' =3D df/dx\) > > So `shell-quote-argument' is necessary and quotes around %i must be > stripped similar to %s in mailcap entries in `org-open-file'. > > Notice that dollar-math $x =3D y$ is not recommended and considered as > obsolete syntax. Use \(x =3D y\) or \[x =3D y\] (the latter for display m= ath).