aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ChangeLog
diff options
context:
space:
mode:
authorStefan Monnier2013-09-12 01:20:07 -0400
committerStefan Monnier2013-09-12 01:20:07 -0400
commit170266d096bc4d0952bee907532d14503e882bf6 (patch)
tree9c25a5a63af77941b8ee141e275406ed6eb9c27c /lisp/ChangeLog
parentd3b049e6015c09a2d1ea101e5fb466c6ce9f61e0 (diff)
downloademacs-170266d096bc4d0952bee907532d14503e882bf6.tar.gz
emacs-170266d096bc4d0952bee907532d14503e882bf6.zip
Cleanup Eshell to rely less on dynamic scoping.
* lisp/eshell/esh-opt.el (eshell-eval-using-options): Don't bind usage-msg, last-value, and ext-command here. Bind `args' closer to `body'. (temp-args, last-value, usage-msg, ext-command, args): Don't defvar. (eshell--args): Declare new dynamic var. (eshell-do-opt): Add argument `args'. Bind our own usage-msg, last-value, and ext-command. Pass `args' to `body'. (eshell-process-args): Bind eshell--args. (eshell-set-option): Use eshell--args. * lisp/eshell/eshell.el (eshell): Use derived-mode-p. * lisp/eshell/esh-var.el (eshell-parse-variable): Use backquote. (eshell-parse-variable-ref): Remove unused vars `end' and `err'. (eshell-glob-function): Declare. * lisp/eshell/esh-util.el: Require cl-lib. (eshell-read-hosts-file): Avoid add-to-list. * lisp/eshell/esh-cmd.el (eshell-parse-lisp-argument): Remove unused var `err'. * lisp/eshell/em-unix.el (compilation-scroll-output, locate-history-list): Declare. (eshell/diff): Remove unused var `err'. * lisp/eshell/em-rebind.el (eshell-delete-backward-char): Remove unused arg `killflag'. * lisp/eshell/em-pred.el (eshell-parse-modifiers): Remove unused var `err'. * lisp/eshell/em-ls.el (eshell-ls-highlight-alist): Move defvars before first use. * lisp/eshell/em-glob.el (eshell-glob-matches, message-shown): Move declaration before first use. * lisp/eshell/em-alias.el (eshell-maybe-replace-by-alias): Use backquotes. * autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we rely on cl-return.
Diffstat (limited to 'lisp/ChangeLog')
-rw-r--r--lisp/ChangeLog28
1 files changed, 28 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 61e9c9bf708..7984dc214c4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,33 @@
12013-09-12 Stefan Monnier <monnier@iro.umontreal.ca> 12013-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 Cleanup Eshell to rely less on dynamic scoping.
4 * eshell/esh-opt.el (eshell-eval-using-options): Don't bind usage-msg,
5 last-value, and ext-command here. Bind `args' closer to `body'.
6 (temp-args, last-value, usage-msg, ext-command, args): Don't defvar.
7 (eshell--args): Declare new dynamic var.
8 (eshell-do-opt): Add argument `args'. Bind our own usage-msg,
9 last-value, and ext-command. Pass `args' to `body'.
10 (eshell-process-args): Bind eshell--args.
11 (eshell-set-option): Use eshell--args.
12 * eshell/eshell.el (eshell): Use derived-mode-p.
13 * eshell/esh-var.el (eshell-parse-variable): Use backquote.
14 (eshell-parse-variable-ref): Remove unused vars `end' and `err'.
15 (eshell-glob-function): Declare.
16 * eshell/esh-util.el: Require cl-lib.
17 (eshell-read-hosts-file): Avoid add-to-list.
18 * eshell/esh-cmd.el (eshell-parse-lisp-argument): Remove unused var
19 `err'.
20 * eshell/em-unix.el (compilation-scroll-output, locate-history-list):
21 Declare.
22 (eshell/diff): Remove unused var `err'.
23 * eshell/em-rebind.el (eshell-delete-backward-char): Remove unused arg
24 `killflag'.
25 * eshell/em-pred.el (eshell-parse-modifiers): Remove unused var `err'.
26 * eshell/em-ls.el (eshell-ls-highlight-alist): Move defvars before
27 first use.
28 * eshell/em-glob.el (eshell-glob-matches, message-shown):
29 Move declaration before first use.
30 * eshell/em-alias.el (eshell-maybe-replace-by-alias): Use backquotes.
3 * autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we 31 * autorevert.el (auto-revert-notify-handler): Use `cl-dolist' since we
4 rely on cl-return. 32 rely on cl-return.
5 33