diff options
| author | Lars Ingebrigtsen | 2019-06-20 13:44:30 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-06-20 14:13:18 +0200 |
| commit | 14ef4539bb580fe029fb2d3769dc4450f9289db8 (patch) | |
| tree | 9f20c54ce7cfb1d4264a1e7e9654558347e43d0c | |
| parent | 2396aea6fdd3fbcb5c54880db3ce09122742f6c2 (diff) | |
| download | emacs-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.el | 41 |
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 |
| 139 | Normally identical to `*'. However, if the working buffer is an IELM | 139 | ;; is an IELM buffer, distinct from the process buffer, then `*' gives |
| 140 | buffer, distinct from the process buffer, then `*' gives the value in | 140 | ;; the value in the working buffer, `*1' the value in the process |
| 141 | the working buffer, `*1' the value in the process buffer. | 141 | ;; buffer. The intended value is only accessible during IELM |
| 142 | The 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) |
| 146 | Normally identical to `**'. However, if the working buffer is an IELM | ||
| 147 | buffer, distinct from the process buffer, then `**' gives the value in | ||
| 148 | the working buffer, `*2' the value in the process buffer. | ||
| 149 | The intended value is only accessible during IELM evaluation.") | ||
| 150 | |||
| 151 | (defvar *3 nil | ||
| 152 | "During IELM evaluation, third-most-recent value evaluated in IELM. | ||
| 153 | Normally identical to `***'. However, if the working buffer is an IELM | ||
| 154 | buffer, distinct from the process buffer, then `***' gives the value in | ||
| 155 | the working buffer, `*3' the value in the process buffer. | ||
| 156 | The intended value is only accessible during IELM evaluation.") | ||
| 157 | 146 | ||
| 158 | ;;; System variables | 147 | ;;; System variables |
| 159 | 148 | ||