aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggert2015-06-25 07:21:20 -0700
committerPaul Eggert2015-06-25 07:22:07 -0700
commitee80c1170916aae1bca62df5ca086fcc13486de1 (patch)
tree802eb2b104466271a198d6763036ea65cf8a21a4
parent67dbc32afd8af2eaca9fdba9f17680cdcecb178f (diff)
downloademacs-ee80c1170916aae1bca62df5ca086fcc13486de1.tar.gz
emacs-ee80c1170916aae1bca62df5ca086fcc13486de1.zip
Translate undisplayable ‘ to `
* doc/lispref/help.texi (Keys in Documentation): * lisp/international/mule-cmds.el (set-locale-environment): * lisp/term/w32console.el (terminal-init-w32console): * src/doc.c (Fsubstitute_command_keys, Vhelp_quote_translation): If ‘ is not displayable, transliterate it to `, not to '. See: http://lists.gnu.org/archive/html/emacs-devel/2015-06/msg00542.html
-rw-r--r--doc/lispref/help.texi2
-rw-r--r--lisp/international/mule-cmds.el4
-rw-r--r--lisp/term/w32console.el2
-rw-r--r--src/doc.c6
4 files changed, 7 insertions, 7 deletions
diff --git a/doc/lispref/help.texi b/doc/lispref/help.texi
index 44a680c4a22..fde985d9b0b 100644
--- a/doc/lispref/help.texi
+++ b/doc/lispref/help.texi
@@ -357,7 +357,7 @@ quotes. If the value is @code{?'} (apostrophe), the style is @t{'like
357this'} with apostrophes. If the value is @code{?`} (grave accent), 357this'} with apostrophes. If the value is @code{?`} (grave accent),
358the style is @t{`like this'} with grave accent and apostrophe. The 358the style is @t{`like this'} with grave accent and apostrophe. The
359default value @code{nil} means to use curved single quotes if 359default value @code{nil} means to use curved single quotes if
360displayable and apostrophes otherwise. 360displayable, and grave accent and apostrophe otherwise.
361@end defvar 361@end defvar
362 362
363@defun substitute-command-keys string 363@defun substitute-command-keys string
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 16c1003960a..248c89c40fc 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -2731,9 +2731,9 @@ See also `locale-charset-language-names', `locale-language-names',
2731 (set-terminal-coding-system 'utf-8) 2731 (set-terminal-coding-system 'utf-8)
2732 (set-keyboard-coding-system 'utf-8))) 2732 (set-keyboard-coding-system 'utf-8)))
2733 2733
2734 ;; If curved quotes don't work, display straight ASCII approximations. 2734 ;; If curved quotes don't work, display ASCII approximations.
2735 (unless frame 2735 (unless frame
2736 (dolist (char-repl '((?‘ . [?\']) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"]))) 2736 (dolist (char-repl '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
2737 (when (not (char-displayable-p (car char-repl))) 2737 (when (not (char-displayable-p (car char-repl)))
2738 (or standard-display-table 2738 (or standard-display-table
2739 (setq standard-display-table (make-display-table))) 2739 (setq standard-display-table (make-display-table)))
diff --git a/lisp/term/w32console.el b/lisp/term/w32console.el
index 29ab2f16e1c..2df137839d0 100644
--- a/lisp/term/w32console.el
+++ b/lisp/term/w32console.el
@@ -69,7 +69,7 @@
69 ;; Since we changed the terminal encoding, we need to repeat 69 ;; Since we changed the terminal encoding, we need to repeat
70 ;; the test for Unicode quotes being displayable. 70 ;; the test for Unicode quotes being displayable.
71 (dolist (char-repl 71 (dolist (char-repl
72 '((?‘ . [?\']) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"]))) 72 '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
73 (when (not (char-displayable-p (car char-repl))) 73 (when (not (char-displayable-p (car char-repl)))
74 (or standard-display-table 74 (or standard-display-table
75 (setq standard-display-table (make-display-table))) 75 (setq standard-display-table (make-display-table)))
diff --git a/src/doc.c b/src/doc.c
index d2d3c8dd9c1..655b9117d6d 100644
--- a/src/doc.c
+++ b/src/doc.c
@@ -761,8 +761,8 @@ Otherwise, return a new string. */)
761 Lisp_Object dv = DISP_CHAR_VECTOR (XCHAR_TABLE (Vstandard_display_table), 761 Lisp_Object dv = DISP_CHAR_VECTOR (XCHAR_TABLE (Vstandard_display_table),
762 LEFT_SINGLE_QUOTATION_MARK); 762 LEFT_SINGLE_QUOTATION_MARK);
763 if (VECTORP (dv) && ASIZE (dv) == 1 763 if (VECTORP (dv) && ASIZE (dv) == 1
764 && EQ (AREF (dv, 0), make_number ('\''))) 764 && EQ (AREF (dv, 0), make_number ('`')))
765 quote_translation = apostrophe; 765 quote_translation = grave_accent;
766 } 766 }
767 767
768 multibyte = STRING_MULTIBYTE (string); 768 multibyte = STRING_MULTIBYTE (string);
@@ -1040,7 +1040,7 @@ Quote \\=‘like this\\=’ if the value is ?\\=‘ (left single quotation mark)
1040Quote 'like this' if the value is ?' (apostrophe). 1040Quote 'like this' if the value is ?' (apostrophe).
1041Quote \\=`like this' if the value is ?\\=` (grave accent). 1041Quote \\=`like this' if the value is ?\\=` (grave accent).
1042The default value is nil, which means quote with left single quotation mark 1042The default value is nil, which means quote with left single quotation mark
1043if displayable, and with apostrophe otherwise. */); 1043if displayable, and with grave accent otherwise. */);
1044 Vhelp_quote_translation = Qnil; 1044 Vhelp_quote_translation = Qnil;
1045 1045
1046 defsubr (&Sdocumentation); 1046 defsubr (&Sdocumentation);