all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: xemacs-beta@xemacs.org, emacs-devel@gnu.org
Subject: Re: C Mode possibility: optionally disabling K&R function headers. WDYT?
Date: Fri, 9 Dec 2011 13:53:11 +0000	[thread overview]
Message-ID: <20111209135311.GA4146@acm.acm> (raw)
In-Reply-To: <jwvvcprw5f2.fsf-monnier+emacs@gnu.org>

On Thu, Dec 08, 2011 at 08:40:38AM -0500, Stefan Monnier wrote:
> > Solving this bug is difficult.  One way would be just to disable K&R in
> > C Mode, except when explicitly enabled by the user.  After all, K&R
> > parameters have been obsolete for over 10 years now.

> > The key sequnce to toggle it would be C-c C-k.

> > Can anybody think up any reasons why this would be a Bad Thing.  Does
> > anybody feel particularly strongly about this?

> I think introducing a config var to disable K&R would be great
> (especially since IIUC it is a source of trouble, including peformance
> trouble).

I'm thinking more of a buffer local toggle.  There're going to be times
when some hacker suddenly comes across a file with K&R function decls and
will want to be able to toggle it effortlessly.

> I don't see any need for a key-binding to toggle it, tho.

Maybe, maybe not.  But it wouldn't do any harm.  (There are 11 spare C-c
C-<letter> bindings still unused in CC Mode.)

> And I'd rather keep it ON by default for 24.1.

That's fine.  But I was more thinking of it as a new feature than a bug
fix, and thus for CC Mode 5.33 / Emacs 25.  I've no particularly strong
feelings as to the default; I think it should be OFF eventually, but
leaving it ON to begin with seems sensible.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).



  parent reply	other threads:[~2011-12-09 13:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-08 11:25 C Mode possibility: optionally disabling K&R function headers. WDYT? Alan Mackenzie
2011-12-08 13:40 ` Stefan Monnier
2011-12-09  4:55   ` Stephen J. Turnbull
2011-12-09 14:00     ` Alan Mackenzie
2011-12-09 13:53   ` Alan Mackenzie [this message]
2011-12-09 21:11     ` Stefan Monnier

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=20111209135311.GA4146@acm.acm \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=xemacs-beta@xemacs.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.