]> git.eshelyaron.com Git - emacs.git/commitdiff
(enable-command, disable-command): Use user-init-file.
authorRichard M. Stallman <rms@gnu.org>
Thu, 6 Jan 1994 04:29:23 +0000 (04:29 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 6 Jan 1994 04:29:23 +0000 (04:29 +0000)
lisp/novice.el

index b874754920959f6d198d31cfe1e17efed809da13..2353edc5719eb1bc013e9ebd3c6786226b28c671 100644 (file)
@@ -90,7 +90,8 @@ to future sessions."
   (interactive "CEnable command: ")
   (put command 'disabled nil)
   (save-excursion
-   (set-buffer (find-file-noselect (substitute-in-file-name "~/.emacs")))
+   (set-buffer (find-file-noselect 
+               (substitute-in-file-name user-init-file)))
    (goto-char (point-min))
    (if (search-forward (concat "(put '" (symbol-name command) " ") nil t)
        (delete-region
@@ -109,7 +110,8 @@ to future sessions."
   (interactive "CDisable command: ")
   (put command 'disabled t)
   (save-excursion
-   (set-buffer (find-file-noselect (substitute-in-file-name "~/.emacs")))
+   (set-buffer (find-file-noselect 
+               (substitute-in-file-name user-init-file)))
    (goto-char (point-min))
    (if (search-forward (concat "(put '" (symbol-name command) " ") nil t)
        (delete-region