all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Eli Zaretskii <eliz@gnu.org>
Cc: dmoncayo@gmail.com, emacs-devel@gnu.org
Subject: Re: /* */ style comments in C++ sources
Date: Fri, 16 Jun 2017 11:50:13 +0000	[thread overview]
Message-ID: <20170616115013.GC2993@acm.fritz.box> (raw)
In-Reply-To: <83wp8c1mgh.fsf@gnu.org>

Hello, Eli.

On Fri, Jun 16, 2017 at 09:22:06 +0300, Eli Zaretskii wrote:
> > Date: Thu, 15 Jun 2017 21:10:07 +0000
> > Cc: emacs-devel@gnu.org, Dani Moncayo <dmoncayo@gmail.com>
> > From: Alan Mackenzie <acm@muc.de>

> > >   Call `c-toggle-comment-style' with a numeric argument in, e.g., a mode
> > >   hook to do the obvious.

> > More precisely, put

> >     (c-toggle-comment-style 1)

> > into your c++-mode-hook.

> Is this supposed to work in directory-local variables loaded via
> .dir-locals.el?  If so, could older versions of Emacs barf when they
> see this?

Ah.  That's a problem.  Older versions of Emacs would indeed foul up on
seeing that in .dir-locals.el.

> The reason I'm asking is that I'd like to add this to the
> .dir-locals.el file in the GDB repository.

We could really do with being able to write (if (fboundp ...) ...) in a
.dir-locals.el.  I don't think we've any way of doing this at the moment.

Maybe I could amend the amendment for /* */ so that it would need only to
set a variable in .dir-locals.el rather than calling a function.  Would
that work better?

[ .... ]

> Thanks.

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2017-06-16 11:50 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-23 18:57 /* */ style comments in C++ sources Eli Zaretskii
2017-05-23 20:31 ` Alan Mackenzie
2017-05-24  0:02   ` Richard Stallman
2017-05-24 20:36     ` Sam Steingold
2017-05-24  2:27   ` Eli Zaretskii
2017-05-24 20:53     ` Alan Mackenzie
2017-05-25  1:51       ` Stefan Monnier
2017-05-25  2:32       ` Eli Zaretskii
2017-05-25 15:48         ` Alan Mackenzie
2017-05-25 16:59           ` Stefan Monnier
2017-05-25 17:44             ` Alan Mackenzie
2017-05-26  9:16           ` Alan Mackenzie
2017-06-15 21:10             ` Alan Mackenzie
2017-06-16  6:22               ` Eli Zaretskii
2017-06-16 11:50                 ` Alan Mackenzie [this message]
2017-06-16 12:40                   ` Alan Mackenzie
2017-06-16 13:33                     ` Eli Zaretskii
2017-06-16 13:22                   ` Eli Zaretskii
2017-06-16 13:37                     ` Stefan Monnier
2017-06-16 14:25                       ` Stefan Monnier
2017-06-16 16:15                         ` Eli Zaretskii
2017-06-16 18:45                           ` Stefan Monnier
2017-06-16 19:30                             ` Eli Zaretskii
2017-05-25  3:13       ` Herring, Davis
2017-05-25 16:00         ` Alan Mackenzie
2017-05-24 17:19   ` John Mastro
2017-05-24 18:10     ` Eli Zaretskii
2017-05-25  1:49       ` Stefan Monnier
2017-05-24  9:08 ` Dani Moncayo

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=20170616115013.GC2993@acm.fritz.box \
    --to=acm@muc.de \
    --cc=dmoncayo@gmail.com \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.