unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: npostavs@users.sourceforge.net
To: Gdobbins <gdobbins@protonmail.com>
Cc: 26187@debbugs.gnu.org
Subject: bug#26187: Bug in indent-sexp
Date: Mon, 20 Mar 2017 23:22:00 -0400	[thread overview]
Message-ID: <87efxr48mf.fsf@users.sourceforge.net> (raw)
In-Reply-To: <-iDEz7yrUNQWwYmF4xO2BH0kpMyXZgRqrVS8anx9AHokVQfBUOrX9KeT6cPcvO6W2IJ0KS10B9I6tDoFrsZ-BUACXFyWDk2Ny2L44xx-e1c=@protonmail.com> (gdobbins@protonmail.com's message of "Mon, 20 Mar 2017 16:00:49 -0400")

tags 26187 patch
quit

Gdobbins <gdobbins@protonmail.com> writes:

> Sure. In the form:
> 
> (defun lisp-indent-defform (state _indent-point)
>   (goto-char (car (cdr state)))
>   (forward-line 1)
>   (if (> (point) (car (cdr (cdr state))))|
>       (progn
>         (goto-char (car (cdr state)))
>         (+ lisp-body-indent (current-column)))))
> 
> where | is point, call indent-sexp and the result will be
> 
> (defun lisp-indent-defform (state _indent-point)
>   (goto-char (car (cdr state)))
>   (forward-line 1)
>   (if (> (point) (car (cdr (cdr state))))|
> (progn
>   (goto-char (car (cdr state)))
>   (+ lisp-body-indent (current-column)))))
> 
> which is incorrect.

Hmm, the original behaviour is that no indentation happens at all which
seems kind of odd to me.  But that's better than breaking things I
guess.  Have you done copyright assignment for Emacs, or should I mark
your patch as a tiny change?





  reply	other threads:[~2017-03-21  3:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-20  1:18 bug#26187: Bug in indent-sexp Gdobbins
2017-03-20 13:20 ` npostavs
2017-03-20 20:00   ` Gdobbins
2017-03-21  3:22     ` npostavs [this message]
2017-03-21  4:24       ` Gdobbins
2017-03-22  0:49 ` npostavs

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87efxr48mf.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=26187@debbugs.gnu.org \
    --cc=gdobbins@protonmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).