all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: rms@gnu.org
Cc: dto@gnu.org, emacs-devel@gnu.org
Subject: Re: comment-add
Date: Mon, 10 Dec 2007 20:41:16 +0100	[thread overview]
Message-ID: <87sl2agwwz.fsf@member.fsf.org> (raw)
In-Reply-To: <E1J1kPe-0005gC-Jo@fencepost.gnu.org> (Richard Stallman's message of "Mon, 10 Dec 2007 10:19:18 -0500")

Richard Stallman <rms@gnu.org> writes:

>     Maybe we could all be happy if we change the new behavior to
>     insert three semicolons followed by two spaces?
>
> I finally had time to look at this.  The Lisp mode outline-regexp
> matches three or more semicolons followed by one space followed by
> something which is not space, tab or newline.
>
> Can you show me a precise test case in which comment-dwim produces
> lines that match this?

If I comment text that starts at column 0 (a top-level sexp) like this

;;; (defun foo ()
;;;   (do-this)
;;;   (do-that)
;;;   (do-another-thing))

with comment-style set to indent-or-triple it results in the first line
being matched by outline-regexp.  With comment-style set to indent,
which inserts only two semicolons, this is not the case.  I don't know
if it's good to have commented top-level sexps as outline regexps.

comment-dwim for text that doesn't start in line 0 seems to always
produce comments that are not matched by outline-regexp, because the ;;;
is followed by more than one space.

Bye,
Tassilo

  reply	other threads:[~2007-12-10 19:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-24 22:55 comment-add Stephen Berman
2007-09-25  9:39 ` comment-add David O'Toole
2007-09-25 23:35   ` comment-add Richard Stallman
2007-11-06 20:59     ` comment-add Tassilo Horn
2007-12-10 15:19       ` comment-add Richard Stallman
2007-12-10 19:41         ` Tassilo Horn [this message]
2007-12-11 19:00           ` comment-add Richard Stallman
2007-12-11 20:34             ` comment-add Tassilo Horn
2007-12-15 21:36               ` comment-add Richard Stallman
2007-09-25 16:07 ` comment-add Stefan Monnier
2007-09-25 21:48   ` comment-add Eli Zaretskii
2007-09-25 17:57 ` comment-add Richard Stallman
2007-09-25 22:27   ` comment-add Leo

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=87sl2agwwz.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=dto@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    /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.