From: Eli Zaretskii <eliz@gnu.org>
To: gdb-patches@sourceware.org
Subject: Automatically set the comment style to what we use
Date: Fri, 16 Jun 2017 13:39:00 -0000 [thread overview]
Message-ID: <83bmpo128p.fsf@gnu.org> (raw)
The development version of Emacs has a new feature, whereby one can
toggle the comment style and get the C style in C++ sources, the style
we use. (I got annoyed by having to manually type the comment
starting and ending sequences, so I asked the CC mode maintainer to
add this, and he just did.)
So what do people think about the following addition to our
.dir-locals.el? I verified that it's a no-op in versions of Emacs
which don't support this functionality.
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)))))
)
next reply other threads:[~2017-06-16 13:39 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-16 13:39 Eli Zaretskii [this message]
2017-06-22 9:45 ` Yao Qi
2017-06-22 15:03 ` Eli Zaretskii
2017-06-22 15:04 ` Eli Zaretskii
2017-06-22 15:14 ` Yao Qi
2017-07-01 15:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83bmpo128p.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox