From: Matthias Schmitt <male.schmitt@posteo.de>
To: emacs-devel@gnu.org
Subject: Re: Fix fill-flowed for large or nil values of fill-flowed-display-column
Date: Thu, 27 Jan 2022 13:36:53 +0000 [thread overview]
Message-ID: <871r0ts3fs.fsf@posteo.de> (raw)
In-Reply-To: <875yq5s6lh.fsf@posteo.de>
The previous patch broke `fill-flow` for quoted text a
`beginning-of-line` call fixes that.
--- #<buffer flow-fill.el.gz>
+++ #<buffer flow-fill.buffer>
@@ -140,11 +140,11 @@
;; next line.
(delete-region (point) (match-end 1))
(ignore-errors
- (let ((fill-prefix (concat prefix " "))
- adaptive-fill-mode)
- (fill-region (line-beginning-position)
- (line-end-position)
- 'left 'nosqueeze))))))
+ (let ((fill-prefix (concat prefix " "))
+ adaptive-fill-mode)
+ (fill-region (line-beginning-position)
+ (line-end-position)
+ 'left 'nosqueeze))))))
(t
;; Delete the newline.
(when (eq (following-char) ?\s)
@@ -157,11 +157,13 @@
(delete-char -1))
(delete-char 1)
(ignore-errors
- (let ((fill-prefix ""))
- (fill-region (line-beginning-position)
- (line-end-position)
- 'left 'nosqueeze))))))
- (forward-line 1)))))
+ (let ((fill-prefix ""))
+ (fill-region (line-beginning-position)
+ (line-end-position)
+ 'left 'nosqueeze))))))
+ (unless (eq (char-before (line-end-position)) ?\s)
+ (forward-line 1))
+ (beginning-of-line)))))
(make-obsolete-variable 'fill-flowed-encode-tests nil "27.1")
(defvar fill-flowed-encode-tests)
prev parent reply other threads:[~2022-01-27 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-27 12:13 Fix fill-flowed for large or nil values of fill-flowed-display-column Matthias Schmitt
2022-01-27 13:36 ` Matthias Schmitt [this message]
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.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871r0ts3fs.fsf@posteo.de \
--to=male.schmitt@posteo.de \
--cc=emacs-devel@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.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).