changeset 5451:165b0bf0e879

(enable-command, disable-command): Use user-init-file.
author Richard M. Stallman <rms@gnu.org>
date Thu, 06 Jan 1994 04:29:23 +0000
parents 9c57cdb2091e
children b328e9dec991
files lisp/novice.el
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/novice.el	Thu Jan 06 04:28:36 1994 +0000
+++ b/lisp/novice.el	Thu Jan 06 04:29:23 1994 +0000
@@ -90,7 +90,8 @@
   (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 @@
   (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