]> git.eshelyaron.com Git - emacs.git/commitdiff
; Obsolete 'eshell/define'
authorJim Porter <jporterbugs@gmail.com>
Wed, 28 Sep 2022 16:34:38 +0000 (09:34 -0700)
committerJim Porter <jporterbugs@gmail.com>
Tue, 18 Oct 2022 01:48:52 +0000 (18:48 -0700)
* lisp/eshell/esh-var.el (eshell/define): Make obsolete, and explain
its current state.

* doc/misc/eshell.texi (Built-ins): Remove 'define'.

doc/misc/eshell.texi
lisp/eshell/esh-var.el

index 0ee33f2c2a9db28b24528489b5aebf65a370f8fe..8036bbd83ae9f0c23f898b728d14be7b71d5a61e 100644 (file)
@@ -439,11 +439,6 @@ Print the current local time as a human-readable string.  This command
 is similar to, but slightly different from, the GNU Coreutils
 @command{date} command.
 
-@item define
-@cmindex define
-Define a variable alias.
-@xref{Variable Aliases, , , elisp, The Emacs Lisp Reference Manual}.
-
 @item diff
 @cmindex diff
 Compare files using Emacs's internal @code{diff} (not to be confused
index 36e59cd5a41f51700862cb1b7b2ce77253579f68..3c09fc52fb5116da4a7a17b89c8fdfc0019800b4 100644 (file)
@@ -302,6 +302,11 @@ This function is explicit for adding to `eshell-parse-argument-hook'."
 
 (defun eshell/define (var-alias definition)
   "Define a VAR-ALIAS using DEFINITION."
+  ;; FIXME: This function doesn't work (it produces variable aliases
+  ;; in a form not recognized by other parts of the code), and likely
+  ;; hasn't worked since before its introduction into Emacs.  It
+  ;; should either be removed or fixed up.
+  (declare (obsolete nil "29.1"))
   (if (not definition)
       (setq eshell-variable-aliases-list
            (delq (assoc var-alias eshell-variable-aliases-list)