GNU bug report logs - #67462
30.0.50; prog-fill-reindent-defun does not respect buffer-local fill-paragraph-function

Previous Next

Package: emacs;

Reported by: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>

Date: Sun, 26 Nov 2023 21:10:02 UTC

Severity: normal

Found in version 30.0.50

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
Cc: 67462 <at> debbugs.gnu.org, dmitry <at> gutov.dev
Subject: Re: bug#67462: 30.0.50; prog-fill-reindent-defun does not respect
 buffer-local fill-paragraph-function
Date: Mon, 27 Nov 2023 22:55:48 +0200
> From: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
> Cc: 67462 <at> debbugs.gnu.org,  dmitry <at> gutov.dev
> Date: Mon, 27 Nov 2023 21:08:32 +0100
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >>   cfengine-fill-paragraph
> >>   f90-fill-paragraph
> >>   fortran-fill-paragraph
> >>   makefile-fill-paragraph
> >>   octave-fill-paragraph
> >>
> >> I could be wrong with that list, though, and I cannot tell how useful
> >> these functions are outside of comments.  I just looked at docstrings or
> >> for a prominent
> >>
> >>   (or (fill-comment-paragraph justify)
> >>       (do-something ...))
> >>
> >> pattern.
> >
> > What would it take to teach prog-fill-reindent-defun to DTRT outside
> > comments and strings?

(I meant "inside", sorry.)

> IMO the problem here is that some modes already have an idea of what
> could be TRT outside comments and strings, implemented in a
> mode-specific fill-paragraph-function.

But isn't filling inside comments and strings basically very similar
in these modes?




This bug report was last modified 1 year and 199 days ago.

Previous Next


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