GNU bug report logs - #55040
29.0.50; Auto-indent-mode and Changelog Messages

Previous Next

Package: emacs;

Reported by: Philip Kaludercic <philipk <at> posteo.net>

Date: Wed, 20 Apr 2022 14:31:01 UTC

Severity: normal

Found in version 29.0.50

Full log


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

From: Philip Kaludercic <philipk <at> posteo.net>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 55040 <at> debbugs.gnu.org
Subject: Re: bug#55040: 29.0.50; Auto-indent-mode and Changelog Messages
Date: Wed, 20 Apr 2022 17:08:20 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: Philip Kaludercic <philipk <at> posteo.net>
>> Date: Wed, 20 Apr 2022 14:30:17 +0000
>> 
>> 
>> When writing change logs in log-edit-mode, I have auto-fill-mode enabled
>> because 1. I find it convenient and 2. it derives from text mode.  It
>> has been pointed out to me that this leads to indentation issues, where
>> a change log entry is interpreted to be an unordered list.  So instead
>> of
>> 
>> --8<---------------cut here---------------start------------->8---
>> * lisp/vc/diff-mode.el (diff-add-log-current-defuns): Check
>> vc-root-dir to prepend the project path to the file being modified.
>> --8<---------------cut here---------------end--------------->8---
>> 
>> the messages is automatically formatted like
>> 
>> --8<---------------cut here---------------start------------->8---
>> * lisp/vc/diff-mode.el (diff-add-log-current-defuns): Check
>>   vc-root-dir to prepend the project path to the file being modified.
>> --8<---------------cut here---------------end--------------->8---
>> 
>> as soon as the line exceeds the fill column.
>
> I always use auto-fill-mode in ChangeLog buffers, and it never does
> anything like what you described for me.  Can you show a recipe
> starting from "emacs -Q" that shows this problem?

1. Start emacs -Q
2. Open any versioned file
3. Make any modification
4. Prepare a commit using C-x v v
5. Go to the commit body and insert ChangeLog template
6. Ensure that auto-fill-mode is enabled in the buffer
7. Type anything until the fill-column is reached

I did 7. by just repeating the word "word", and after a short while it
auto-filled the line and the text appeared formatted as described above.

-- 
	Philip Kaludercic




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

Previous Next


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