From: martin rudalics <rudalics@gmx.at>
To: David Reitter <david.reitter@gmail.com>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: longlines-mode and comments
Date: Thu, 29 Nov 2007 11:34:15 +0100 [thread overview]
Message-ID: <474E95A7.4090807@gmx.at> (raw)
In-Reply-To: <3E823B74-5830-445A-8DEE-51A4AB4AFB44@gmail.com>
> emacs-lisp-mode, or latex-mode (AUCTeX)
>
> Turn on longlines-mode.
>
> Paste a long line (paragraph in the long-lines sense) into the buffer,
> which should be wrapped correctly and displayed as a paragraph of text.
>
> Select the entire paragraph and call `comment-region'.
>
> Result: The comment mark (;; or % or whatever) is placed all over the
> lines, and only the first line has it in the right place, i.e. at the
> beginning.
>
> (Also, when `longlines-wrap-follows-window-size' is turned on, then the
> line/paragraph is reformatted.)
>
> The expected (correct) behavior would be to add the comment command at
> the beginning of the line in the file, i.e. at the beginning of the
> paragraph, that is, after each hard return.
>
> Note that the other expected thing there is that the syntax
> highlighting (font-lock) works, i.e. that the whole comment is shown
> using the right face. This, IMHO, is a second bug.
It's hardly trivial. Have a look at the thread starting with:
http://lists.gnu.org/archive/html/emacs-devel/2006-11/msg00634.html
next prev parent reply other threads:[~2007-11-29 10:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-28 16:02 longlines-mode and comments David Reitter
2007-11-29 10:34 ` martin rudalics [this message]
2007-11-30 7:22 ` David Reitter
2007-11-30 16:48 ` Richard Stallman
2007-12-17 18:40 ` David Reitter
2007-12-17 22:11 ` martin rudalics
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=474E95A7.4090807@gmx.at \
--to=rudalics@gmx.at \
--cc=bug-gnu-emacs@gnu.org \
--cc=david.reitter@gmail.com \
/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.