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/eshell | |
| 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/eshell')
| -rw-r--r-- | lisp/eshell/em-dirs.el | 16 | ||||
| -rw-r--r-- | lisp/eshell/em-glob.el | 4 | ||||
| -rw-r--r-- | lisp/eshell/em-pred.el | 12 | ||||
| -rw-r--r-- | lisp/eshell/em-script.el | 4 | ||||
| -rw-r--r-- | lisp/eshell/em-term.el | 2 | ||||
| -rw-r--r-- | lisp/eshell/em-unix.el | 10 | ||||
| -rw-r--r-- | lisp/eshell/esh-arg.el | 6 | ||||
| -rw-r--r-- | lisp/eshell/esh-cmd.el | 16 | ||||
| -rw-r--r-- | lisp/eshell/esh-ext.el | 2 | ||||
| -rw-r--r-- | lisp/eshell/esh-io.el | 2 | ||||
| -rw-r--r-- | lisp/eshell/esh-opt.el | 4 | ||||
| -rw-r--r-- | lisp/eshell/esh-var.el | 10 |
12 files changed, 44 insertions, 44 deletions
diff --git a/lisp/eshell/em-dirs.el b/lisp/eshell/em-dirs.el index 8a3b5817d5f..ac1616d504f 100644 --- a/lisp/eshell/em-dirs.el +++ b/lisp/eshell/em-dirs.el | |||
| @@ -71,7 +71,7 @@ they lack somewhat in feel from the typical shell equivalents." | |||
| 71 | "The function used to normalize the value of Eshell's `pwd'. | 71 | "The function used to normalize the value of Eshell's `pwd'. |
| 72 | The value returned by `pwd' is also used when recording the | 72 | The value returned by `pwd' is also used when recording the |
| 73 | last-visited directory in the last-dir-ring, so it will affect the | 73 | last-visited directory in the last-dir-ring, so it will affect the |
| 74 | form of the list used by 'cd ='." | 74 | form of the list used by `cd ='." |
| 75 | :type '(radio (function-item file-truename) | 75 | :type '(radio (function-item file-truename) |
| 76 | (function-item expand-file-name) | 76 | (function-item expand-file-name) |
| 77 | (function-item identity) | 77 | (function-item identity) |
| @@ -115,7 +115,7 @@ calls \"ls\" and references `eshell-last-arguments'." | |||
| 115 | :group 'eshell-dirs) | 115 | :group 'eshell-dirs) |
| 116 | 116 | ||
| 117 | (defcustom eshell-pushd-tohome nil | 117 | (defcustom eshell-pushd-tohome nil |
| 118 | "If non-nil, make pushd with no arg behave as 'pushd ~' (like `cd'). | 118 | "If non-nil, make pushd with no arg behave as `pushd ~' (like `cd'). |
| 119 | This mirrors the optional behavior of tcsh." | 119 | This mirrors the optional behavior of tcsh." |
| 120 | :type 'boolean | 120 | :type 'boolean |
| 121 | :group 'eshell-dirs) | 121 | :group 'eshell-dirs) |
| @@ -150,11 +150,11 @@ If it is nil, the last-dir-ring will not be written to disk." | |||
| 150 | "If non-nil, the size of the directory history ring. | 150 | "If non-nil, the size of the directory history ring. |
| 151 | This ring is added to every time `cd' or `pushd' is used. It simply | 151 | This ring is added to every time `cd' or `pushd' is used. It simply |
| 152 | stores the most recent directory locations Eshell has been in. To | 152 | stores the most recent directory locations Eshell has been in. To |
| 153 | return to the most recent entry, use 'cd -' (equivalent to 'cd -0'). | 153 | return to the most recent entry, use `cd -' (equivalent to `cd -0'). |
| 154 | To return to an older entry, use 'cd -N', where N is an integer less | 154 | To return to an older entry, use `cd -N', where N is an integer less |
| 155 | than `eshell-last-dir-ring-size'. To return to the last directory | 155 | than `eshell-last-dir-ring-size'. To return to the last directory |
| 156 | matching a particular regexp, use 'cd =REGEXP'. To display the | 156 | matching a particular regexp, use `cd =REGEXP'. To display the |
| 157 | directory history list, use 'cd ='. | 157 | directory history list, use `cd ='. |
| 158 | 158 | ||
| 159 | This mechanism is very similar to that provided by `pushd', except | 159 | This mechanism is very similar to that provided by `pushd', except |
| 160 | it's far more automatic. `pushd' allows the user to decide which | 160 | it's far more automatic. `pushd' allows the user to decide which |
| @@ -313,7 +313,7 @@ Thus, this does not include the current directory.") | |||
| 313 | path))) | 313 | path))) |
| 314 | 314 | ||
| 315 | (defun eshell-expand-multiple-dots (path) | 315 | (defun eshell-expand-multiple-dots (path) |
| 316 | "Convert '...' to '../..', '....' to '../../..', etc.. | 316 | "Convert `...' to `../..', `....' to `../../..', etc.. |
| 317 | 317 | ||
| 318 | With the following piece of advice, you can make this functionality | 318 | With the following piece of advice, you can make this functionality |
| 319 | available in most of Emacs, with the exception of filename completion | 319 | available in most of Emacs, with the exception of filename completion |
| @@ -364,7 +364,7 @@ in the minibuffer: | |||
| 364 | (let ((curdir (eshell/pwd))) | 364 | (let ((curdir (eshell/pwd))) |
| 365 | (if (string-match path curdir) | 365 | (if (string-match path curdir) |
| 366 | (setq path (replace-match subpath nil nil curdir)) | 366 | (setq path (replace-match subpath nil nil curdir)) |
| 367 | (error "Path substring '%s' not found" path)))) | 367 | (error "Path substring ‘%s’ not found" path)))) |
| 368 | ((and path (string-match "^-\\([0-9]*\\)$" path)) | 368 | ((and path (string-match "^-\\([0-9]*\\)$" path)) |
| 369 | (let ((index (match-string 1 path))) | 369 | (let ((index (match-string 1 path))) |
| 370 | (setq path | 370 | (setq path |
diff --git a/lisp/eshell/em-glob.el b/lisp/eshell/em-glob.el index c7ebbf8c140..8abdd0058fb 100644 --- a/lisp/eshell/em-glob.el +++ b/lisp/eshell/em-glob.el | |||
| @@ -193,7 +193,7 @@ The basic syntax is: | |||
| 193 | * .* matches any group of characters (or none) | 193 | * .* matches any group of characters (or none) |
| 194 | # * matches zero or more occurrences of preceding | 194 | # * matches zero or more occurrences of preceding |
| 195 | ## + matches one or more occurrences of preceding | 195 | ## + matches one or more occurrences of preceding |
| 196 | (x) \(x\) makes 'x' a regular expression group | 196 | (x) \(x\) makes ‘x’ a regular expression group |
| 197 | | \| boolean OR within an expression group | 197 | | \| boolean OR within an expression group |
| 198 | [a-b] [a-b] matches a character or range | 198 | [a-b] [a-b] matches a character or range |
| 199 | [^a] [^a] excludes a character or range | 199 | [^a] [^a] excludes a character or range |
| @@ -220,7 +220,7 @@ resulting regular expression." | |||
| 220 | matched-in-pattern (1+ op-begin)) | 220 | matched-in-pattern (1+ op-begin)) |
| 221 | (let ((xlat (assq op-char eshell-glob-translate-alist))) | 221 | (let ((xlat (assq op-char eshell-glob-translate-alist))) |
| 222 | (if (not xlat) | 222 | (if (not xlat) |
| 223 | (error "Unrecognized globbing character '%c'" op-char) | 223 | (error "Unrecognized globbing character ‘%c’" op-char) |
| 224 | (if (stringp (cdr xlat)) | 224 | (if (stringp (cdr xlat)) |
| 225 | (setq regexp (concat regexp (cdr xlat)) | 225 | (setq regexp (concat regexp (cdr xlat)) |
| 226 | matched-in-pattern (1+ op-begin)) | 226 | matched-in-pattern (1+ op-begin)) |
diff --git a/lisp/eshell/em-pred.el b/lisp/eshell/em-pred.el index 289d37dd580..539080f35c4 100644 --- a/lisp/eshell/em-pred.el +++ b/lisp/eshell/em-pred.el | |||
| @@ -193,7 +193,7 @@ EXAMPLES: | |||
| 193 | ***/*~f*(-/) recursively (though not traversing symlinks), | 193 | ***/*~f*(-/) recursively (though not traversing symlinks), |
| 194 | find all directories (or symlinks referring to | 194 | find all directories (or symlinks referring to |
| 195 | directories) whose names do not begin with f. | 195 | directories) whose names do not begin with f. |
| 196 | e*(*Lk+50) executables 50k or larger beginning with 'e'") | 196 | e*(*Lk+50) executables 50k or larger beginning with ‘e’") |
| 197 | 197 | ||
| 198 | (defvar eshell-modifier-help-string | 198 | (defvar eshell-modifier-help-string |
| 199 | "Eshell modifier quick reference: | 199 | "Eshell modifier quick reference: |
| @@ -318,7 +318,7 @@ resultant list of strings." | |||
| 318 | (if (and func (functionp func)) | 318 | (if (and func (functionp func)) |
| 319 | (setq preds (eshell-add-pred-func func preds | 319 | (setq preds (eshell-add-pred-func func preds |
| 320 | negate follow)) | 320 | negate follow)) |
| 321 | (error "Invalid function predicate '%s'" | 321 | (error "Invalid function predicate ‘%s’" |
| 322 | (eshell-stringify func)))) | 322 | (eshell-stringify func)))) |
| 323 | (error "Invalid function predicate"))) | 323 | (error "Invalid function predicate"))) |
| 324 | ((eq char ?^) | 324 | ((eq char ?^) |
| @@ -336,20 +336,20 @@ resultant list of strings." | |||
| 336 | (cons `(lambda (lst) | 336 | (cons `(lambda (lst) |
| 337 | (mapcar (function ,func) lst)) | 337 | (mapcar (function ,func) lst)) |
| 338 | mods)) | 338 | mods)) |
| 339 | (error "Invalid function modifier '%s'" | 339 | (error "Invalid function modifier ‘%s’" |
| 340 | (eshell-stringify func)))) | 340 | (eshell-stringify func)))) |
| 341 | (error "Invalid function modifier"))) | 341 | (error "Invalid function modifier"))) |
| 342 | ((eq char ?:) | 342 | ((eq char ?:) |
| 343 | (forward-char) | 343 | (forward-char) |
| 344 | (let ((mod (assq (char-after) eshell-modifier-alist))) | 344 | (let ((mod (assq (char-after) eshell-modifier-alist))) |
| 345 | (if (not mod) | 345 | (if (not mod) |
| 346 | (error "Unknown modifier character '%c'" (char-after)) | 346 | (error "Unknown modifier character ‘%c’" (char-after)) |
| 347 | (forward-char) | 347 | (forward-char) |
| 348 | (setq mods (cons (eval (cdr mod)) mods))))) | 348 | (setq mods (cons (eval (cdr mod)) mods))))) |
| 349 | (t | 349 | (t |
| 350 | (let ((pred (assq char eshell-predicate-alist))) | 350 | (let ((pred (assq char eshell-predicate-alist))) |
| 351 | (if (not pred) | 351 | (if (not pred) |
| 352 | (error "Unknown predicate character '%c'" char) | 352 | (error "Unknown predicate character ‘%c’" char) |
| 353 | (forward-char) | 353 | (forward-char) |
| 354 | (setq preds | 354 | (setq preds |
| 355 | (eshell-add-pred-func (eval (cdr pred)) preds | 355 | (eshell-add-pred-func (eval (cdr pred)) preds |
| @@ -451,7 +451,7 @@ resultant list of strings." | |||
| 451 | (defun eshell-pred-file-type (type) | 451 | (defun eshell-pred-file-type (type) |
| 452 | "Return a test which tests that the file is of a certain TYPE. | 452 | "Return a test which tests that the file is of a certain TYPE. |
| 453 | TYPE must be a character, and should be one of the possible options | 453 | TYPE must be a character, and should be one of the possible options |
| 454 | that 'ls -l' will show in the first column of its display. " | 454 | that `ls -l' will show in the first column of its display. " |
| 455 | (when (eq type ?%) | 455 | (when (eq type ?%) |
| 456 | (setq type (char-after)) | 456 | (setq type (char-after)) |
| 457 | (if (memq type '(?b ?c)) | 457 | (if (memq type '(?b ?c)) |
diff --git a/lisp/eshell/em-script.el b/lisp/eshell/em-script.el index 04f3a9828e2..8e65e440417 100644 --- a/lisp/eshell/em-script.el +++ b/lisp/eshell/em-script.el | |||
| @@ -45,7 +45,7 @@ commands, as a script file." | |||
| 45 | (defcustom eshell-login-script (expand-file-name "login" eshell-directory-name) | 45 | (defcustom eshell-login-script (expand-file-name "login" eshell-directory-name) |
| 46 | "If non-nil, a file to invoke when starting up Eshell interactively. | 46 | "If non-nil, a file to invoke when starting up Eshell interactively. |
| 47 | This file should be a file containing Eshell commands, where comment | 47 | This file should be a file containing Eshell commands, where comment |
| 48 | lines begin with '#'." | 48 | lines begin with ‘#’." |
| 49 | :type 'file | 49 | :type 'file |
| 50 | :group 'eshell-script) | 50 | :group 'eshell-script) |
| 51 | 51 | ||
| @@ -89,7 +89,7 @@ This includes when running `eshell-command'." | |||
| 89 | 89 | ||
| 90 | (defun eshell-source-file (file &optional args subcommand-p) | 90 | (defun eshell-source-file (file &optional args subcommand-p) |
| 91 | "Execute a series of Eshell commands in FILE, passing ARGS. | 91 | "Execute a series of Eshell commands in FILE, passing ARGS. |
| 92 | Comments begin with '#'." | 92 | Comments begin with ‘#’." |
| 93 | (interactive "f") | 93 | (interactive "f") |
| 94 | (let ((orig (point)) | 94 | (let ((orig (point)) |
| 95 | (here (point-max)) | 95 | (here (point-max)) |
diff --git a/lisp/eshell/em-term.el b/lisp/eshell/em-term.el index 9ac281372cf..a8fa9733b42 100644 --- a/lisp/eshell/em-term.el +++ b/lisp/eshell/em-term.el | |||
| @@ -40,7 +40,7 @@ | |||
| 40 | ;;;###autoload | 40 | ;;;###autoload |
| 41 | (progn | 41 | (progn |
| 42 | (defgroup eshell-term nil | 42 | (defgroup eshell-term nil |
| 43 | "This module causes visual commands (e.g., 'vi') to be executed by | 43 | "This module causes visual commands (e.g., `vi') to be executed by |
| 44 | the `term' package, which comes with Emacs. This package handles most | 44 | the `term' package, which comes with Emacs. This package handles most |
| 45 | of the ANSI control codes, allowing curses-based applications to run | 45 | of the ANSI control codes, allowing curses-based applications to run |
| 46 | within an Emacs window. The variable `eshell-visual-commands' defines | 46 | within an Emacs window. The variable `eshell-visual-commands' defines |
diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el index c50a874629b..210e74dc1b7 100644 --- a/lisp/eshell/em-unix.el +++ b/lisp/eshell/em-unix.el | |||
| @@ -168,10 +168,10 @@ Otherwise, Emacs will attempt to use rsh to invoke du on the remote machine." | |||
| 168 | 168 | ||
| 169 | (defun eshell/info (&rest args) | 169 | (defun eshell/info (&rest args) |
| 170 | "Run the info command in-frame with the same behavior as command-line `info', ie: | 170 | "Run the info command in-frame with the same behavior as command-line `info', ie: |
| 171 | 'info' => goes to top info window | 171 | `info' => goes to top info window |
| 172 | 'info arg1' => IF arg1 is a file, then visits arg1 | 172 | `info arg1' => IF arg1 is a file, then visits arg1 |
| 173 | 'info arg1' => OTHERWISE goes to top info window and then menu item arg1 | 173 | `info arg1' => OTHERWISE goes to top info window and then menu item arg1 |
| 174 | 'info arg1 arg2' => does action for arg1 (either visit-file or menu-item) and then menu item arg2 | 174 | `info arg1 arg2' => does action for arg1 (either visit-file or menu-item) and then menu item arg2 |
| 175 | etc." | 175 | etc." |
| 176 | (eval-and-compile (require 'info)) | 176 | (eval-and-compile (require 'info)) |
| 177 | (let ((file (cond | 177 | (let ((file (cond |
| @@ -579,7 +579,7 @@ Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY.") | |||
| 579 | Create a link to the specified TARGET with optional LINK_NAME. If there is | 579 | Create a link to the specified TARGET with optional LINK_NAME. If there is |
| 580 | more than one TARGET, the last argument must be a directory; create links | 580 | more than one TARGET, the last argument must be a directory; create links |
| 581 | in DIRECTORY to each TARGET. Create hard links by default, symbolic links | 581 | in DIRECTORY to each TARGET. Create hard links by default, symbolic links |
| 582 | with '--symbolic'. When creating hard links, each TARGET must exist.") | 582 | with `--symbolic'. When creating hard links, each TARGET must exist.") |
| 583 | (let ((no-dereference t)) | 583 | (let ((no-dereference t)) |
| 584 | (eshell-mvcpln-template "ln" "linking" | 584 | (eshell-mvcpln-template "ln" "linking" |
| 585 | (if symbolic | 585 | (if symbolic |
diff --git a/lisp/eshell/esh-arg.el b/lisp/eshell/esh-arg.el index 49ba72735da..93d795b1351 100644 --- a/lisp/eshell/esh-arg.el +++ b/lisp/eshell/esh-arg.el | |||
| @@ -237,7 +237,7 @@ Point is left at the end of the arguments." | |||
| 237 | (let* ((here (point)) | 237 | (let* ((here (point)) |
| 238 | (arg (eshell-parse-argument))) | 238 | (arg (eshell-parse-argument))) |
| 239 | (if (= (point) here) | 239 | (if (= (point) here) |
| 240 | (error "Failed to parse argument '%s'" | 240 | (error "Failed to parse argument `%s'" |
| 241 | (buffer-substring here (point-max)))) | 241 | (buffer-substring here (point-max)))) |
| 242 | (and arg (nconc args (list arg))))))) | 242 | (and arg (nconc args (list arg))))))) |
| 243 | (throw 'eshell-incomplete (if (listp delim) | 243 | (throw 'eshell-incomplete (if (listp delim) |
| @@ -357,13 +357,13 @@ after are both returned." | |||
| 357 | (goto-char (1+ end))))))) | 357 | (goto-char (1+ end))))))) |
| 358 | 358 | ||
| 359 | (defun eshell-parse-special-reference () | 359 | (defun eshell-parse-special-reference () |
| 360 | "Parse a special syntax reference, of the form '#<args>'. | 360 | "Parse a special syntax reference, of the form `#<args>'. |
| 361 | 361 | ||
| 362 | args := `type' `whitespace' `arbitrary-args' | `arbitrary-args' | 362 | args := `type' `whitespace' `arbitrary-args' | `arbitrary-args' |
| 363 | type := \"buffer\" or \"process\" | 363 | type := \"buffer\" or \"process\" |
| 364 | arbitrary-args := any string of characters. | 364 | arbitrary-args := any string of characters. |
| 365 | 365 | ||
| 366 | If the form has no 'type', the syntax is parsed as if 'type' were | 366 | If the form has no `type', the syntax is parsed as if `type' were |
| 367 | \"buffer\"." | 367 | \"buffer\"." |
| 368 | (when (and (not eshell-current-argument) | 368 | (when (and (not eshell-current-argument) |
| 369 | (not eshell-current-quoted) | 369 | (not eshell-current-quoted) |
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el index d0c8cc422aa..efd85826f27 100644 --- a/lisp/eshell/esh-cmd.el +++ b/lisp/eshell/esh-cmd.el | |||
| @@ -165,13 +165,13 @@ In order to substitute an alternate command form for execution, the | |||
| 165 | hook function should throw it using the tag `eshell-replace-command'. | 165 | hook function should throw it using the tag `eshell-replace-command'. |
| 166 | For example: | 166 | For example: |
| 167 | 167 | ||
| 168 | (add-hook 'eshell-named-command-hook 'subst-with-cd) | 168 | (add-hook \\='eshell-named-command-hook \\='subst-with-cd) |
| 169 | (defun subst-with-cd (command args) | 169 | (defun subst-with-cd (command args) |
| 170 | (throw 'eshell-replace-command | 170 | (throw \\='eshell-replace-command |
| 171 | (eshell-parse-command \"cd\" args))) | 171 | (eshell-parse-command \"cd\" args))) |
| 172 | 172 | ||
| 173 | Although useless, the above code will cause any non-glob, non-Lisp | 173 | Although useless, the above code will cause any non-glob, non-Lisp |
| 174 | command (i.e., 'ls' as opposed to '*ls' or '(ls)') to be replaced by a | 174 | command (i.e., `ls' as opposed to `*ls' or `(ls)') to be replaced by a |
| 175 | call to `cd' using the arguments that were passed to the function." | 175 | call to `cd' using the arguments that were passed to the function." |
| 176 | :type 'hook | 176 | :type 'hook |
| 177 | :group 'eshell-cmd) | 177 | :group 'eshell-cmd) |
| @@ -243,7 +243,7 @@ return non-nil if the command is complex." | |||
| 243 | "If non-nil, enable Eshell debugging code. | 243 | "If non-nil, enable Eshell debugging code. |
| 244 | This is slow, and only useful for debugging problems with Eshell. | 244 | This is slow, and only useful for debugging problems with Eshell. |
| 245 | If you change this without using customize after Eshell has loaded, | 245 | If you change this without using customize after Eshell has loaded, |
| 246 | you must re-load 'esh-cmd.el'." | 246 | you must re-load `esh-cmd.el'." |
| 247 | :initialize 'custom-initialize-default | 247 | :initialize 'custom-initialize-default |
| 248 | :set (lambda (symbol value) | 248 | :set (lambda (symbol value) |
| 249 | (set symbol value) | 249 | (set symbol value) |
| @@ -390,7 +390,7 @@ hooks should be run before and after the command." | |||
| 390 | (macroexp-progn commands)))) | 390 | (macroexp-progn commands)))) |
| 391 | 391 | ||
| 392 | (defun eshell-debug-command (tag subform) | 392 | (defun eshell-debug-command (tag subform) |
| 393 | "Output a debugging message to '*eshell last cmd*'." | 393 | "Output a debugging message to `*eshell last cmd*'." |
| 394 | (let ((buf (get-buffer-create "*eshell last cmd*")) | 394 | (let ((buf (get-buffer-create "*eshell last cmd*")) |
| 395 | (text (eshell-stringify eshell-current-command))) | 395 | (text (eshell-stringify eshell-current-command))) |
| 396 | (with-current-buffer buf | 396 | (with-current-buffer buf |
| @@ -424,14 +424,14 @@ hooks should be run before and after the command." | |||
| 424 | (setq terms (cdr terms)))) | 424 | (setq terms (cdr terms)))) |
| 425 | 425 | ||
| 426 | (defun eshell-rewrite-sexp-command (terms) | 426 | (defun eshell-rewrite-sexp-command (terms) |
| 427 | "Rewrite a sexp in initial position, such as '(+ 1 2)'." | 427 | "Rewrite a sexp in initial position, such as `(+ 1 2)'." |
| 428 | ;; this occurs when a Lisp expression is in first position | 428 | ;; this occurs when a Lisp expression is in first position |
| 429 | (if (and (listp (car terms)) | 429 | (if (and (listp (car terms)) |
| 430 | (eq (caar terms) 'eshell-command-to-value)) | 430 | (eq (caar terms) 'eshell-command-to-value)) |
| 431 | (car (cdar terms)))) | 431 | (car (cdar terms)))) |
| 432 | 432 | ||
| 433 | (defun eshell-rewrite-initial-subcommand (terms) | 433 | (defun eshell-rewrite-initial-subcommand (terms) |
| 434 | "Rewrite a subcommand in initial position, such as '{+ 1 2}'." | 434 | "Rewrite a subcommand in initial position, such as `{+ 1 2}'." |
| 435 | (if (and (listp (car terms)) | 435 | (if (and (listp (car terms)) |
| 436 | (eq (caar terms) 'eshell-as-subcommand)) | 436 | (eq (caar terms) 'eshell-as-subcommand)) |
| 437 | (car terms))) | 437 | (car terms))) |
| @@ -634,7 +634,7 @@ For an external command, it means an exit code of 0." | |||
| 634 | final)) | 634 | final)) |
| 635 | 635 | ||
| 636 | (defun eshell-parse-subcommand-argument () | 636 | (defun eshell-parse-subcommand-argument () |
| 637 | "Parse a subcommand argument of the form '{command}'." | 637 | "Parse a subcommand argument of the form `{command}'." |
| 638 | (if (and (not eshell-current-argument) | 638 | (if (and (not eshell-current-argument) |
| 639 | (not eshell-current-quoted) | 639 | (not eshell-current-quoted) |
| 640 | (eq (char-after) ?\{) | 640 | (eq (char-after) ?\{) |
diff --git a/lisp/eshell/esh-ext.el b/lisp/eshell/esh-ext.el index 91c4f4b6095..81ffaa713da 100644 --- a/lisp/eshell/esh-ext.el +++ b/lisp/eshell/esh-ext.el | |||
| @@ -66,7 +66,7 @@ loaded into memory, thus beginning a new process." | |||
| 66 | This can be useful on systems like Windows, where the operating system | 66 | This can be useful on systems like Windows, where the operating system |
| 67 | doesn't support the execution bit for shell scripts; or in cases where | 67 | doesn't support the execution bit for shell scripts; or in cases where |
| 68 | you want to associate an interpreter with a particular kind of script | 68 | you want to associate an interpreter with a particular kind of script |
| 69 | file, but the language won't let you but a '#!' interpreter line in | 69 | file, but the language won't let you but a `#!' interpreter line in |
| 70 | the file, and you don't want to make it executable since nothing else | 70 | the file, and you don't want to make it executable since nothing else |
| 71 | but Eshell will be able to understand | 71 | but Eshell will be able to understand |
| 72 | `eshell-interpreter-alist'." | 72 | `eshell-interpreter-alist'." |
diff --git a/lisp/eshell/esh-io.el b/lisp/eshell/esh-io.el index dc731bc928a..749c481da3e 100644 --- a/lisp/eshell/esh-io.el +++ b/lisp/eshell/esh-io.el | |||
| @@ -182,7 +182,7 @@ not be added to this variable." | |||
| 182 | #'eshell--apply-redirections)) | 182 | #'eshell--apply-redirections)) |
| 183 | 183 | ||
| 184 | (defun eshell-parse-redirection () | 184 | (defun eshell-parse-redirection () |
| 185 | "Parse an output redirection, such as '2>'." | 185 | "Parse an output redirection, such as `2>'." |
| 186 | (if (and (not eshell-current-quoted) | 186 | (if (and (not eshell-current-quoted) |
| 187 | (looking-at "\\([0-9]\\)?\\(<\\|>+\\)&?\\([0-9]\\)?\\s-*")) | 187 | (looking-at "\\([0-9]\\)?\\(<\\|>+\\)&?\\([0-9]\\)?\\s-*")) |
| 188 | (if eshell-current-argument | 188 | (if eshell-current-argument |
diff --git a/lisp/eshell/esh-opt.el b/lisp/eshell/esh-opt.el index 5b4cdb08830..2e929b05f49 100644 --- a/lisp/eshell/esh-opt.el +++ b/lisp/eshell/esh-opt.el | |||
| @@ -178,9 +178,9 @@ This code doesn't really need to be macro expanded everywhere." | |||
| 178 | (if extcmd | 178 | (if extcmd |
| 179 | (setq usage | 179 | (setq usage |
| 180 | (concat usage | 180 | (concat usage |
| 181 | (format " | 181 | (format-message " |
| 182 | This command is implemented in Lisp. If an unrecognized option is | 182 | This command is implemented in Lisp. If an unrecognized option is |
| 183 | passed to this command, the external version '%s' | 183 | passed to this command, the external version ‘%s’ |
| 184 | will be called instead." extcmd))))) | 184 | will be called instead." extcmd))))) |
| 185 | (throw 'eshell-usage usage))) | 185 | (throw 'eshell-usage usage))) |
| 186 | 186 | ||
diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el index 197a8e77cc7..f5110c38475 100644 --- a/lisp/eshell/esh-var.el +++ b/lisp/eshell/esh-var.el | |||
| @@ -116,7 +116,7 @@ | |||
| 116 | (require 'ring) | 116 | (require 'ring) |
| 117 | 117 | ||
| 118 | (defgroup eshell-var nil | 118 | (defgroup eshell-var nil |
| 119 | "Variable interpolation is introduced whenever the '$' character | 119 | "Variable interpolation is introduced whenever the ‘$’ character |
| 120 | appears unquoted in any argument (except when that argument is | 120 | appears unquoted in any argument (except when that argument is |
| 121 | surrounded by single quotes). It may be used to interpolate a | 121 | surrounded by single quotes). It may be used to interpolate a |
| 122 | variable value, a subcommand, or even the result of a Lisp form." | 122 | variable value, a subcommand, or even the result of a Lisp form." |
| @@ -148,7 +148,7 @@ variable value, a subcommand, or even the result of a Lisp form." | |||
| 148 | 148 | ||
| 149 | (defcustom eshell-variable-name-regexp "[A-Za-z0-9_-]+" | 149 | (defcustom eshell-variable-name-regexp "[A-Za-z0-9_-]+" |
| 150 | "A regexp identifying what constitutes a variable name reference. | 150 | "A regexp identifying what constitutes a variable name reference. |
| 151 | Note that this only applies for '$NAME'. If the syntax '$<NAME>' is | 151 | Note that this only applies for `$NAME'. If the syntax `$<NAME>' is |
| 152 | used, then NAME can contain any character, including angle brackets, | 152 | used, then NAME can contain any character, including angle brackets, |
| 153 | if they are quoted with a backslash." | 153 | if they are quoted with a backslash." |
| 154 | :type 'regexp | 154 | :type 'regexp |
| @@ -186,12 +186,12 @@ if they are quoted with a backslash." | |||
| 186 | It is very similar in concept to what `eshell-user-aliases-list' does | 186 | It is very similar in concept to what `eshell-user-aliases-list' does |
| 187 | for commands. Each member of this defines the name of a command, | 187 | for commands. Each member of this defines the name of a command, |
| 188 | and the Lisp value to return for that variable if it is accessed | 188 | and the Lisp value to return for that variable if it is accessed |
| 189 | via the syntax '$NAME'. | 189 | via the syntax `$NAME'. |
| 190 | 190 | ||
| 191 | If the value is a function, that function will be called with two | 191 | If the value is a function, that function will be called with two |
| 192 | arguments: the list of the indices that was used in the reference, and | 192 | arguments: the list of the indices that was used in the reference, and |
| 193 | whether the user is requesting the length of the ultimate element. | 193 | whether the user is requesting the length of the ultimate element. |
| 194 | For example, a reference of '$NAME[10][20]' would result in the | 194 | For example, a reference of `$NAME[10][20]' would result in the |
| 195 | function for alias `NAME' being called (assuming it were aliased to a | 195 | function for alias `NAME' being called (assuming it were aliased to a |
| 196 | function), and the arguments passed to this function would be the list | 196 | function), and the arguments passed to this function would be the list |
| 197 | '(10 20)', and nil." | 197 | '(10 20)', and nil." |
| @@ -231,7 +231,7 @@ function), and the arguments passed to this function would be the list | |||
| 231 | 'eshell-complete-variable-assignment nil t))) | 231 | 'eshell-complete-variable-assignment nil t))) |
| 232 | 232 | ||
| 233 | (defun eshell-handle-local-variables () | 233 | (defun eshell-handle-local-variables () |
| 234 | "Allow for the syntax 'VAR=val <command> <args>'." | 234 | "Allow for the syntax `VAR=val <command> <args>'." |
| 235 | ;; strip off any null commands, which can only happen if a variable | 235 | ;; strip off any null commands, which can only happen if a variable |
| 236 | ;; evaluates to nil, such as "$var x", where `var' is nil. The | 236 | ;; evaluates to nil, such as "$var x", where `var' is nil. The |
| 237 | ;; command name in that case becomes `x', for compatibility with | 237 | ;; command name in that case becomes `x', for compatibility with |