emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#13450: closed (24.2; Manual gives arguments for li


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#13450: closed (24.2; Manual gives arguments for lisp-indent-function in wrong order)
Date: Wed, 16 Jan 2013 02:04:01 +0000

Your message dated Tue, 15 Jan 2013 21:03:22 -0500
with message-id <address@hidden>
and subject line Re: bug#13450: 24.2; Manual gives arguments for 
lisp-indent-function in wrong order
has caused the debbugs.gnu.org bug report #13450,
regarding 24.2; Manual gives arguments for lisp-indent-function in wrong order
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
13450: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13450
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- 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



--- End Message ---
--- Begin Message --- 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 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 24.2.93

Thanks; fixed.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]