unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: "Marshall, Simon" <simon.marshall@misys.com>
Cc: "'bug-cc-mode@gnu.org'" <bug-cc-mode@gnu.org>,
	"'emacs-devel@gnu.org'" <emacs-devel@gnu.org>
Subject: Re: Font-lock decides function call is function declaration in C+ + - embryonic solution.
Date: 23 Feb 2007 22:01:25 +0100	[thread overview]
Message-ID: <20070223221649.GB1674@muc.de> (raw)
In-Reply-To: <81CCA6588E60BB42BE68BD029ED4826012934F6F@wimex2.wim.midas-kapiti.com>

Hi, Simon!

On Fri, Feb 23, 2007 at 10:23:43AM -0000, Marshall, Simon wrote:
> Hi Alan, thanks for working on this. 

> > THIS ISN'T PRODUCTION QUALITY CODE, or anywher near it, so 
> > please don't "debug" it or "tidy it up" for me!  

> Do you want anyone to actually try it or is it not really in such a
> state yet?

Yes, please do try it!  It doesn't work 100% yet, but I'm trying to
persuade people that it soon will.  ;-)

> > In particular, it only solves Simon's first bug recipe.  It doesn't
> > yet solve the second one (which will probably be quite easy to fix),
> > and it doesn't yet deal with template types in `c-found-types', or
> > with comments, strings, macros, narrowed regions, .....

> Does it deal with the case of deletion of the text (and therefore
> properties) that contain the c-type properties, ie, deletion of the
> cached info?

That's precisely what it does.  In "foo \n   bar();", `c-found-types'
contains "foo".
(i) After you type the "(", giving "foo( \n  bar();", "foo" is removed
from `c-found-types'.
(ii) If instead you delete an "o", giving "fo \n  bar();", "foo" is
removed, being replace by "fo".

> Simon.

-- 
Alan.

  reply	other threads:[~2007-02-23 21:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-23 10:23 Font-lock decides function call is function declaration in C+ + - embryonic solution Marshall, Simon
2007-02-23 21:01 ` Alan Mackenzie [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-03-06 10:49 Marshall, Simon
2007-02-27 15:08 Marshall, Simon
2007-02-05 16:46 Font-lock decides function call is function declaration in C+ + Marshall, Simon
2007-02-22 23:47 ` Font-lock decides function call is function declaration in C+ + - embryonic solution Alan Mackenzie
2007-03-01 17:19   ` Chong Yidong
2007-03-02  3:28     ` Richard Stallman
2007-03-03 10:18     ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070223221649.GB1674@muc.de \
    --to=acm@muc.de \
    --cc=bug-cc-mode@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=simon.marshall@misys.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).