[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagno
From: |
Richard Stallman |
Subject: |
Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics |
Date: |
Mon, 24 Aug 2015 16:20:21 -0400 |
[[[ To any NSA and FBI agents reading my email: please consider ]]]
[[[ whether defending the US Constitution against all enemies, ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]
We could let the first argument to 'format'
be a symbol that specifies how to transform the format string.
Then the second argument would be the format string.
This feature would naturally propagate to 'message' and 'error'.
So you would write
(format 'ascii-quotes
"`add-to-list' can't use var `%s'; use `push' or `cl-pushnew'" sym)
and it would convert the quotes according to the display.
Or
(format 'single-quotes
"'add-to-list' can't use var '%s'; use 'push' or 'cl-pushnew'" sym)
and it would convert the quotes according to the display,
treating odd-numbered singlequotes as open-quotes.
You can take your choice, because either one will DTRT on all displays.
The specified symbol's 'format-transform' property should be a
function that makes the change. This way, many such transformations
can be implemented. A list of transformation symbols would mean to
make several of them.
This avoids all the disadvantages you were talking about.
--
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, (continued)
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/20
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Dmitry Gutov, 2015/08/21
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/21
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Dmitry Gutov, 2015/08/22
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/24
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/25
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Dmitry Gutov, 2015/08/25
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/25
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Stefan Monnier, 2015/08/25
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/25
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics,
Richard Stallman <=
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/24
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Richard Stallman, 2015/08/25
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/26
- Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Artur Malabarba, 2015/08/18
Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Alan Mackenzie, 2015/08/17
Re: [Emacs-diffs] master 9ce1d38: Use curved quotes in core elisp diagnostics, Paul Eggert, 2015/08/17