Mercurial > emacs
changeset 16681:58b38425b463
(cpp-edit-load): Don't load anything if init-file-user is nil.
(cpp-edit-save): Doc fix.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 15 Dec 1996 07:30:24 +0000 |
parents | 82898b671633 |
children | fe4b95eb15ae |
files | lisp/progmodes/cpp.el |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/cpp.el Sun Dec 15 04:58:53 1996 +0000 +++ b/lisp/progmodes/cpp.el Sun Dec 15 07:30:24 1996 +0000 @@ -510,7 +510,10 @@ (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 @@ (cpp-edit-reset))) (defun cpp-edit-save () - "Load cpp configuration." + "Save the current cpp configuration in a file." (interactive) (require 'pp) (save-excursion