GNU bug report logs - #26187
Bug in indent-sexp

Previous Next

Package: emacs;

Reported by: Gdobbins <gdobbins <at> protonmail.com>

Date: Mon, 20 Mar 2017 06:07:02 UTC

Severity: normal

Tags: fixed, patch

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Gdobbins <gdobbins <at> protonmail.com>
To: npostavs <at> users.sourceforge.net
Cc: 26187 <at> debbugs.gnu.org
Subject: bug#26187: Bug in indent-sexp
Date: Mon, 20 Mar 2017 16:00:49 -0400
[Message part 1 (text/plain, inline)]
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.

-- Graham Dobbins
[Message part 2 (text/html, inline)]

This bug report was last modified 8 years and 156 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.