* lisp/eshell/esh-cmd.el (eshell-debug-command): Doc fix. Add :set.
authorGlenn Morris <rgm@gnu.org>
Tue, 1 May 2012 18:48:46 +0000 (14:48 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 1 May 2012 18:48:46 +0000 (14:48 -0400)
lisp/ChangeLog
lisp/eshell/esh-cmd.el

index e4c45a2..887441d 100644 (file)
@@ -1,5 +1,7 @@
 2012-05-01  Glenn Morris  <rgm@gnu.org>
 
+       * eshell/esh-cmd.el (eshell-debug-command): Doc fix.  Add :set.
+
        * cus-edit.el (custom-variable-documentation): Simplify with format.
 
 2012-05-01  Aaron S. Hawley  <aaron.s.hawley@gmail.com>
index 6075b56..86de972 100644 (file)
@@ -1,6 +1,6 @@
 ;;; esh-cmd.el --- command invocation
 
-;; Copyright (C) 1999-2012  Free Software Foundation, Inc.
+;; Copyright (C) 1999-2012 Free Software Foundation, Inc.
 
 ;; Author: John Wiegley <johnw@gnu.org>
 
@@ -236,10 +236,14 @@ return non-nil if the command is complex."
   :group 'eshell-cmd)
 
 (defcustom eshell-debug-command nil
-  "If non-nil, enable debugging code.  SSLLOOWW.
-This option is only useful for reporting bugs.  If you enable it, you
-will have to visit the file 'eshell-cmd.el' and run the command
-\\[eval-buffer]."
+  "If non-nil, enable Eshell debugging code.
+This is slow, and only useful for debugging problems with Eshell.
+If you change this without using customize after Eshell has loaded,
+you must re-load 'eshell-cmd.el'."
+  :initialize 'custom-initialize-default
+  :set (lambda (symbol value)
+        (set sym val)
+        (load-library "esh-cmd"))
   :type 'boolean
   :group 'eshell-cmd)