]> git.eshelyaron.com Git - emacs.git/commit
Put cpp config file to ~/.emacs.d/cpp.el if possible (Bug#28685)
authorMasatake YAMATO <yamato@redhat.com>
Sun, 22 Oct 2017 09:22:41 +0000 (18:22 +0900)
committerNoam Postavsky <npostavs@gmail.com>
Sun, 22 Oct 2017 15:33:40 +0000 (11:33 -0400)
commit9c8f8de0f3e00d4f862fa5c17e3b46fcd23e5f7f
tree8bd0875ad133dcb0000ddd6ab8054b33738fe2ee
parentaa44308429e952388a2403e8dda6c1cbf6c5d802
Put cpp config file to ~/.emacs.d/cpp.el if possible (Bug#28685)

If `cpp-config-file` starts with '.', remove the '.'
when putting the file to ~/.emacs.d.
Suggested by Noam Postavsky <npostavs@users.sourceforge.net>

* lisp/progmodes/cpp.el (cpp-locate-user-emacs-file): New
function wrapping `locate-user-emacs-file`.
(cpp-edit-load, cpp-edit-save): Use it.
lisp/progmodes/cpp.el