]> git.eshelyaron.com Git - emacs.git/commitdiff
Update `eshell-variable-aliases-list` defcustom type
authorMattias Engdegård <mattiase@acm.org>
Sat, 16 Jul 2022 12:03:43 +0000 (14:03 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sat, 16 Jul 2022 12:05:44 +0000 (14:05 +0200)
* lisp/eshell/esh-var.el (eshell-variable-aliases-list):
Add type for SIMPLE-FUNCTION value.

lisp/eshell/esh-var.el

index 2c92567773edd4073e6fab8e90b14777386a0fef..2f6614b5d73088affde638ca3bce2e522f23e253 100644 (file)
@@ -212,7 +212,9 @@ Additionally, if COPY-TO-ENVIRONMENT is non-nil, the alias should be
 copied (a.k.a. \"exported\") 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))))
+                               (const :tag "Use only in Eshell" nil))
+                       (choice (const :tag "Call without argument" t)
+                               (const :tag "Call with 2 arguments" nil))))
   :risky t)
 
 (defvar-keymap eshell-var-mode-map