From: Werner LEMBERG <wl@gnu.org>
Subject: problem with comment-start
Date: Fri, 17 Sep 2004 16:33:55 +0200 (CEST) [thread overview]
Message-ID: <20040917.163355.200397228.wl@gnu.org> (raw)
[emacs CVS 2004-08-22]
In plain text mode, setting the variable `comment-start' to, say, ">",
a long line like
This is a test with comment-start which starts on the >right side<, and which causes strange indentation
looks like this
This is a test with comment-start which starts on the >right side<,
>and which
>causes
>strange
>indentation
after pressing M-q.
Can this be improved? Right now these suggestions come to my mind:
. If `>' appears in column 12 or greater, don't treat it as
comment-start. This ad-hoc value should be customizable.
. If `>' appears in column 1-11, test the previous and next line
whether we also have `>' at the same position.
. Provide a new command within emacs, say, C-M-q, which is the same as
M-q in text mode, and which ignores `>'.
BTW, there isn't a single remark in the documentation of
`fill-paragraph' that it is influenced by the `comment-start'
variable.
Werner
next reply other threads:[~2004-09-17 14:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-17 14:33 Werner LEMBERG [this message]
2004-09-18 18:50 ` problem with comment-start Stefan
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=20040917.163355.200397228.wl@gnu.org \
--to=wl@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.