diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-12-24 03:24:44 +0100 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-12-24 15:37:05 +0100 |
commit | 5b6c3a20a32273d094c72bb1b84fb3ada196eef4 (patch) | |
tree | 498526fd9af62a30de25a5262145256cd56458b7 /lisp/eshell/esh-var.el | |
parent | 32fc42322487bc43b62fb964529c2321c2e0215c (diff) | |
download | emacs-5b6c3a20a32273d094c72bb1b84fb3ada196eef4.tar.gz |
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-var.el')
-rw-r--r-- | lisp/eshell/esh-var.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/eshell/esh-var.el b/lisp/eshell/esh-var.el index 9aa50f2bd0f..1c5a2f28cb7 100644 --- a/lisp/eshell/esh-var.el +++ b/lisp/eshell/esh-var.el @@ -205,9 +205,8 @@ Additionally, each member may specify if it should be copied to the environment of created subprocesses." :type '(repeat (list string sexp (choice (const :tag "Copy to environment" t) - (const :tag "Use only in Eshell" nil))))) - -(put 'eshell-variable-aliases-list 'risky-local-variable t) + (const :tag "Use only in Eshell" nil)))) + :risky t) (defvar-keymap eshell-var-mode-map "C-c M-v" #'eshell-insert-envvar) |