From: Richard Stallman <rms@gnu.org>
Cc: bug-cc-mode@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: font-locking and open parens in column zero
Date: Mon, 18 Sep 2006 19:40:01 -0400 [thread overview]
Message-ID: <E1GPSiX-00066R-PW@fencepost.gnu.org> (raw)
In-Reply-To: <450DBA93.6000705@gmx.at> (message from martin rudalics on Sun, 17 Sep 2006 23:13:55 +0200)
> I suppose so -- and isn't the feature available for C?
> When Emacs does get confused about a ( in C mode,
> does it show that ( in red?
It can't. C mode uses its own `beginning-of-defun-function' and Emacs
doesn't bother in that case (font-lock isn't clairvoyant).
Where is the code which does this? We could look at making it
handle the case where there is a beginning-of-defun-function,
if you show me which code would need to be changed.
> My point is that the ( usually does not appear in red
> because Emacs usually does not get confused by it.
With `syntax-ppss' Emacs usually doesn't get confused for Elisp either.
It will get confused iff it has to use `beginning-of-defun' when there's
no suitable cache entry. Hence, whatever holds for Elisp holds for C.
I can't follow what you are saying. It sounds like you are saying that
this feature does NOT work as designed either for Lisp or for C.
Is that what you mean?
If so, can you provide a complete self-contained description of the
problem? That is what I need in order to understand.
Can you provide a test case for the problem?
-------------------------------------------------------------------------
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
next prev parent reply other threads:[~2006-09-18 23:40 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-10 10:09 font-locking and open parens in column zero martin rudalics
2006-09-10 18:52 ` Richard Stallman
2006-09-11 13:05 ` martin rudalics
2006-09-11 14:18 ` Stefan Monnier
2006-09-12 2:01 ` Richard Stallman
2006-09-14 8:41 ` martin rudalics
2006-09-17 15:12 ` Richard Stallman
2006-09-17 21:13 ` martin rudalics
2006-09-18 23:40 ` Richard Stallman [this message]
2006-09-19 9:00 ` martin rudalics
2006-09-23 3:34 ` Richard Stallman
2006-09-23 14:55 ` martin rudalics
2006-09-24 2:10 ` Richard Stallman
2006-09-24 9:42 ` martin rudalics
2006-09-25 0:46 ` Stefan Monnier
2006-09-25 8:05 ` martin rudalics
2006-09-25 3:17 ` Richard Stallman
2006-09-25 8:10 ` martin rudalics
2006-09-10 19:26 ` 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=E1GPSiX-00066R-PW@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=bug-cc-mode@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.