* bug#25483: 26.0.50; Not possible to put ASCII quote in result of format-message
@ 2017-01-19 11:00 Philipp Stephani
2017-01-19 12:45 ` Stephen Berman
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Philipp Stephani @ 2017-01-19 11:00 UTC (permalink / raw)
To: 25483
Evaluate:
(format-message "'")
"’"
(format-message "\\='")
"\\=’"
Note that it is apparently impossible to put an ASCII quote into the
result of format-message. Quoting with \= doesn't appear to work.
In GNU Emacs 26.0.50.39 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8)
of 2017-01-18 built on localhost
Repository revision: 5304cb983146fe55ea1b4963ffc756ca4325673d
Windowing system distributor 'The X.Org Foundation', version 11.0.11501000
System Description: Ubuntu 14.04 LTS
Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Configured using:
'configure --with-modules --enable-checking
--enable-check-lisp-object-type 'CFLAGS=-ggdb3 -O0''
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY GNUTLS FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES
Important settings:
value of $LANG: en_US.UTF-8
locale-coding-system: utf-8-unix
Major mode: Lisp Interaction
Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
tool-bar-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug message subr-x puny seq byte-opt gv
bytecomp byte-compile cl-extra help-mode cconv cl-loaddefs pcase cl-lib
dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec
password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr
mail-utils time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript case-table epa-hook jka-cmpr-hook help
simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button
faces cus-face macroexp files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote inotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty
make-network-process emacs)
Memory information:
((conses 16 97797 12322)
(symbols 48 20221 1)
(miscs 40 331 156)
(strings 32 18029 4508)
(string-bytes 1 593190)
(vectors 16 14091)
(vector-slots 8 472914 6057)
(floats 8 181 27)
(intervals 56 218 0)
(buffers 976 12)
(heap 1024 17886 999))
--
Google Germany GmbH
Erika-Mann-Straße 33
80636 München
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind,
leiten Sie diese bitte nicht weiter, informieren Sie den Absender und löschen
Sie die E-Mail und alle Anhänge. Vielen Dank.
This e-mail is confidential. If you are not the right addressee please do not
forward it, please inform the sender, and please erase this e-mail including
any attachments. Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#25483: 26.0.50; Not possible to put ASCII quote in result of format-message
2017-01-19 11:00 bug#25483: 26.0.50; Not possible to put ASCII quote in result of format-message Philipp Stephani
@ 2017-01-19 12:45 ` Stephen Berman
2017-01-19 12:56 ` npostavs
2017-01-19 20:52 ` Alan Mackenzie
2 siblings, 0 replies; 4+ messages in thread
From: Stephen Berman @ 2017-01-19 12:45 UTC (permalink / raw)
To: Philipp Stephani; +Cc: 25483
On Thu, 19 Jan 2017 12:00:49 +0100 Philipp Stephani <p.stephani2@gmail.com> wrote:
> Evaluate:
>
> (format-message "'")
> "’"
> (format-message "\\='")
> "\\=’"
>
> Note that it is apparently impossible to put an ASCII quote into the
> result of format-message. Quoting with \= doesn't appear to work.
As its doc string says, text-quoting-style determines this:
(let ((text-quoting-style 'straight))
(format-message "'"))
"'"
Steve Berman
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#25483: 26.0.50; Not possible to put ASCII quote in result of format-message
2017-01-19 11:00 bug#25483: 26.0.50; Not possible to put ASCII quote in result of format-message Philipp Stephani
2017-01-19 12:45 ` Stephen Berman
@ 2017-01-19 12:56 ` npostavs
2017-01-19 20:52 ` Alan Mackenzie
2 siblings, 0 replies; 4+ messages in thread
From: npostavs @ 2017-01-19 12:56 UTC (permalink / raw)
To: Philipp Stephani; +Cc: 25483
tags 25483 notabug
quit
Philipp Stephani <p.stephani2@gmail.com> writes:
> Evaluate:
>
> (format-message "'")
> "’"
> (format-message "\\='")
> "\\=’"
>
> Note that it is apparently impossible to put an ASCII quote into the
> result of format-message. Quoting with \= doesn't appear to work.
>
You can do (format-message "%s" "'").
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#25483: 26.0.50; Not possible to put ASCII quote in result of format-message
2017-01-19 11:00 bug#25483: 26.0.50; Not possible to put ASCII quote in result of format-message Philipp Stephani
2017-01-19 12:45 ` Stephen Berman
2017-01-19 12:56 ` npostavs
@ 2017-01-19 20:52 ` Alan Mackenzie
2 siblings, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2017-01-19 20:52 UTC (permalink / raw)
To: Philipp Stephani; +Cc: 25483
Hello, Philipp.
On Thu, Jan 19, 2017 at 12:00:49PM +0100, Philipp Stephani wrote:
> Evaluate:
> (format-message "'")
> "’"
> (format-message "\\='")
> "\\=’"
> Note that it is apparently impossible to put an ASCII quote into the
> result of format-message. Quoting with \= doesn't appear to work.
As somebody else has noted, you need to set or bind text-quoting-style
to the symbol `grave'.
Note that as from 2016-05-10, text-quoting-style no longer translates
curly quotes, so `grave' essentially means "no change to any quoting
character" - which is presumably what you really want. :-)
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-01-19 20:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-19 11:00 bug#25483: 26.0.50; Not possible to put ASCII quote in result of format-message Philipp Stephani
2017-01-19 12:45 ` Stephen Berman
2017-01-19 12:56 ` npostavs
2017-01-19 20:52 ` Alan Mackenzie
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.