all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: rudalics@gmx.at, emacs-devel@gnu.org
Subject: Re: AW: font-locking and open parens in column 0
Date: Sat, 04 Nov 2006 01:38:48 -0500	[thread overview]
Message-ID: <E1GgFB2-0003xI-4i@fencepost.gnu.org> (raw)
In-Reply-To: <DA6197CAE190A847B662079EF7631C0603407A89@OEKAW2EXVS03.hbi.ad.harman.com> (AMackenzie@harmanbecker.com)

    I agree with you.  :-)  However, my patch is to do with
    beginning-of-defun-raw, not font-locking.  Are you saying that
    open-paren-in-column-0-is-defun-start shouldn't exist at all?  When it is
    nil, a paren in column 0 may not, of itself, be regarded as a defun
    start.

    Richard, please say what you think about this.

I think it is correct to implement open-paren-in-column-0-is-defun-start
in the best way possible.  So please install your change.

However, it is also important to implement the font lock optimizations
as Stefan described them.  Can you do that now?  Also, warning about
misleading parens as Lisp mode does would be a good thing to implement
in C mode, whenever appropriate.

Stefan wrote:

    According to its docstring, the current behavior is correct:

       Normally a defun starts when there is a char with open-parenthesis
       syntax at the beginning of a line.

The purpose of open-paren-in-column-0-is-defun-start is to enable ot
disable this heuristic.  Setting it to nil disables the heuristic.
So I think his change is correct.

  parent reply	other threads:[~2006-11-04  6:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-03  8:44 AW: font-locking and open parens in column 0 Mackenzie, Alan
2006-11-03 14:02 ` martin rudalics
2006-11-03 14:14 ` Stefan Monnier
2006-11-04  6:38 ` Richard Stallman [this message]
2006-11-10 17:49   ` AW: " Stefan Monnier
2006-11-11  2:11     ` Richard Stallman
2006-11-11  4:52       ` Stefan Monnier
2006-11-12  5:14         ` Richard Stallman
2006-11-12  5:14         ` Richard Stallman
2006-11-12 19:45           ` martin rudalics
2006-11-13 17:16           ` 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=E1GgFB2-0003xI-4i@fencepost.gnu.org \
    --to=rms@gnu.org \
    --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.