summaryrefslogtreecommitdiff
path: root/lisp/eshell/esh-cmd.el
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-12-24 03:24:44 +0100
committerStefan Kangas <stefan@marxist.se>2021-12-24 15:37:05 +0100
commit5b6c3a20a32273d094c72bb1b84fb3ada196eef4 (patch)
tree498526fd9af62a30de25a5262145256cd56458b7 /lisp/eshell/esh-cmd.el
parent32fc42322487bc43b62fb964529c2321c2e0215c (diff)
downloademacs-5b6c3a20a32273d094c72bb1b84fb3ada196eef4.tar.gz
emacs-5b6c3a20a32273d094c72bb1b84fb3ada196eef4.tar.bz2
emacs-5b6c3a20a32273d094c72bb1b84fb3ada196eef4.zip
Prefer the defcustom :risky property in eshell
* lisp/eshell/em-banner.el (eshell-banner-message): * lisp/eshell/em-hist.el (eshell-input-filter): * lisp/eshell/em-pred.el (eshell-predicate-alist) (eshell-modifier-alist): * lisp/eshell/esh-cmd.el (eshell-subcommand-bindings): * lisp/eshell/esh-io.el (eshell-virtual-targets): * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Prefer defcustom :risky property to setting 'risky-local-variable manually.
Diffstat (limited to 'lisp/eshell/esh-cmd.el')
-rw-r--r--lisp/eshell/esh-cmd.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el
index 213b7ab2893..1ddcc50f6fd 100644
--- a/lisp/eshell/esh-cmd.el
+++ b/lisp/eshell/esh-cmd.el
@@ -258,9 +258,8 @@ the command."
(default-directory default-directory)
(process-environment (eshell-copy-environment)))
"A list of `let' bindings for subcommand environments."
- :type 'sexp)
-
-(put 'risky-local-variable 'eshell-subcommand-bindings t)
+ :type 'sexp
+ :risky t)
(defvar eshell-ensure-newline-p nil
"If non-nil, ensure that a newline is emitted after a Lisp form.