Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e9286904
Commit
e9286904
authored
Dec 15, 1996
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lisp/progmodes/cpp.el
lisp/progmodes/cpp.el
+5
-2
No files found.
lisp/progmodes/cpp.el
View file @
e9286904
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment