[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error message without quotes translation

From: Tino Calancha
Subject: error message without quotes translation
Date: Thu, 1 Sep 2016 13:19:12 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)

my question is related with the following NEWS entry:
** Message-issuing functions like 'message' and 'error' now translate
various sorts of single quotes in their format strings according to
the value of 'text-quoting-style' (see above).  This translation
cannot be disabled.  To get the old behavior, use 'format', which is
not affected by 'text-quoting-style', e.g., (message "%s" (format
"...." foo bar)).
If i want to show in the echo are the literal message: "`Symbol' 'foo"
then i can do as follows:
(message "%s" (format "`Symbol' 'foo"))
=> "`Symbol' 'foo"

From the above entry i expect the same works for `error' as well:
(error "%s" (format "`Symbol' 'foo"))

but i see in the echo area:
"‘Symbol’ ’foo"
that is, with the quotes translated.

In GNU Emacs (x86_64-pc-linux-gnu, GTK+ Version 3.20.9)
 of 2016-09-01
Repository revision: 6f125aa3de06fa0180a83ec7b5a26970309eeeb6

reply via email to

[Prev in Thread] Current Thread [Next in Thread]