all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Wrong indentation of defun with indent-region
@ 2017-04-30 16:31 Peter Vasil
  2017-04-30 16:51 ` Peter Vasil
  2017-04-30 17:58 ` Noam Postavsky
  0 siblings, 2 replies; 4+ messages in thread
From: Peter Vasil @ 2017-04-30 16:31 UTC (permalink / raw)
  To: emacs-devel

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-30 18:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-30 16:31 Wrong indentation of defun with indent-region Peter Vasil
2017-04-30 16:51 ` Peter Vasil
2017-04-30 17:58 ` Noam Postavsky
2017-04-30 18:34   ` Peter Vasil

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.