Commit 14ef4539 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

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.
parent 2396aea6
...@@ -122,38 +122,27 @@ such as `edebug-defun' to work with such inputs." ...@@ -122,38 +122,27 @@ such as `edebug-defun' to work with such inputs."
:type 'hook :type 'hook
:group 'ielm) :group 'ielm)
(defvar * nil ;; Most recent value evaluated in IELM.
"Most recent value evaluated in IELM.") (defvar *)
(defvar ** nil ;; Second-most-recent value evaluated in IELM.
"Second-most-recent value evaluated in IELM.") (defvar **)
(defvar *** nil ;; Third-most-recent value evaluated in IELM.
"Third-most-recent value evaluated in IELM.") (defvar ***)
(defvar ielm-match-data nil (defvar ielm-match-data nil
"Match data saved at the end of last command.") "Match data saved at the end of last command.")
(defvar *1 nil ;; During IELM evaluation, *1 is the most recent value evaluated in
"During IELM evaluation, most recent value evaluated in IELM. ;; IELM. Normally identical to `*'. However, if the working buffer
Normally identical to `*'. However, if the working buffer is an IELM ;; is an IELM buffer, distinct from the process buffer, then `*' gives
buffer, distinct from the process buffer, then `*' gives the value in ;; the value in the working buffer, `*1' the value in the process
the working buffer, `*1' the value in the process buffer. ;; buffer. The intended value is only accessible during IELM
The intended value is only accessible during IELM evaluation.") ;; evaluation. *2 and *3 are the same for ** and ***.
(defvar *1)
(defvar *2 nil (defvar *2)
"During IELM evaluation, second-most-recent value evaluated in IELM. (defvar *3)
Normally identical to `**'. However, if the working buffer is an IELM
buffer, distinct from the process buffer, then `**' gives the value in
the working buffer, `*2' the value in the process buffer.
The intended value is only accessible during IELM evaluation.")
(defvar *3 nil
"During IELM evaluation, third-most-recent value evaluated in IELM.
Normally identical to `***'. However, if the working buffer is an IELM
buffer, distinct from the process buffer, then `***' gives the value in
the working buffer, `*3' the value in the process buffer.
The intended value is only accessible during IELM evaluation.")
;;; System variables ;;; System variables
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment