From: Eli Zaretskii Date: Sat, 1 Jul 2017 15:45:57 +0000 (+0300) Subject: Setup .dir-locals.el to use C-style comments by default X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=25c5412713badef8cf779186174200ecd880b329;p=binutils-gdb.git Setup .dir-locals.el to use C-style comments by default gdb/ChangeLog: 2017-07-01 Eli Zaretskii * .dir-locals.el: Automatically switch to C-style comments in versions of Emacs that support the feature. --- 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 + + * .dir-locals.el: Automatically switch to C-style comments in + versions of Emacs that support the feature. + 2017-06-30 Sergio Durigan Junior Pedro Alves