From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Tabs and Spaces Date: Tue, 26 May 2009 15:03:09 -0700 Message-ID: References: <77vbbiF1jhhubU1@mid.individual.net><780hs5F1jleh1U1@mid.individual.net> <87r5ycu0w6.fsf@galatea.local> <7835dsF1kbm4vU1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1243375403 24326 80.91.229.12 (26 May 2009 22:03:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 22:03:23 +0000 (UTC) To: "'Chris Gordon-Smith'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 27 00:03:20 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M94jv-0005MY-LW for geh-help-gnu-emacs@m.gmane.org; Wed, 27 May 2009 00:03:19 +0200 Original-Received: from localhost ([127.0.0.1]:48891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M94jv-00036B-5z for geh-help-gnu-emacs@m.gmane.org; Tue, 26 May 2009 18:03:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M94jY-00034c-Av for help-gnu-emacs@gnu.org; Tue, 26 May 2009 18:02:56 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M94jS-00032B-F3 for help-gnu-emacs@gnu.org; Tue, 26 May 2009 18:02:55 -0400 Original-Received: from [199.232.76.173] (port=45575 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M94jS-000325-7v for help-gnu-emacs@gnu.org; Tue, 26 May 2009 18:02:50 -0400 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:62156 helo=rgminet11.oracle.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M94jQ-00008E-T2 for help-gnu-emacs@gnu.org; Tue, 26 May 2009 18:02:49 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet11.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4QM3OcG011980 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 26 May 2009 22:03:25 GMT Original-Received: from abhmt005.oracle.com (abhmt005.oracle.com [141.146.116.14]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n4QM3WDU017405; Tue, 26 May 2009 22:03:32 GMT Original-Received: from dradamslap1 (/141.144.90.50) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 26 May 2009 15:02:43 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <7835dsF1kbm4vU1@mid.individual.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcneSt1jet5CJYqlSS2f3mzFzMqGbgAAjKAg X-Source-IP: abhmt005.oracle.com [141.146.116.14] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010205.4A1C6703.023E:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64751 Archived-At: > Since it is unlikely that the built in emacs parsing / > indentation will be able to handle my modified syntax,... > For the longer term, I definitely want to work out how > to customise the indentation for my purposes. It's not hard, actually. It's just not well documented (IMO). See the Emacs manual, node `Lisp Indent'. Personally, I think the explanation given there is inadequate, and this (or more) should really be in the Elisp manual (you need some Lisp code to customize indentation of various Lisp sexps) - there is nothing in the Lisp manual about it. I've just filed a doc bug about this. After reading that node, `grep' the Lisp source code for places where it puts property `lisp-indent-function' on various function and macro symbols. Just copy what's done there. See also `C-h f lisp-indent-function', which describes the function that uses the symbol property.