GNU bug report logs - #13450
24.2; Manual gives arguments for lisp-indent-function in wrong order

Previous Next

Package: emacs;

Reported by: Gareth Rees <gdr <at> garethrees.org>

Date: Tue, 15 Jan 2013 13:42:02 UTC

Severity: minor

Found in version 24.2

Fixed in version 24.2.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13450 in the body.
You can then email your comments to 13450 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13450; Package emacs. (Tue, 15 Jan 2013 13:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gareth Rees <gdr <at> garethrees.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 15 Jan 2013 13:42:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gareth Rees <gdr <at> garethrees.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2; Manual gives arguments for lisp-indent-function in wrong order
Date: Tue, 15 Jan 2013 13:39:48 +0000
In GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36):

The section "Indenting Macros" in the Emacs Lisp Reference Manual [1] says
that if INDENT-SPEC is a symbol, then 

    SYMBOL should be a function name; that function is called to
    calculate the indentation of a line within this expression.  The
    function receives two arguments:

    STATE
          The value returned by `parse-partial-sexp' (a Lisp primitive
          for indentation and nesting computation) when it parses up to
          the beginning of this line.

    POS
          The position at which the line being indented begins.

However, the function actually receives these arguments in the other
order. In particular, in lisp-indent-function in lisp-mode.el [2] the
INDENT-SPEC method is called like this:

		(funcall method indent-point state)))))))

I suggest that the Emacs Lisp Reference Manual be updated to match the
code.

[1] http://www.gnu.org/software/emacs/manual/html_node/elisp/Indenting-Macros.html
[2] http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/emacs-lisp/lisp-mode.el#n1215

-- 
Gareth Rees




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 16 Jan 2013 02:04:01 GMT) Full text and rfc822 format available.

Notification sent to Gareth Rees <gdr <at> garethrees.org>:
bug acknowledged by developer. (Wed, 16 Jan 2013 02:04:01 GMT) Full text and rfc822 format available.

Message #10 received at 13450-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 13450-done <at> debbugs.gnu.org
Subject: Re: bug#13450: 24.2;
	Manual gives arguments for lisp-indent-function in wrong order
Date: Tue, 15 Jan 2013 21:03:22 -0500
Version: 24.2.93

Thanks; fixed.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 13 Feb 2013 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 132 days ago.

Previous Next


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