unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Juri Linkov <juri@linkov.net>
Cc: 50406@debbugs.gnu.org
Subject: bug#50406: fill-paragraph error
Date: Mon, 22 Aug 2022 22:46:33 +0200	[thread overview]
Message-ID: <875yikvweu.fsf@gnus.org> (raw)
In-Reply-To: <87lf4bxoq5.fsf@mail.linkov.net> (Juri Linkov's message of "Sun,  05 Sep 2021 19:10:10 +0300")

Juri Linkov <juri@linkov.net> writes:

> Please try to open the attached file in emacs -Q, and after moving point
> to the beginning of the 3rd line, type 'M-q'.  When debug-on-error is t,
> it fails with such backtrace:
>
> Debugger entered--Lisp error: (error "Invalid search bound (wrong side
> of point)")
>   re-search-backward("[ \11]\\|\\c|.\\|.\\c|" 280 0)
>   fill-move-to-break-point(280)
>   fill-region-as-paragraph(184 210 nil nil 186)
>   fill-comment-paragraph(nil)
>   fill-paragraph(nil t)
>   funcall-interactively(fill-paragraph nil t)
>   command-execute(fill-paragraph)

This doesn't happen now in Emacs 29.  Instead I get:

abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc ; def
											    ; def
											    ; def
											    ; def
											    ; def
											    ; ghi

Is that the result we're supposed to get, though?  I'm not at all sure
how fill-paragraph/comment-start are supposed to interact here.






  parent reply	other threads:[~2022-08-22 20:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05 16:10 bug#50406: fill-paragraph error Juri Linkov
2021-09-06  9:18 ` Lars Ingebrigtsen
2021-09-06 15:14   ` Juri Linkov
2022-08-22 20:46 ` Lars Ingebrigtsen [this message]
2022-08-23  7:35   ` Juri Linkov
2022-08-23 10:46     ` Lars Ingebrigtsen

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=875yikvweu.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=50406@debbugs.gnu.org \
    --cc=juri@linkov.net \
    /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).