GNU bug report logs - #20777
24.4; sh-mode: fill-paragraph does not recognize EOF

Previous Next

Package: emacs;

Reported by: Daniel Hornung <daniel.hornung <at> ds.mpg.de>

Date: Tue, 9 Jun 2015 15:11:02 UTC

Severity: minor

Tags: confirmed, wontfix

Found in versions 24.5, 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 20777 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Daniel Hornung <daniel.hornung <at> ds.mpg.de>
Cc: 20777 <at> debbugs.gnu.org
Subject: Re: bug#20777: 24.4; sh-mode: fill-paragraph does not recognize EOF
Date: Sun, 08 May 2022 14:14:49 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Which is certainly odd, but...
>
> echo foo
> echo foo
> echo foo
>
> M-q on that and you get
>
> echo foo echo foo echo foo
>
> That is, it's not clear that `M-q' in shell mode is that well defined,
> and what it does in EOF sections isn't inconsistent with what it does
> elsewhere...
>
> Anybody got an opinion?

I think the conclusion here is that (as in most programming modes),
filling isn't really implemented at all -- using the filling commands in
most programming modes won't fill according to the syntax rules of the
language.

So this just isn't something we support (until somebody does filling
based on LSP/tree-sitter), so I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 19 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.