diff options
| author | Paul Eggert | 2015-05-28 00:06:14 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-05-28 00:22:03 -0700 |
| commit | 67c28d1fb3b81f01e9f908ea99763165d84680dd (patch) | |
| tree | 9a4ac82e2fdece4962b1fa8521d252fe3df6f39b | |
| parent | dfc2ef11a84d33eab916ff87b8537f8e28c05c92 (diff) | |
| download | emacs-67c28d1fb3b81f01e9f908ea99763165d84680dd.tar.gz emacs-67c28d1fb3b81f01e9f908ea99763165d84680dd.zip | |
Generate curved quotes in pseudo-info nodes
* lisp/info.el (Info-virtual-index-find-node)
(Info-virtual-index, Info-apropos-find-node, info-apropos):
Quote ‘like this’, not `like this', when generating pseudo-info nodes.
| -rw-r--r-- | lisp/info.el | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/info.el b/lisp/info.el index ab2497dbe16..80428e700a0 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -3406,7 +3406,7 @@ MATCHES is a list of index matches found by `Info-index'.") | |||
| 3406 | (defun Info-virtual-index-find-node (filename nodename &optional _no-going-back) | 3406 | (defun Info-virtual-index-find-node (filename nodename &optional _no-going-back) |
| 3407 | "Index-specific implementation of `Info-find-node-2'." | 3407 | "Index-specific implementation of `Info-find-node-2'." |
| 3408 | ;; Generate Index-like menu of matches | 3408 | ;; Generate Index-like menu of matches |
| 3409 | (if (string-match "^\\*Index for `\\(.+\\)'\\*$" nodename) | 3409 | (if (string-match "^\\*Index for ‘\\(.+\\)’\\*$" nodename) |
| 3410 | ;; Generate Index-like menu of matches | 3410 | ;; Generate Index-like menu of matches |
| 3411 | (let* ((topic (match-string 1 nodename)) | 3411 | (let* ((topic (match-string 1 nodename)) |
| 3412 | (matches (cdr (assoc (cons (or filename Info-current-file) topic) | 3412 | (matches (cdr (assoc (cons (or filename Info-current-file) topic) |
| @@ -3415,7 +3415,7 @@ MATCHES is a list of index matches found by `Info-index'.") | |||
| 3415 | (or filename Info-current-file) nodename)) | 3415 | (or filename Info-current-file) nodename)) |
| 3416 | (insert "Info Virtual Index\n") | 3416 | (insert "Info Virtual Index\n") |
| 3417 | (insert "******************\n\n") | 3417 | (insert "******************\n\n") |
| 3418 | (insert "Index entries that match `" topic "':\n\n") | 3418 | (insert "Index entries that match ‘" topic "’:\n\n") |
| 3419 | (insert "\0\b[index\0\b]\n") | 3419 | (insert "\0\b[index\0\b]\n") |
| 3420 | (if (null matches) | 3420 | (if (null matches) |
| 3421 | (insert "No matches found.\n") | 3421 | (insert "No matches found.\n") |
| @@ -3434,13 +3434,13 @@ MATCHES is a list of index matches found by `Info-index'.") | |||
| 3434 | (insert "Info Virtual Index\n") | 3434 | (insert "Info Virtual Index\n") |
| 3435 | (insert "******************\n\n") | 3435 | (insert "******************\n\n") |
| 3436 | (insert "This is a list of search results produced by\n" | 3436 | (insert "This is a list of search results produced by\n" |
| 3437 | "`Info-virtual-index' for the current manual.\n\n") | 3437 | "‘Info-virtual-index’ for the current manual.\n\n") |
| 3438 | (insert "* Menu:\n\n") | 3438 | (insert "* Menu:\n\n") |
| 3439 | (dolist (nodeinfo nodes) | 3439 | (dolist (nodeinfo nodes) |
| 3440 | (when (equal (car (nth 0 nodeinfo)) (or filename Info-current-file)) | 3440 | (when (equal (car (nth 0 nodeinfo)) (or filename Info-current-file)) |
| 3441 | (insert | 3441 | (insert |
| 3442 | (format "* %-20s %s.\n" | 3442 | (format "* %-20s %s.\n" |
| 3443 | (format "*Index for `%s'*::" (cdr (nth 0 nodeinfo))) | 3443 | (format "*Index for ‘%s’*::" (cdr (nth 0 nodeinfo))) |
| 3444 | (cdr (nth 0 nodeinfo))))))))) | 3444 | (cdr (nth 0 nodeinfo))))))))) |
| 3445 | 3445 | ||
| 3446 | (defun Info-virtual-index (topic) | 3446 | (defun Info-virtual-index (topic) |
| @@ -3475,7 +3475,7 @@ search results." | |||
| 3475 | (setq Info-history-list ohist-list) | 3475 | (setq Info-history-list ohist-list) |
| 3476 | (Info-goto-node orignode) | 3476 | (Info-goto-node orignode) |
| 3477 | (message ""))) | 3477 | (message ""))) |
| 3478 | (Info-find-node Info-current-file (format "*Index for `%s'*" topic)))) | 3478 | (Info-find-node Info-current-file (format "*Index for ‘%s’*" topic)))) |
| 3479 | 3479 | ||
| 3480 | (add-to-list 'Info-virtual-files | 3480 | (add-to-list 'Info-virtual-files |
| 3481 | '("\\`\\*Apropos\\*\\'" | 3481 | '("\\`\\*Apropos\\*\\'" |
| @@ -3515,7 +3515,7 @@ MATCHES is a list of index matches found by `Info-apropos-matches'.") | |||
| 3515 | Info-apropos-file nodename)) | 3515 | Info-apropos-file nodename)) |
| 3516 | (insert "Apropos Index\n") | 3516 | (insert "Apropos Index\n") |
| 3517 | (insert "*************\n\n") | 3517 | (insert "*************\n\n") |
| 3518 | (insert "This is a list of search results produced by `info-apropos'.\n\n") | 3518 | (insert "This is a list of search results produced by ‘info-apropos’.\n\n") |
| 3519 | (insert "* Menu:\n\n") | 3519 | (insert "* Menu:\n\n") |
| 3520 | (dolist (nodeinfo nodes) | 3520 | (dolist (nodeinfo nodes) |
| 3521 | (insert (format "* %-20s %s.\n" | 3521 | (insert (format "* %-20s %s.\n" |
| @@ -3529,7 +3529,7 @@ MATCHES is a list of index matches found by `Info-apropos-matches'.") | |||
| 3529 | Info-apropos-file nodename)) | 3529 | Info-apropos-file nodename)) |
| 3530 | (insert "Apropos Index\n") | 3530 | (insert "Apropos Index\n") |
| 3531 | (insert "*************\n\n") | 3531 | (insert "*************\n\n") |
| 3532 | (insert "Index entries that match `" (nth 1 nodeinfo) "':\n\n") | 3532 | (insert "Index entries that match ‘" (nth 1 nodeinfo) "’:\n\n") |
| 3533 | (insert "\0\b[index\0\b]\n") | 3533 | (insert "\0\b[index\0\b]\n") |
| 3534 | (if (eq matches t) | 3534 | (if (eq matches t) |
| 3535 | (insert "No matches found.\n") | 3535 | (insert "No matches found.\n") |
| @@ -3614,7 +3614,7 @@ Build a menu of the possible matches." | |||
| 3614 | (setq nodes (cdr nodes))) | 3614 | (setq nodes (cdr nodes))) |
| 3615 | (if nodes | 3615 | (if nodes |
| 3616 | (Info-find-node Info-apropos-file (car (car nodes))) | 3616 | (Info-find-node Info-apropos-file (car (car nodes))) |
| 3617 | (setq nodename (format "Index for `%s'" string)) | 3617 | (setq nodename (format "Index for ‘%s’" string)) |
| 3618 | (push (list nodename string (Info-apropos-matches string)) | 3618 | (push (list nodename string (Info-apropos-matches string)) |
| 3619 | Info-apropos-nodes) | 3619 | Info-apropos-nodes) |
| 3620 | (Info-find-node Info-apropos-file nodename))))) | 3620 | (Info-find-node Info-apropos-file nodename))))) |