all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Peter Vasil <mailing_lists@petervasil.net>
To: emacs-devel@gnu.org
Subject: Wrong indentation of defun with indent-region
Date: Sun, 30 Apr 2017 18:31:37 +0200	[thread overview]
Message-ID: <oe53h3$66a$1@blaine.gmane.org> (raw)

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	other threads:[~2017-04-30 16:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-30 16:31 Peter Vasil [this message]
2017-04-30 16:51 ` Wrong indentation of defun with indent-region Peter Vasil
2017-04-30 17:58 ` Noam Postavsky
2017-04-30 18:34   ` Peter Vasil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='oe53h3$66a$1@blaine.gmane.org' \
    --to=mailing_lists@petervasil.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.