all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: martin rudalics <rudalics@gmx.at>
Cc: emacs-devel@gnu.org
Subject: Re: CC Mode now respects users' settings of open-paren-in-column-0-is-defun-start.
Date: Thu, 12 Nov 2015 18:09:39 +0000	[thread overview]
Message-ID: <20151112180939.GF3120@acm.fritz.box> (raw)
In-Reply-To: <56444C3B.5030900@gmx.at>

Hello, Martin.

On Thu, Nov 12, 2015 at 09:22:19AM +0100, martin rudalics wrote:
>  > By popular request, CC Mode no longer binds
>  > open-paren-in-column-0-is-defun-start to nil internally.

> Thanks.

>  > As a consequence, CC Mode should run slightly faster,

> So far, the performance didn't improve significantly.  Either there are
> other changes that did make editing C deteriorate considerably over the
> past two years or I still have to tweak some internal settings.  I'll
> get back to you as soon as I know more.

I noticed a large degradation in speed, too.  I timed the complete
fontification of xdisp.c, and Emacs 24.5 was taking ~40s (with
o-p-i-c-0-i-defun-start t).  The same on Emacs 25.1 is taking ~77s.  The
difference seems to be between standalone CC Mode and the version
included with Emacs 25.1.  There's some bug on savannah CC Mode which
hasn't been fixed, or some optimisation which hasn't been made.

(Somewhat later).  The standalone CC Mode doesn't (in the default
branch) contain certain C++11 enhancements.  These seem to be what is
slowing things down.  This should be easily fixable for C Mode, but it
would be nice to fix it for C++ Mode, too.

>  > but at a slightly
>  > higher risk of mis-indenting and mis-fontifying.  Those bug bears, open
>  > parens in column 0 in strings and comments, will again cause things which
>  > look like errors.

> Funnily, a few minutes ago I read that for performance reasons an
> implementation of "parinfer-mode"
> (https://github.com/oakmac/atom-parinfer) relies on a similar feature.

> We still also should fix the font-lock issue you reported elsewhere.  I
> have no idea yet why it doesn't work any more.

You mean the open paren in column 0 not getting bold red?  I'm looking
at that at the moment, with thanks to Glenn for pointing out it used to
work very recently.

> martin

-- 
Alan Mackenzie (Nuremberg, Germany).



  reply	other threads:[~2015-11-12 18:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 22:30 CC Mode now respects users' settings of open-paren-in-column-0-is-defun-start Alan Mackenzie
2015-11-12  8:22 ` martin rudalics
2015-11-12 18:09   ` Alan Mackenzie [this message]
2015-11-15 22:14     ` Alan Mackenzie
2015-11-16 18:55       ` martin rudalics
2015-11-16 21:12         ` Alan Mackenzie

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=20151112180939.GF3120@acm.fritz.box \
    --to=acm@muc.de \
    --cc=emacs-devel@gnu.org \
    --cc=rudalics@gmx.at \
    /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.