[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30393: [PATCH] Add a test to verify that the bug is gone (and a fix

From: Harald Jörg
Subject: bug#30393: [PATCH] Add a test to verify that the bug is gone (and a fix for Emacs 26)
Date: Tue, 03 Nov 2020 14:45:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

This bug had a rather long discussion, but apparently no conclusion so
far.  I found that the indentation is correct in Emacs 27 and 28, so
apparently it has been fixed elsewhere.  The patch contains a test
(suitable for cperl-mode and perl-mode) to verify correct indentation
for the example source code from the bug report.

In Emacs 26 the bug still exists.  I find it serious enough to add the
workaround given by Noam Postavsky in the discussion of Bug#25480.  When
the opening paren in column 0 is within a string variable (as it is in
the code from the bug report), indenting changed the value of that
variable.  This should not be allowed to happen.

Attachment: 0001-cperl-mode-Fix-indentation-for-Emacs-26-Bug-30393.patch
Description: Fix indentation for Emacs 26

reply via email to

[Prev in Thread] Current Thread [Next in Thread]