[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f1caa10f04 4/7: ; Obsolete 'eshell/define'
From: |
Jim Porter |
Subject: |
master f1caa10f04 4/7: ; Obsolete 'eshell/define' |
Date: |
Mon, 17 Oct 2022 21:49:46 -0400 (EDT) |
branch: master
commit f1caa10f04c980034f5ee6e0748cf3b03f460b2b
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>
; Obsolete 'eshell/define'
* 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 | 5 -----
lisp/eshell/esh-var.el | 5 +++++
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/misc/eshell.texi b/doc/misc/eshell.texi
index 0ee33f2c2a..8036bbd83a 100644
--- a/doc/misc/eshell.texi
+++ b/doc/misc/eshell.texi
@@ -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
diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el
index 36e59cd5a4..3c09fc52fb 100644
--- a/lisp/eshell/esh-var.el
+++ b/lisp/eshell/esh-var.el
@@ -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)
- master updated (f4442d49f6 -> fd4992d356), Jim Porter, 2022/10/17
- master 1beb389e47 1/7: ; Remove over-quoting of :application values in connection-local variables, Jim Porter, 2022/10/17
- master 2c82530f47 3/7: ; Allow ignoring errors when calling 'eshell-match-command-output', Jim Porter, 2022/10/17
- master cee1cbfd54 6/7: Improve handling of $PATH in Eshell for remote directories, Jim Porter, 2022/10/17
- master 7c41016fca 5/7: Allow setting the values of variable aliases in Eshell, Jim Porter, 2022/10/17
- master f1caa10f04 4/7: ; Obsolete 'eshell/define',
Jim Porter <=
- master 3cc356abfe 2/7: Add helpers to dynamically assign connection-local values, Jim Porter, 2022/10/17
- master fd4992d356 7/7: Print the correct $PATH when Eshell's 'which' fails to find a command, Jim Porter, 2022/10/17