summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2017-07-01 18:45:57 +0300
committerEli Zaretskii <eliz@gnu.org>2017-07-01 18:45:57 +0300
commit25c5412713badef8cf779186174200ecd880b329 (patch)
tree3b53bb4b75a574d3f6895c17eaf873250d3c97d2
parent3c465ea0ffd372bfc7f07eccef4c0b1bd22efc71 (diff)
downloadbinutils-gdb-25c5412713badef8cf779186174200ecd880b329.tar.gz
Setup .dir-locals.el to use C-style comments by default
gdb/ChangeLog: 2017-07-01 Eli Zaretskii <eliz@gnu.org> * .dir-locals.el: Automatically switch to C-style comments in versions of Emacs that support the feature.
-rw-r--r--gdb/.dir-locals.el2
-rw-r--r--gdb/ChangeLog5
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/.dir-locals.el b/gdb/.dir-locals.el
index a2aa1962fa3..48325b14985 100644
--- a/gdb/.dir-locals.el
+++ b/gdb/.dir-locals.el
@@ -26,4 +26,6 @@
(c-basic-offset . 2)
(eval . (c-set-offset 'innamespace 0))
))
+ (c++-mode . ((eval . (when (fboundp 'c-toggle-comment-style)
+ (c-toggle-comment-style 1)))))
)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 708025694cc..32abd426a99 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-07-01 Eli Zaretskii <eliz@gnu.org>
+
+ * .dir-locals.el: Automatically switch to C-style comments in
+ versions of Emacs that support the feature.
+
2017-06-30 Sergio Durigan Junior <sergiodj@redhat.com>
Pedro Alves <palves@redhat.com>