unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* RE: Font-lock decides function call is function declaration in C+ + - embryonic solution.
@ 2007-02-27 15:08 Marshall, Simon
  0 siblings, 0 replies; 8+ messages in thread
From: Marshall, Simon @ 2007-02-27 15:08 UTC (permalink / raw)
  To: 'Alan Mackenzie'
  Cc: 'bug-cc-mode@gnu.org', 'emacs-devel@gnu.org'

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

So far I've noticed these error messages:

Unhandled c-type at 2449
if: Args out of range: 2240, 2240

The last one happened on C-c C-c, after which c++-mode was convinced all
subsequent text was part of a comment.  It took a while before it got its
senses back.  I've turned debug-on-error on now.

Let me know whenever you have patches for things you've fixed/added.

Simon.


This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person.       Misys Banking Systems is a trading name of Misys International Banking Systems Limited which is registered in England and Wales under company registration number 00971479 and with its registered office address at Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP.    THIS E-MAIL DOES NOT CONSTITUTE THE COMMENCEMENT OF LEGAL RELATIONS BETWEEN YOU AND MISYS INTERNATIONAL BANKING SYSTEMS LIMITED. PLEASE REFER TO THE EXECUTED CONTRACT BETWEEN YOU AND THE RELEVANT MEMBER OF THE MISYS GROUP FOR THE IDENTITY OF THE CONTRACTING PARTY WITH WHICH YOU ARE DEALING. 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Font-lock decides function call is function declaration in C+ + - embryonic solution.
@ 2007-03-06 10:49 Marshall, Simon
  0 siblings, 0 replies; 8+ messages in thread
From: Marshall, Simon @ 2007-03-06 10:49 UTC (permalink / raw)
  To: 'Alan Mackenzie'
  Cc: 'Chong Yidong', 'Richard Stallman',
	'emacs-devel@gnu.org'

> > In the interest of release Emacs 22 sometime in 2007, I'd like to 
> > suggest postphoning this fix to Emacs 23 [...]

Ouch, unless Emacs 23 is the next release after Emacs 22.
  
> I suggest instead that I tidy up that embryonic patch and 
> commit it.  I think I'll be able to do this today or 
> tomorrow.  It will not fully resolve the bug, but it will help.

I'm happy to test it.  Either send me a patch relative to CVS (if you're not
committing it until it's tested) or let me know when it's checked in.

Simon.


This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person.       Misys Banking Systems is a trading name of Misys International Banking Systems Limited which is registered in England and Wales under company registration number 00971479 and with its registered office address at Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP.    THIS E-MAIL DOES NOT CONSTITUTE THE COMMENCEMENT OF LEGAL RELATIONS BETWEEN YOU AND MISYS INTERNATIONAL BANKING SYSTEMS LIMITED. PLEASE REFER TO THE EXECUTED CONTRACT BETWEEN YOU AND THE RELEVANT MEMBER OF THE MISYS GROUP FOR THE IDENTITY OF THE CONTRACTING PARTY WITH WHICH YOU ARE DEALING. 

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Font-lock decides function call is function declaration in C+ + - embryonic solution.
@ 2007-02-23 10:23 Marshall, Simon
  2007-02-23 21:01 ` Alan Mackenzie
  0 siblings, 1 reply; 8+ messages in thread
From: Marshall, Simon @ 2007-02-23 10:23 UTC (permalink / raw)
  To: 'Alan Mackenzie', 'Chong Yidong',
	'Stefan Monnier'
  Cc: 'bug-cc-mode@gnu.org', 'emacs-devel@gnu.org'

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?

> 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?

Simon.


This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person.       Misys Banking Systems is a trading name of Misys International Banking Systems Limited which is registered in England and Wales under company registration number 00971479 and with its registered office address at Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP.    THIS E-MAIL DOES NOT CONSTITUTE THE COMMENCEMENT OF LEGAL RELATIONS BETWEEN YOU AND MISYS INTERNATIONAL BANKING SYSTEMS LIMITED. PLEASE REFER TO THE EXECUTED CONTRACT BETWEEN YOU AND THE RELEVANT MEMBER OF THE MISYS GROUP FOR THE IDENTITY OF THE CONTRACTING PARTY WITH WHICH YOU ARE DEALING. 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: Font-lock decides function call is function declaration in C+ +
@ 2007-02-05 16:46 Marshall, Simon
  2007-02-22 23:47 ` Font-lock decides function call is function declaration in C+ + - embryonic solution Alan Mackenzie
  0 siblings, 1 reply; 8+ messages in thread
From: Marshall, Simon @ 2007-02-05 16:46 UTC (permalink / raw)
  To: 'Chong Yidong'
  Cc: 'bug-cc-mode@gnu.org', 'emacs-devel@gnu.org'

> Does this bug still exist with latest CVS?  If so, please provide a
> simple test case (I couldn't find one in your previous messages).

Yes, it does, with CVS Emacs as of 05/02/2007.  Originally, I couldn't
reproduce it on demand.  That's why, originally, I was asking for help to
track it down.

But, messing around just now, I've finally managed to do it.  I can't say
that these are the only way of reproducing it, as I've seen this
misfontification in a variety of situations that do not look obviously like
these.

1.  The goal is to write the code snippet:

int main() {
  foo();
  bar();
}

emacs -Q foo.cpp
int SPC main() SPC { RET } RET C-p C-o bar();

OK so far.  Now to insert the "foo();" line:

C-a C-o foo

At this point, "foo" is fontified as a type, and "bar" as a variable.  OK.
Now:

()

The fontification of "foo" and "bar" disappears.  OK.  Now complete the
snippet:

;

Now "foo" is fontified as a variable.  This is wrong.

2.  Here's a variation.  This time, the goal is to write the code snippet:

int main() {
  foo(fubar);
  bar();
}

emacs -Q bar.cpp
int SPC main() SPC { RET } RET C-p C-o bar();

OK so far.  Now to insert the "foo(fubar);" line:

C-a C-o foo(fubar

At this point, "bar" is fontified as a type.  Not sure why, but still.  Now:

);

Now "bar" is fontified as a variable.  This is wrong.

What is worse is that in both cases I cannot get rid of the misfontification
without turning Font Lock mode off and on again.

I hope this help to fix The Most Annoying Fontification Bug Ever.  Simon.


This email message is intended for the named recipient only. It may be privileged and/or confidential. If you are not the named recipient of this email please notify us immediately and do not copy it or use it for any purpose, nor disclose its contents to any other person.       Misys Banking Systems is a trading name of Misys International Banking Systems Limited which is registered in England and Wales under company registration number 00971479 and with its registered office address at Burleigh House, Chapel Oak, Salford Priors, Evesham WR11 8SP.    THIS E-MAIL DOES NOT CONSTITUTE THE COMMENCEMENT OF LEGAL RELATIONS BETWEEN YOU AND MISYS INTERNATIONAL BANKING SYSTEMS LIMITED. PLEASE REFER TO THE EXECUTED CONTRACT BETWEEN YOU AND THE RELEVANT MEMBER OF THE MISYS GROUP FOR THE IDENTITY OF THE CONTRACTING PARTY WITH WHICH YOU ARE DEALING. 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-03-06 10:49 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-27 15:08 Font-lock decides function call is function declaration in C+ + - embryonic solution Marshall, Simon
  -- strict thread matches above, loose matches on Subject: below --
2007-03-06 10:49 Marshall, Simon
2007-02-23 10:23 Marshall, Simon
2007-02-23 21:01 ` Alan Mackenzie
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

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).