aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-06-20 13:44:30 +0200
committerLars Ingebrigtsen2019-06-20 14:13:18 +0200
commit14ef4539bb580fe029fb2d3769dc4450f9289db8 (patch)
tree9f20c54ce7cfb1d4264a1e7e9654558347e43d0c
parent2396aea6fdd3fbcb5c54880db3ce09122742f6c2 (diff)
downloademacs-14ef4539bb580fe029fb2d3769dc4450f9289db8.tar.gz
emacs-14ef4539bb580fe029fb2d3769dc4450f9289db8.zip
Don't define *, ** and ** in ielm as real variables
* lisp/ielm.el: (*, **, ***): Change defvars into compiler directives instead of real variable definitions to avoid polluting the global Emacs namespace. (*1, *2, *3): Ditto.
-rw-r--r--lisp/ielm.el41
1 files changed, 15 insertions, 26 deletions
diff --git a/lisp/ielm.el b/lisp/ielm.el
index c7a31a23e68..b8b0e260650 100644
--- a/lisp/ielm.el
+++ b/lisp/ielm.el
@@ -122,38 +122,27 @@ such as `edebug-defun' to work with such inputs."
122 :type 'hook 122 :type 'hook
123 :group 'ielm) 123 :group 'ielm)
124 124
125(defvar * nil 125;; Most recent value evaluated in IELM.
126 "Most recent value evaluated in IELM.") 126(defvar *)
127 127
128(defvar ** nil 128;; Second-most-recent value evaluated in IELM.
129 "Second-most-recent value evaluated in IELM.") 129(defvar **)
130 130
131(defvar *** nil 131;; Third-most-recent value evaluated in IELM.
132 "Third-most-recent value evaluated in IELM.") 132(defvar ***)
133 133
134(defvar ielm-match-data nil 134(defvar ielm-match-data nil
135 "Match data saved at the end of last command.") 135 "Match data saved at the end of last command.")
136 136
137(defvar *1 nil 137;; During IELM evaluation, *1 is the most recent value evaluated in
138 "During IELM evaluation, most recent value evaluated in IELM. 138;; IELM. Normally identical to `*'. However, if the working buffer
139Normally identical to `*'. However, if the working buffer is an IELM 139;; is an IELM buffer, distinct from the process buffer, then `*' gives
140buffer, distinct from the process buffer, then `*' gives the value in 140;; the value in the working buffer, `*1' the value in the process
141the working buffer, `*1' the value in the process buffer. 141;; buffer. The intended value is only accessible during IELM
142The intended value is only accessible during IELM evaluation.") 142;; evaluation. *2 and *3 are the same for ** and ***.
143 143(defvar *1)
144(defvar *2 nil 144(defvar *2)
145 "During IELM evaluation, second-most-recent value evaluated in IELM. 145(defvar *3)
146Normally identical to `**'. However, if the working buffer is an IELM
147buffer, distinct from the process buffer, then `**' gives the value in
148the working buffer, `*2' the value in the process buffer.
149The intended value is only accessible during IELM evaluation.")
150
151(defvar *3 nil
152 "During IELM evaluation, third-most-recent value evaluated in IELM.
153Normally identical to `***'. However, if the working buffer is an IELM
154buffer, distinct from the process buffer, then `***' gives the value in
155the working buffer, `*3' the value in the process buffer.
156The intended value is only accessible during IELM evaluation.")
157 146
158;;; System variables 147;;; System variables
159 148