unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#13450: 24.2; Manual gives arguments for lisp-indent-function in wrong order
@ 2013-01-15 13:39 Gareth Rees
  2013-01-16  2:03 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Gareth Rees @ 2013-01-15 13:39 UTC (permalink / raw)
  To: 13450

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





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

* bug#13450: 24.2; Manual gives arguments for lisp-indent-function in wrong order
  2013-01-15 13:39 bug#13450: 24.2; Manual gives arguments for lisp-indent-function in wrong order Gareth Rees
@ 2013-01-16  2:03 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2013-01-16  2:03 UTC (permalink / raw)
  To: 13450-done

Version: 24.2.93

Thanks; fixed.





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

end of thread, other threads:[~2013-01-16  2:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-15 13:39 bug#13450: 24.2; Manual gives arguments for lisp-indent-function in wrong order Gareth Rees
2013-01-16  2:03 ` Glenn Morris

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).