Commit e9286904 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(cpp-edit-load): Don't load anything if init-file-user is nil.

(cpp-edit-save): Doc fix.
parent 580fae94
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment