From: Yu <yu_icq@gmx.at>
To: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: [BUG]? \\ and `fill-paragraph'
Date: Mon, 30 Jan 2012 16:50:49 +0100 [thread overview]
Message-ID: <CANtbJLGp28sTTg8=HrjP=norCzGaorNGJ0uK9i+=qw91H+MLXg@mail.gmail.com> (raw)
Hello!
When using "\\" to force linebreaks, these potentially get lost when
reformatting the paragraph with Alt+Q (fill paragraph).
Given an input
: - long sentence long sentence
: long sentence long sentence
: long sentence long sentence
: long sentence: \\
: Next line.
pressing Alt+Q (`fill-paragraph') I'd expect to get
: - long sentence long sentence long sentence long sentence long
: sentence long sentence long sentence: \\
: Next line.
but what I get is
: - long sentence long sentence long sentence long sentence long
: sentence long sentence long sentence: \\ Next line.
This is a problem especially as a "\\" anywhere but at the end of the
line is exported literally (i.e. `fill-paragraph' changes both the
appearance in emacs and in exported formats).
The Problem occurs in the opposite direction too: If a "\\" is m e a
n t to occur literally it can end up at the end of a line and thus be
interpreted as a line break.
The problem can be partially avoided by marking each "line" and /then/
pressing Alt+Q, but it is inconvinient and hinders fille-wide
reformatting (e.g. when the variable `fill-column' has changed).
next reply other threads:[~2012-01-30 15:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-30 15:50 Yu [this message]
2012-01-30 22:18 ` [BUG]? \\ and `fill-paragraph' Nicolas Goaziou
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANtbJLGp28sTTg8=HrjP=norCzGaorNGJ0uK9i+=qw91H+MLXg@mail.gmail.com' \
--to=yu_icq@gmx.at \
--cc=emacs-orgmode@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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).