From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#49558: fill paragraph in texinfo-mode fails with @ Date: Wed, 14 Jul 2021 09:47:11 +0200 Message-ID: <87h7gxmj5s.fsf@gnus.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38699"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49558@debbugs.gnu.org To: lisa-asket@perso.be Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 14 09:48:11 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3Zco-0009rd-S2 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 09:48:10 +0200 Original-Received: from localhost ([::1]:33832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3Zcn-0007ki-3l for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Jul 2021 03:48:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43712) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3Zcg-0007k3-3X for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 03:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59450) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3Zcf-0006Kj-Rk for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 03:48:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3Zcf-0005yo-Mk for bug-gnu-emacs@gnu.org; Wed, 14 Jul 2021 03:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Jul 2021 07:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49558 X-GNU-PR-Package: emacs Original-Received: via spool by 49558-submit@debbugs.gnu.org id=B49558.162624884722918 (code B ref 49558); Wed, 14 Jul 2021 07:48:01 +0000 Original-Received: (at 49558) by debbugs.gnu.org; 14 Jul 2021 07:47:27 +0000 Original-Received: from localhost ([127.0.0.1]:42757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3Zc7-0005xa-0w for submit@debbugs.gnu.org; Wed, 14 Jul 2021 03:47:27 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:40206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3Zc2-0005xF-DO for 49558@debbugs.gnu.org; Wed, 14 Jul 2021 03:47:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7YTXlHhsDr7EM+aDRT+yhI58Z9gyc4dEJ5kM4nfbSUs=; b=lEDIUDEdawxfRSRz5F/fzDFBVZ Z8IVGxemKnW5x6ucqXp36Dl4URk5JTYHCNJymhD5UZwNLyNwqS7R/5wS9Pg5itsdIsmSkL5fCgP0V 5ey91ivHVxlbWu+CuR6rFRfQHNUFezkd5AGN8pZ6XvDrLhAC7N8dMvpvwKvRwqccuB1Q=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m3Zbs-00018U-62; Wed, 14 Jul 2021 09:47:14 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEWYko+IgX2CfHhj XFlEPTsQCgsuKCb///+EZiqRAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UHDgcoBmnTlqgAAAGbSURB VDjLrdLBcuMgDABQZdvp2Yn7A4n3A9qI+twZhM6daeDcGYP+/xMqwLhx3OxpdYHkjRDIgt2ALoow x6irc85bxB47OCCmyRpDRGOkkY3CKcO+x+RXYYcj7DRjC/jaAcCu/3sDE56OO4D9adhknAsc+k0G HvsO/uBtjaigNQ5DhUCI3OAMHfRzhsUO+3EGLa8Zg6uAaLhBf85QMiJJ5NQAcamxKo4D5hpuC4hL 8Wswd8DQL5AWGNBcQchACgS4gQuRNQrmB6ILrgKtwRpxuWs5wNACEkcqIAUkQyg3msbpTfesOVGB Zgju4gpIDmCSBmm+VeQMelw7ao4LSQVeHjEv9SiRtPzPC6SgYG1p5xGegvgPnbSHXAt8etEZyqMH j/r7S9cHSe+PkDtm9IO/HvbTkxYekFlsRGAvEvRYvePLmw/PpXL0HrTJLCy510Yrf1K5bPJANfL0 uDotRTyU+6WyXwX4O/Ev0GfpA8L/OOqqt/lzeCm7exlyB8JtjZ/ZW0NIjfOHmmNdIuQmcrPYdvro mkGx9phtE/kGW3RYtTjs+U0AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDctMTRUMDc6NDA6MDYr MDA6MDCsZ05dAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA3LTE0VDA3OjQwOjA2KzAwOjAw3Tr2 4QAAAABJRU5ErkJggg== X-Now-Playing: David Bowie's _The Width of a Circle (2)_: "All The Madmen (Single Edit) [2020 Mix]" In-Reply-To: (lisa-asket@perso.be's message of "Wed, 14 Jul 2021 05:57:23 +0200 (CEST)") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:209907 Archived-At: lisa-asket@perso.be writes: > I am using `M-q` to fill my paragraphs. I have noticed that in texinfo-m= ode, > doing `M-q` on a paragraph starting with `@` does not refill the paragrap= h. > > This occurs in instances such as > > @noindent Everyone is permitted to copy and distribute verbatim > copies of this license document, but changing it is not allowed. This is because texinfo-mode regards almost any line that starts with a @ as a paragraph separator, so forward-paragraph etc doesn't work properly on those lines. The following patch fixes the problem, but I'm not sure this is the correct thing, but the manual says: -- Lines that start a new paragraph and are contained in it must match only =E2=80=98paragraph-start=E2=80=99, not =E2=80=98paragraph-separate=E2=80=99.=20 -- So I think it is? But this code has been basically like this for decades... anybody got any comments about why it is like it is today? diff --git a/lisp/textmodes/texinfo.el b/lisp/textmodes/texinfo.el index 11d60e1eb0..311b2055ed 100644 --- a/lisp/textmodes/texinfo.el +++ b/lisp/textmodes/texinfo.el @@ -411,9 +411,6 @@ texinfo-mode "\\)\\>")) (setq-local require-final-newline mode-require-final-newline) (setq-local indent-tabs-mode nil) - (setq-local paragraph-separate - (concat "@[a-zA-Z]*[ \n]\\|" - paragraph-separate)) (setq-local paragraph-start (concat "@[a-zA-Z]*[ \n]\\|" paragraph-start)) (setq-local sentence-end-base "\\(@\\(end\\)?dots{}\\|[.?!]\\)[]\"'=E2= =80=9D)}]*") --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no