diff options
| author | Paul Eggert | 2015-08-24 23:39:33 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-08-24 23:57:25 -0700 |
| commit | 875a5d0ead827d3da32ecbd30e739a29f07bbc87 (patch) | |
| tree | edb42bf8ed4e7d975c6dcbdbe1f4ab0d44f86925 /lisp/textmodes | |
| parent | 68280c5ee9b87d874ffa7c111b3cac7e634cee22 (diff) | |
| download | emacs-875a5d0ead827d3da32ecbd30e739a29f07bbc87.tar.gz emacs-875a5d0ead827d3da32ecbd30e739a29f07bbc87.zip | |
Prefer directed to neutral quotes
Prefer directed to neutral quotes in docstings and diagnostics.
In docstrings, escape apostrophes that would otherwise be translated
to curved quotes using the newer, simpler rules.
* admin/unidata/unidata-gen.el (unidata-gen-table):
* lisp/align.el (align-region):
* lisp/allout.el (allout-mode, allout-solicit-alternate-bullet):
* lisp/bookmark.el (bookmark-default-annotation-text):
* lisp/calc/calc-aent.el (math-read-if, math-read-factor):
* lisp/calc/calc-lang.el (math-read-giac-subscr)
(math-read-math-subscr):
* lisp/calc/calc-misc.el (report-calc-bug):
* lisp/calc/calc-prog.el (calc-fix-token-name)
(calc-read-parse-table-part):
* lisp/cedet/ede/pmake.el (ede-proj-makefile-insert-dist-rules):
* lisp/cedet/semantic/complete.el (semantic-displayor-show-request):
* lisp/dabbrev.el (dabbrev-expand):
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
* lisp/emacs-lisp/elint.el (elint-get-top-forms):
* lisp/emacs-lisp/lisp-mnt.el (lm-verify):
* lisp/emulation/viper-cmd.el (viper-toggle-search-style):
* lisp/erc/erc-button.el (erc-nick-popup):
* lisp/erc/erc.el (erc-cmd-LOAD, erc-handle-login):
* lisp/eshell/em-dirs.el (eshell/cd):
* lisp/eshell/em-glob.el (eshell-glob-regexp):
* lisp/eshell/em-pred.el (eshell-parse-modifiers):
* lisp/eshell/esh-arg.el (eshell-parse-arguments):
* lisp/eshell/esh-opt.el (eshell-show-usage):
* lisp/files-x.el (modify-file-local-variable):
* lisp/filesets.el (filesets-add-buffer, filesets-remove-buffer)
(filesets-update-pre010505):
* lisp/find-cmd.el (find-generic, find-to-string):
* lisp/gnus/auth-source.el (auth-source-netrc-parse-entries):
* lisp/gnus/gnus-agent.el (gnus-agent-check-overview-buffer)
(gnus-agent-fetch-headers):
* lisp/gnus/gnus-int.el (gnus-start-news-server):
* lisp/gnus/gnus-registry.el:
(gnus-registry--split-fancy-with-parent-internal):
* lisp/gnus/gnus-score.el (gnus-summary-increase-score):
* lisp/gnus/gnus-start.el (gnus-convert-old-newsrc):
* lisp/gnus/gnus-topic.el (gnus-topic-rename):
* lisp/gnus/legacy-gnus-agent.el (gnus-agent-unlist-expire-days):
* lisp/gnus/nnmairix.el (nnmairix-widget-create-query):
* lisp/gnus/spam.el (spam-check-blackholes):
* lisp/mail/feedmail.el (feedmail-run-the-queue):
* lisp/mpc.el (mpc-playlist-rename):
* lisp/net/ange-ftp.el (ange-ftp-shell-command):
* lisp/net/mairix.el (mairix-widget-create-query):
* lisp/net/tramp-cache.el:
* lisp/obsolete/otodo-mode.el (todo-more-important-p):
* lisp/obsolete/pgg-gpg.el (pgg-gpg-process-region):
* lisp/obsolete/pgg-pgp.el (pgg-pgp-process-region):
* lisp/obsolete/pgg-pgp5.el (pgg-pgp5-process-region):
* lisp/org/ob-core.el (org-babel-goto-named-src-block)
(org-babel-goto-named-result):
* lisp/org/ob-fortran.el (org-babel-fortran-ensure-main-wrap):
* lisp/org/ob-ref.el (org-babel-ref-resolve):
* lisp/org/org-agenda.el (org-agenda-prepare):
* lisp/org/org-bibtex.el (org-bibtex-fields):
* lisp/org/org-clock.el (org-clock-notify-once-if-expired)
(org-clock-resolve):
* lisp/org/org-feed.el (org-feed-parse-atom-entry):
* lisp/org/org-habit.el (org-habit-parse-todo):
* lisp/org/org-mouse.el (org-mouse-popup-global-menu)
(org-mouse-context-menu):
* lisp/org/org-table.el (org-table-edit-formulas):
* lisp/org/ox.el (org-export-async-start):
* lisp/play/dunnet.el (dun-score, dun-help, dun-endgame-question)
(dun-rooms, dun-endgame-questions):
* lisp/progmodes/ada-mode.el (ada-goto-matching-start):
* lisp/progmodes/ada-xref.el (ada-find-executable):
* lisp/progmodes/antlr-mode.el (antlr-options-alists):
* lisp/progmodes/flymake.el (flymake-parse-err-lines)
(flymake-start-syntax-check-process):
* lisp/progmodes/python.el (python-define-auxiliary-skeleton):
* lisp/progmodes/sql.el (sql-comint):
* lisp/progmodes/verilog-mode.el (verilog-load-file-at-point):
* lisp/server.el (server-get-auth-key):
* lisp/subr.el (version-to-list):
* lisp/textmodes/reftex-ref.el (reftex-label):
* lisp/textmodes/reftex-toc.el (reftex-toc-rename-label):
* lisp/vc/ediff-diff.el (ediff-same-contents):
* lisp/vc/vc-cvs.el (vc-cvs-mode-line-string):
* test/automated/tramp-tests.el (tramp-test33-asynchronous-requests):
Use directed rather than neutral quotes in diagnostics.
Diffstat (limited to 'lisp/textmodes')
| -rw-r--r-- | lisp/textmodes/bib-mode.el | 4 | ||||
| -rw-r--r-- | lisp/textmodes/flyspell.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/ispell.el | 12 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-ref.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/reftex-toc.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 8 | ||||
| -rw-r--r-- | lisp/textmodes/texinfmt.el | 6 | ||||
| -rw-r--r-- | lisp/textmodes/texinfo.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/texnfo-upd.el | 2 |
9 files changed, 20 insertions, 20 deletions
diff --git a/lisp/textmodes/bib-mode.el b/lisp/textmodes/bib-mode.el index 12b7fc46b4a..2ed5ad89eab 100644 --- a/lisp/textmodes/bib-mode.el +++ b/lisp/textmodes/bib-mode.el | |||
| @@ -82,8 +82,8 @@ A uthor T itle D ate J ournal | |||
| 82 | V olume N umber P age K eywords | 82 | V olume N umber P age K eywords |
| 83 | B in book or proceedings E ditor C ity & state | 83 | B in book or proceedings E ditor C ity & state |
| 84 | I nstitution, school, or publisher | 84 | I nstitution, school, or publisher |
| 85 | R eport number or 'phd thesis' or 'masters thesis' or 'draft' or | 85 | R eport number or `phd thesis' or `masters thesis' or `draft' or |
| 86 | 'unnumbered' or 'unpublished' | 86 | `unnumbered' or `unpublished' |
| 87 | W here can be found locally (login name, or ailib, etc.) | 87 | W here can be found locally (login name, or ailib, etc.) |
| 88 | X comments (not used in indexing) | 88 | X comments (not used in indexing) |
| 89 | 89 | ||
diff --git a/lisp/textmodes/flyspell.el b/lisp/textmodes/flyspell.el index 14f8744077a..6c4a731629c 100644 --- a/lisp/textmodes/flyspell.el +++ b/lisp/textmodes/flyspell.el | |||
| @@ -501,7 +501,7 @@ invoking `ispell-change-dictionary'. | |||
| 501 | 501 | ||
| 502 | Consider using the `ispell-parser' to check your text. For instance | 502 | Consider using the `ispell-parser' to check your text. For instance |
| 503 | consider adding: | 503 | consider adding: |
| 504 | \(add-hook 'tex-mode-hook (function (lambda () (setq ispell-parser 'tex)))) | 504 | \(add-hook \\='tex-mode-hook (function (lambda () (setq ispell-parser \\='tex)))) |
| 505 | in your init file. | 505 | in your init file. |
| 506 | 506 | ||
| 507 | \\[flyspell-region] checks all words inside a region. | 507 | \\[flyspell-region] checks all words inside a region. |
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el index 8627404ddfe..76e147a6f93 100644 --- a/lisp/textmodes/ispell.el +++ b/lisp/textmodes/ispell.el | |||
| @@ -1896,7 +1896,7 @@ Currently the only other valid parser is `tex'. | |||
| 1896 | 1896 | ||
| 1897 | You can set this variable in hooks in your init file -- eg: | 1897 | You can set this variable in hooks in your init file -- eg: |
| 1898 | 1898 | ||
| 1899 | \(add-hook 'tex-mode-hook (lambda () (setq ispell-parser 'tex)))") | 1899 | \(add-hook \\='tex-mode-hook (lambda () (setq ispell-parser \\='tex)))") |
| 1900 | 1900 | ||
| 1901 | (defvar ispell-region-end (make-marker) | 1901 | (defvar ispell-region-end (make-marker) |
| 1902 | "Marker that allows spelling continuations.") | 1902 | "Marker that allows spelling continuations.") |
| @@ -4039,14 +4039,14 @@ The `X' command aborts sending the message so that you can edit the buffer. | |||
| 4039 | 4039 | ||
| 4040 | To spell-check whenever a message is sent, include the appropriate lines | 4040 | To spell-check whenever a message is sent, include the appropriate lines |
| 4041 | in your init file: | 4041 | in your init file: |
| 4042 | (add-hook 'message-send-hook 'ispell-message) ;; GNUS 5 | 4042 | (add-hook \\='message-send-hook \\='ispell-message) ;; GNUS 5 |
| 4043 | (add-hook 'news-inews-hook 'ispell-message) ;; GNUS 4 | 4043 | (add-hook \\='news-inews-hook \\='ispell-message) ;; GNUS 4 |
| 4044 | (add-hook 'mail-send-hook 'ispell-message) | 4044 | (add-hook \\='mail-send-hook \\='ispell-message) |
| 4045 | (add-hook 'mh-before-send-letter-hook 'ispell-message) | 4045 | (add-hook \\='mh-before-send-letter-hook \\='ispell-message) |
| 4046 | 4046 | ||
| 4047 | You can bind this to the key C-c i in GNUS or mail by adding to | 4047 | You can bind this to the key C-c i in GNUS or mail by adding to |
| 4048 | `news-reply-mode-hook' or `mail-mode-hook' the following lambda expression: | 4048 | `news-reply-mode-hook' or `mail-mode-hook' the following lambda expression: |
| 4049 | (function (lambda () (local-set-key \"\\C-ci\" 'ispell-message)))" | 4049 | (function (lambda () (local-set-key \"\\C-ci\" \\='ispell-message)))" |
| 4050 | (interactive) | 4050 | (interactive) |
| 4051 | (save-excursion | 4051 | (save-excursion |
| 4052 | (goto-char (point-min)) | 4052 | (goto-char (point-min)) |
diff --git a/lisp/textmodes/reftex-ref.el b/lisp/textmodes/reftex-ref.el index d0e09bff880..07147230094 100644 --- a/lisp/textmodes/reftex-ref.el +++ b/lisp/textmodes/reftex-ref.el | |||
| @@ -228,7 +228,7 @@ This function is controlled by the settings of reftex-insert-label-flags." | |||
| 228 | (symbol-value reftex-docstruct-symbol))) | 228 | (symbol-value reftex-docstruct-symbol))) |
| 229 | (ding) | 229 | (ding) |
| 230 | (if (y-or-n-p | 230 | (if (y-or-n-p |
| 231 | (format "Label '%s' exists. Use anyway? " label)) | 231 | (format-message "Label ‘%s’ exists. Use anyway? " label)) |
| 232 | (setq valid t))) | 232 | (setq valid t))) |
| 233 | 233 | ||
| 234 | ;; Label is ok | 234 | ;; Label is ok |
diff --git a/lisp/textmodes/reftex-toc.el b/lisp/textmodes/reftex-toc.el index d51fb9b2d4a..b9d4b7c0f2a 100644 --- a/lisp/textmodes/reftex-toc.el +++ b/lisp/textmodes/reftex-toc.el | |||
| @@ -876,7 +876,7 @@ label prefix determines the wording of a reference." | |||
| 876 | (setq newlabel (read-string (format "Rename label \"%s\" to:" label))) | 876 | (setq newlabel (read-string (format "Rename label \"%s\" to:" label))) |
| 877 | (if (assoc newlabel (symbol-value reftex-docstruct-symbol)) | 877 | (if (assoc newlabel (symbol-value reftex-docstruct-symbol)) |
| 878 | (if (not (y-or-n-p | 878 | (if (not (y-or-n-p |
| 879 | (format "Label '%s' exists. Use anyway? " label))) | 879 | (format-message "Label ‘%s’ exists. Use anyway? " label))) |
| 880 | (error "Abort"))) | 880 | (error "Abort"))) |
| 881 | (save-excursion | 881 | (save-excursion |
| 882 | (save-window-excursion | 882 | (save-window-excursion |
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 78cfbeaf895..751c8012bf9 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -1035,7 +1035,7 @@ says which mode to use." | |||
| 1035 | "Major mode for editing files of input for plain TeX. | 1035 | "Major mode for editing files of input for plain TeX. |
| 1036 | Makes $ and } display the characters they match. | 1036 | Makes $ and } display the characters they match. |
| 1037 | Makes \" insert \\=`\\=` when it seems to be the beginning of a quotation, | 1037 | Makes \" insert \\=`\\=` when it seems to be the beginning of a quotation, |
| 1038 | and '' when it appears to be the end; it inserts \" only after a \\. | 1038 | and \\='\\=' when it appears to be the end; it inserts \" only after a \\. |
| 1039 | 1039 | ||
| 1040 | Use \\[tex-region] to run TeX on the current region, plus a \"header\" | 1040 | Use \\[tex-region] to run TeX on the current region, plus a \"header\" |
| 1041 | copied from the top of the file (containing macro definitions, etc.), | 1041 | copied from the top of the file (containing macro definitions, etc.), |
| @@ -1081,7 +1081,7 @@ special subshell is initiated, the hook `tex-shell-hook' is run." | |||
| 1081 | "Major mode for editing files of input for LaTeX. | 1081 | "Major mode for editing files of input for LaTeX. |
| 1082 | Makes $ and } display the characters they match. | 1082 | Makes $ and } display the characters they match. |
| 1083 | Makes \" insert \\=`\\=` when it seems to be the beginning of a quotation, | 1083 | Makes \" insert \\=`\\=` when it seems to be the beginning of a quotation, |
| 1084 | and '' when it appears to be the end; it inserts \" only after a \\. | 1084 | and \\='\\=' when it appears to be the end; it inserts \" only after a \\. |
| 1085 | 1085 | ||
| 1086 | Use \\[tex-region] to run LaTeX on the current region, plus the preamble | 1086 | Use \\[tex-region] to run LaTeX on the current region, plus the preamble |
| 1087 | copied from the top of the file (containing \\documentstyle, etc.), | 1087 | copied from the top of the file (containing \\documentstyle, etc.), |
| @@ -1163,7 +1163,7 @@ subshell is initiated, `tex-shell-hook' is run." | |||
| 1163 | "Major mode for editing files of input for SliTeX. | 1163 | "Major mode for editing files of input for SliTeX. |
| 1164 | Makes $ and } display the characters they match. | 1164 | Makes $ and } display the characters they match. |
| 1165 | Makes \" insert \\=`\\=` when it seems to be the beginning of a quotation, | 1165 | Makes \" insert \\=`\\=` when it seems to be the beginning of a quotation, |
| 1166 | and '' when it appears to be the end; it inserts \" only after a \\. | 1166 | and \\='\\=' when it appears to be the end; it inserts \" only after a \\. |
| 1167 | 1167 | ||
| 1168 | Use \\[tex-region] to run SliTeX on the current region, plus the preamble | 1168 | Use \\[tex-region] to run SliTeX on the current region, plus the preamble |
| 1169 | copied from the top of the file (containing \\documentstyle, etc.), | 1169 | copied from the top of the file (containing \\documentstyle, etc.), |
| @@ -1301,7 +1301,7 @@ Entering SliTeX mode runs the hook `text-mode-hook', then the hook | |||
| 1301 | (defun tex-insert-quote (arg) | 1301 | (defun tex-insert-quote (arg) |
| 1302 | "Insert the appropriate quote marks for TeX. | 1302 | "Insert the appropriate quote marks for TeX. |
| 1303 | Inserts the value of `tex-open-quote' (normally \\=`\\=`) or `tex-close-quote' | 1303 | Inserts the value of `tex-open-quote' (normally \\=`\\=`) or `tex-close-quote' |
| 1304 | \(normally '') depending on the context. With prefix argument, always | 1304 | \(normally \\='\\=') depending on the context. With prefix argument, always |
| 1305 | inserts \" characters." | 1305 | inserts \" characters." |
| 1306 | (interactive "*P") | 1306 | (interactive "*P") |
| 1307 | ;; Discover if we'll be inserting normal double quotes. | 1307 | ;; Discover if we'll be inserting normal double quotes. |
diff --git a/lisp/textmodes/texinfmt.el b/lisp/textmodes/texinfmt.el index 8e4a7e9186d..d08daea0310 100644 --- a/lisp/textmodes/texinfmt.el +++ b/lisp/textmodes/texinfmt.el | |||
| @@ -1287,7 +1287,7 @@ Leave point after argument." | |||
| 1287 | (put 'uref 'texinfo-format 'texinfo-format-uref) | 1287 | (put 'uref 'texinfo-format 'texinfo-format-uref) |
| 1288 | (defun texinfo-format-uref () | 1288 | (defun texinfo-format-uref () |
| 1289 | "Format URL and optional URL-TITLE. | 1289 | "Format URL and optional URL-TITLE. |
| 1290 | Insert \\=` ... ' around URL if no URL-TITLE argument; | 1290 | Insert \\=` ... \\=' around URL if no URL-TITLE argument; |
| 1291 | otherwise, insert URL-TITLE followed by URL in parentheses." | 1291 | otherwise, insert URL-TITLE followed by URL in parentheses." |
| 1292 | (let ((args (texinfo-format-parse-args))) | 1292 | (let ((args (texinfo-format-parse-args))) |
| 1293 | (texinfo-discard-command) | 1293 | (texinfo-discard-command) |
| @@ -2447,7 +2447,7 @@ Use only the FILENAME arg; for Info, ignore the other arguments to @image." | |||
| 2447 | ;; not lead to inserted ` ... ' in a table, but does elsewhere. | 2447 | ;; not lead to inserted ` ... ' in a table, but does elsewhere. |
| 2448 | (put 'option 'texinfo-format 'texinfo-format-option) | 2448 | (put 'option 'texinfo-format 'texinfo-format-option) |
| 2449 | (defun texinfo-format-option () | 2449 | (defun texinfo-format-option () |
| 2450 | "Insert \\=` ... ' around arg unless inside a table; in that case, no quotes." | 2450 | "Insert \\=` ... \\=' around arg unless inside a table; in that case, no quotes." |
| 2451 | ;; `looking-at-backward' not available in v. 18.57, 20.2 | 2451 | ;; `looking-at-backward' not available in v. 18.57, 20.2 |
| 2452 | (if (not (search-backward "" ; searched-for character is a control-H | 2452 | (if (not (search-backward "" ; searched-for character is a control-H |
| 2453 | (line-beginning-position) | 2453 | (line-beginning-position) |
| @@ -2494,7 +2494,7 @@ Enclose the verbatim text, including the delimiters, in braces. Print | |||
| 2494 | text exactly as written (but not the delimiters) in a fixed-width. | 2494 | text exactly as written (but not the delimiters) in a fixed-width. |
| 2495 | 2495 | ||
| 2496 | For example, @verb\{|@|\} results in @ and | 2496 | For example, @verb\{|@|\} results in @ and |
| 2497 | @verb\{+@'e?\\=`!\\=`+} results in @'e?\\=`!\\=`." | 2497 | @verb\{+@\\='e?\\=`!\\=`+} results in @\\='e?\\=`!\\=`." |
| 2498 | 2498 | ||
| 2499 | (let ((delimiter (buffer-substring-no-properties | 2499 | (let ((delimiter (buffer-substring-no-properties |
| 2500 | (1+ texinfo-command-end) (+ 2 texinfo-command-end)))) | 2500 | (1+ texinfo-command-end) (+ 2 texinfo-command-end)))) |
diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el index 6b28249c427..2c6d5b3827c 100644 --- a/lisp/textmodes/texinfo.el +++ b/lisp/textmodes/texinfo.el | |||
| @@ -690,7 +690,7 @@ Puts point on a blank line between them." | |||
| 690 | (defun texinfo-insert-quote (&optional arg) | 690 | (defun texinfo-insert-quote (&optional arg) |
| 691 | "Insert the appropriate quote mark for Texinfo. | 691 | "Insert the appropriate quote mark for Texinfo. |
| 692 | Usually inserts the value of `texinfo-open-quote' (normally \\=`\\=`) or | 692 | Usually inserts the value of `texinfo-open-quote' (normally \\=`\\=`) or |
| 693 | `texinfo-close-quote' (normally ''), depending on the context. | 693 | `texinfo-close-quote' (normally \\='\\='), depending on the context. |
| 694 | With prefix argument or inside @code or @example, inserts a plain \"." | 694 | With prefix argument or inside @code or @example, inserts a plain \"." |
| 695 | (interactive "*P") | 695 | (interactive "*P") |
| 696 | (let ((top (or (save-excursion (re-search-backward "@node\\>" nil t)) | 696 | (let ((top (or (save-excursion (re-search-backward "@node\\>" nil t)) |
diff --git a/lisp/textmodes/texnfo-upd.el b/lisp/textmodes/texnfo-upd.el index eefea1f8493..0ce70644b03 100644 --- a/lisp/textmodes/texnfo-upd.el +++ b/lisp/textmodes/texnfo-upd.el | |||
| @@ -1407,7 +1407,7 @@ level in the Texinfo file; when looking for the `Previous' pointer, | |||
| 1407 | the section found will be at the same or higher hierarchical level in | 1407 | the section found will be at the same or higher hierarchical level in |
| 1408 | the Texinfo file; when looking for the `Up' pointer, the section found | 1408 | the Texinfo file; when looking for the `Up' pointer, the section found |
| 1409 | will be at some level higher in the Texinfo file. The fourth argument | 1409 | will be at some level higher in the Texinfo file. The fourth argument |
| 1410 | \(one of 'next, 'previous, or 'up\) specifies whether to find the | 1410 | \(one of `next’, `previous’, or `up'\) specifies whether to find the |
| 1411 | `Next', `Previous', or `Up' pointer." | 1411 | `Next', `Previous', or `Up' pointer." |
| 1412 | (let ((case-fold-search t)) | 1412 | (let ((case-fold-search t)) |
| 1413 | (cond ((eq direction 'next) | 1413 | (cond ((eq direction 'next) |