emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /* */ style comments in C++ sources


From: Eli Zaretskii
Subject: Re: /* */ style comments in C++ sources
Date: Fri, 16 Jun 2017 16:33:04 +0300

> Date: Fri, 16 Jun 2017 12:40:10 +0000
> Cc: address@hidden, address@hidden
> From: Alan Mackenzie <address@hidden>
> 
> How about something like:
> 
>     (c++-mode . ((eval . (when (fboundp 'c-toggle-comment-style)
>                            (c-toggle-comment-style 1)))))
> 
> (not tested)?  It might not be pretty, but it should surely work without
> throwing errors in Emacs <= 25.2.

This works, thanks.  (It has the downside that it uses 'eval', which
by default asks for confirmation.  Bug GDB's .dir-locals.el already
uses 'eval' for a different purpose, and I have enable-local-eval set
to t in my .emacs.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]