]> git.eshelyaron.com Git - emacs.git/commitdiff
(cpp-edit-load): Don't load anything if init-file-user is nil.
authorRichard M. Stallman <rms@gnu.org>
Sun, 15 Dec 1996 07:30:24 +0000 (07:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 15 Dec 1996 07:30:24 +0000 (07:30 +0000)
(cpp-edit-save): Doc fix.

lisp/progmodes/cpp.el

index 32573b6d0bc4ff3af23a2f742568ae7e25cd6277..fa0ed911e2e87bc42e6fdbc499921fe7b17452b1 100644 (file)
@@ -510,7 +510,10 @@ You can also use the keyboard accelerators indicated like this: [K]ey."
 (defun cpp-edit-load ()
   "Load cpp configuration."
   (interactive)
-  (cond ((file-readable-p cpp-config-file)
+  (cond ((null init-file-user)
+        ;; If -q was specified, don't load any init files.
+        nil)
+       ((file-readable-p cpp-config-file)
         (load-file cpp-config-file))
        ((file-readable-p (concat "~/" cpp-config-file))
         (load-file cpp-config-file)))
@@ -518,7 +521,7 @@ You can also use the keyboard accelerators indicated like this: [K]ey."
       (cpp-edit-reset)))
 
 (defun cpp-edit-save ()
-  "Load cpp configuration."
+  "Save the current cpp configuration in a file."
   (interactive)
   (require 'pp)
   (save-excursion