From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.bugs Subject: bug#60454: 30.0.50; `format-message' does not allow displaying "`" and "'" verbatim Date: Sat, 31 Dec 2022 15:04:36 +0000 Message-ID: <87tu1b8vi3.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33342"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier To: 60454@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 31 16:05:16 2022 Return-path: Envelope-to: geb-bug-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 1pBdQB-0008VJ-6C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 31 Dec 2022 16:05:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pBdQ0-00027R-8U; Sat, 31 Dec 2022 10:05:04 -0500 Original-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 1pBdPy-000255-QO for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 10:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pBdPy-0000QU-Et for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 10:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pBdPy-00054z-07; Sat, 31 Dec 2022 10:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ihor Radchenko Original-Sender: "Debbugs-submit" Resent-CC: monnier@iro.umontreal.ca, bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2022 15:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60454 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Stefan Monnier Original-Received: via spool by submit@debbugs.gnu.org id=B.167249907319480 (code B ref -1); Sat, 31 Dec 2022 15:05:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Dec 2022 15:04:33 +0000 Original-Received: from localhost ([127.0.0.1]:39624 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBdPU-000547-Kf for submit@debbugs.gnu.org; Sat, 31 Dec 2022 10:04:33 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:41204) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pBdPT-000540-8x for submit@debbugs.gnu.org; Sat, 31 Dec 2022 10:04:31 -0500 Original-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 1pBdPT-0001UR-33 for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 10:04:31 -0500 Original-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 1pBdPQ-0000EL-KQ for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2022 10:04:30 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0692B240258 for ; Sat, 31 Dec 2022 16:04:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1672499054; bh=OMQphf6VaXe7pvurjAbHpj8ROizN1YauCCQ0QRpaE1Q=; h=From:To:Subject:Date:From; b=mwg73Hiiq5BEhjqCAGUzZc2Oo6rnpvjsdBeUH+jVip0Qi4eQ/TZmo+Hf0968R/miU S4L/IxJJ51bmYrOH18RNR0SjA2fpZ+1IKrtZNa3k0/Myy7TNgNdS13kIGMQymvvyBZ a2PuMWHnh5+DwtPrM6DMOnySlPG9jzruamgfsftlddTdaLYjqWzH7a3lm9oWYThvcm hM2X7Y6qZ4TalvGSJ3rTO9BUquQFbZ2lpQQvoftLtMj0QW7so110r4kCt78WbCp5gO E8xhXvxwnOuIIIZdmm4VPfevPwv0hBhjEP1KY4zV/ehyRQJY8fLI8ec31a8iGkF5nl cc+qaVaHF86zg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NkllK3STxz6tmF for ; Sat, 31 Dec 2022 16:04:13 +0100 (CET) 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_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:252196 Archived-At: Hi, Following up https://list.orgmode.org/87k027af5x.fsf@localhost/T/#t and https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=3D62dc4= 9509c8962bd2a19c4c4475fc616eebdfde8 `format-message' and thus also `warn' unconditionally replace _all_ the instances of "`" and "'" in the message: This acts like =E2=80=98format=E2=80=99, except it also replaces each g= rave accent (`) by a left quote, and each apostrophe (') by a right quote. However, sometimes, it is desired to keep these chars literal. For example, `org-assert-version' displays a warning that suggests Elisp code: (warn "... It is recommended to put (straight-use-package 'org) ...") Replacing "'" is undesired here and will make copy-pasted Elisp code incorrect. Would it be possible to introduce some kind of escape mechanism in `format-message' to produce literal "'" and "`" when needed? In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.35, cairo version 1.17.6) of 2022-12-26 built on localhost Repository revision: cc29fab3a66c59e77d0ff67c0f3e2e34ec80a03c Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101004 System Description: Gentoo Linux --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at