This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Setup .dir-locals.el to use C-style comments by default


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=25c5412713badef8cf779186174200ecd880b329

commit 25c5412713badef8cf779186174200ecd880b329
Author: Eli Zaretskii <eliz@gnu.org>
Date:   Sat Jul 1 18:45:57 2017 +0300

    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.

Diff:
---
 gdb/.dir-locals.el | 2 ++
 gdb/ChangeLog      | 5 +++++
 2 files changed, 7 insertions(+)

diff --git a/gdb/.dir-locals.el b/gdb/.dir-locals.el
index a2aa196..48325b1 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 7080256..32abd42 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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]