emacs-devel
[Top][All Lists]
Advanced

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

Wrong indentation of defun with indent-region


From: Peter Vasil
Subject: Wrong indentation of defun with indent-region
Date: Sun, 30 Apr 2017 18:31:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0

Hello,

Since commit 6fa9cc0593150a318f0e08e69ec10672d548a7c1 indent-region
doesn't indent correctly a defun when docstring is more than one line.

Reproduction:

(defun test ()
  "Test.
Two lines docstring."
  (message "Test"))

With cursor somewhere in the function and after M-x mark-defun RET and
M-x indent-region RET is this the result:


(defun test-func ()
  "Test func.
Two lines docstring."
       (message "Test"))

However if the docstring is only one line the indentation stays correct.

Regards,
Peter Vasil




reply via email to

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