From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gareth Rees Newsgroups: gmane.emacs.bugs Subject: bug#13450: 24.2; Manual gives arguments for lisp-indent-function in wrong order Date: Tue, 15 Jan 2013 13:39:48 +0000 Message-ID: <6418F4E6-E06B-424B-AEEC-453B59F115EB@garethrees.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358257314 13263 80.91.229.3 (15 Jan 2013 13:41:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jan 2013 13:41:54 +0000 (UTC) To: 13450@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jan 15 14:42:11 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tv6m8-00033n-Fo for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jan 2013 14:42:00 +0100 Original-Received: from localhost ([::1]:57664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv6ls-0004tb-67 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jan 2013 08:41:44 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv6ln-0004tN-Nx for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 08:41:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tv6lh-0000q3-CG for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 08:41:39 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv6lh-0000py-8i for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 08:41:33 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Tv6mA-00059p-CI for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 08:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gareth Rees Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Jan 2013 13:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13450 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.135825726419750 (code B ref -1); Tue, 15 Jan 2013 13:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 15 Jan 2013 13:41:04 +0000 Original-Received: from localhost ([127.0.0.1]:32845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tv6lC-00058Q-3X for submit@debbugs.gnu.org; Tue, 15 Jan 2013 08:41:03 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53413) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Tv6l6-000580-0p for submit@debbugs.gnu.org; Tue, 15 Jan 2013 08:40:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tv6kS-0000VC-8x for submit@debbugs.gnu.org; Tue, 15 Jan 2013 08:40:26 -0500 Original-Received: from lists.gnu.org ([208.118.235.17]:37150) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv6kS-0000V1-4X for submit@debbugs.gnu.org; Tue, 15 Jan 2013 08:40:16 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:36309) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv6kL-0003aT-FE for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 08:40:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tv6kE-0000Dg-CV for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 08:40:09 -0500 Original-Received: from raven.ravenbrook.com ([94.229.129.33]:40324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tv6kE-00008d-34 for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 08:40:02 -0500 Original-Received: from [172.30.64.198] (ravenbrook.nsdsl.net [80.248.191.199]) (authenticated bits=0) by raven.ravenbrook.com (8.14.5/8.14.5) with ESMTP id r0FDdrRg005544 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 15 Jan 2013 13:39:54 GMT (envelope-from gdr@garethrees.org) X-Mailer: Apple Mail (2.1499) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (raven.ravenbrook.com [94.229.129.33]); Tue, 15 Jan 2013 13:39:54 +0000 (GMT) X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:69805 Archived-At: 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=20 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 --=20 Gareth Rees