From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lute Kamstra Newsgroups: gmane.emacs.devel Subject: Lisp indentation. Date: Thu, 10 Mar 2005 19:26:20 +0100 Message-ID: <87mztbmk6r.fsf@xs4all.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110480269 31970 80.91.229.2 (10 Mar 2005 18:44:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 10 Mar 2005 18:44:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 10 19:44:29 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D9Sdx-0002CY-TY for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2005 19:44:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9Sst-00040Q-AL for ged-emacs-devel@m.gmane.org; Thu, 10 Mar 2005 13:59:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D9Sp8-000280-D2 for emacs-devel@gnu.org; Thu, 10 Mar 2005 13:55:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D9Sou-00022d-56 for emacs-devel@gnu.org; Thu, 10 Mar 2005 13:55:40 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D9Sos-0001ud-W5 for emacs-devel@gnu.org; Thu, 10 Mar 2005 13:55:39 -0500 Original-Received: from [194.109.24.25] (helo=smtp-vbr5.xs4all.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D9SMX-0003Tu-GC for emacs-devel@gnu.org; Thu, 10 Mar 2005 13:26:21 -0500 Original-Received: from pijl (a80-127-67-124.adsl.xs4all.nl [80.127.67.124]) by smtp-vbr5.xs4all.nl (8.12.11/8.12.11) with ESMTP id j2AIQLUY038401 for ; Thu, 10 Mar 2005 19:26:21 +0100 (CET) (envelope-from Lute.Kamstra@xs4all.nl) Original-Received: from lute by pijl with local (Exim 3.36 #1 (Debian)) id 1D9SMW-0000Yr-00 for ; Thu, 10 Mar 2005 19:26:20 +0100 Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Original-Lines: 20 X-Virus-Scanned: by XS4ALL Virus Scanner X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: news.gmane.org gmane.emacs.devel:34427 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:34427 I was trying to give (with-no-warnings ...) the same indentation as (progn ...). Now I have a few question: In about 25% of the cases the lisp-indent-hook property is used to specify the desired indentation and in the remaining 75% of the cases, the lisp-indent-function property is used. Is the second preferred? (The docsting of the function lisp-indent-function suggest this.) Should occurrences of lisp-indent-hook be renamed to lisp-indent-function? In most cases the indentation property is put on the symbol at the place the symbol is defined. Symbols that are defined in C get their indentation property in lisp/emacs-lisp/lisp-mode.el. There are however a few symbols that are defined in lisp elsewhere that get their lisp-indent-function property set in lisp-mode.el. For example save-selected-window, save-match-data, and with-current-buffer. Is there some policy wrt the place where the indentation property should be set? Lute.