]> code.delx.au - gnu-emacs/commitdiff
Translate undisplayable ‘ to `
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Jun 2015 14:21:20 +0000 (07:21 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Jun 2015 14:22:07 +0000 (07:22 -0700)
* 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

doc/lispref/help.texi
lisp/international/mule-cmds.el
lisp/term/w32console.el
src/doc.c

index 44a680c4a227f5ff1de56294bfe0848a44fc14e4..fde985d9b0bfb3a307c7c81aba004263f32583dc 100644 (file)
@@ -357,7 +357,7 @@ quotes.  If the value is @code{?'} (apostrophe), the style is @t{'like
 this'} with apostrophes.  If the value is @code{?`} (grave accent),
 the style is @t{`like this'} with grave accent and apostrophe.  The
 default value @code{nil} means to use curved single quotes if
-displayable and apostrophes otherwise.
+displayable, and grave accent and apostrophe otherwise.
 @end defvar
 
 @defun substitute-command-keys string
index 16c1003960a4ca5a3f638757f846ebb59a76c613..248c89c40fc4234a06c05631c402ac7e0d167f82 100644 (file)
@@ -2731,9 +2731,9 @@ See also `locale-charset-language-names', `locale-language-names',
        (set-terminal-coding-system 'utf-8)
        (set-keyboard-coding-system 'utf-8)))
 
-    ;; If curved quotes don't work, display straight ASCII approximations.
+    ;; If curved quotes don't work, display ASCII approximations.
     (unless frame
-      (dolist (char-repl '((?‘ . [?\']) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
+      (dolist (char-repl '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
         (when (not (char-displayable-p (car char-repl)))
           (or standard-display-table
               (setq standard-display-table (make-display-table)))
index 29ab2f16e1c38d44558e358516da4d42152633f5..2df137839d07787dfa1e9880064e0ff1205b96f7 100644 (file)
@@ -69,7 +69,7 @@
           ;; Since we changed the terminal encoding, we need to repeat
           ;; the test for Unicode quotes being displayable.
           (dolist (char-repl
-                   '((?‘ . [?\']) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
+                   '((?‘ . [?\`]) (?’ . [?\']) (?“ . [?\"]) (?” . [?\"])))
             (when (not (char-displayable-p (car char-repl)))
               (or standard-display-table
                   (setq standard-display-table (make-display-table)))
index d2d3c8dd9c15ecdf29f10fce77ec1e253dfbe5c3..655b9117d6df7afc6a69001faa84de7fc6219617 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -761,8 +761,8 @@ Otherwise, return a new string.  */)
       Lisp_Object dv = DISP_CHAR_VECTOR (XCHAR_TABLE (Vstandard_display_table),
                                         LEFT_SINGLE_QUOTATION_MARK);
       if (VECTORP (dv) && ASIZE (dv) == 1
-         && EQ (AREF (dv, 0), make_number ('\'')))
-       quote_translation = apostrophe;
+         && EQ (AREF (dv, 0), make_number ('`')))
+       quote_translation = grave_accent;
     }
 
   multibyte = STRING_MULTIBYTE (string);
@@ -1040,7 +1040,7 @@ Quote \\=‘like this\\=’ if the value is ?\\=‘ (left single quotation mark)
 Quote 'like this' if the value is ?' (apostrophe).
 Quote \\=`like this' if the value is ?\\=` (grave accent).
 The default value is nil, which means quote with left single quotation mark
-if displayable, and with apostrophe otherwise.  */);
+if displayable, and with grave accent otherwise.  */);
   Vhelp_quote_translation = Qnil;
 
   defsubr (&Sdocumentation);