From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Incorrect indentation after :name Date: Wed, 06 Jul 2005 20:30:37 +0200 Message-ID: <85ekabrdma.fsf@lola.goethe.zz> References: <42C80B48.3080103@student.lu.se> <87r7edhlsu.fsf-monnier+emacs@gnu.org> <200507060020.j660KVL21546@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1120674852 11517 80.91.229.2 (6 Jul 2005 18:34:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jul 2005 18:34:12 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, Luc Teirlinck , monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 06 20:34:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DqEiG-0006AZ-SQ for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2005 20:33:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqEja-0003Mz-TZ for ged-emacs-devel@m.gmane.org; Wed, 06 Jul 2005 14:34:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DqEjF-0003Je-Df for emacs-devel@gnu.org; Wed, 06 Jul 2005 14:34:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DqEjB-0003G6-1k for emacs-devel@gnu.org; Wed, 06 Jul 2005 14:34:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DqEjA-0003FN-Ts for emacs-devel@gnu.org; Wed, 06 Jul 2005 14:34:32 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DqElp-0004Ab-MM for emacs-devel@gnu.org; Wed, 06 Jul 2005 14:37:17 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1DqEd4-0000sK-Vj; Wed, 06 Jul 2005 14:28:15 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 2192B1CE0FEB; Wed, 6 Jul 2005 20:30:37 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard M. Stallman's message of "Wed, 06 Jul 2005 13:55:19 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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 Xref: news.gmane.org gmane.emacs.devel:40509 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40509 "Richard M. Stallman" writes: > If I understood correctly, it would misindent quoted lists whose first > element is a function. Lists of functions are not rare (hooks, for > example). > > The incorrect indentation in those cases won't be horrible. > > However, if we can develop a good convention for distinguishing the > two cases (quoted code, and quoted non-code), we could get the right > results every time. I'd somewhat visually prefer '( function and function ) vs '(function of something) I seems more readable than your proposal '(function and function) ' (function of something) and it also does not need to also take a look at ` and maybe even (quote ...) (which is the rendition of printed Lisp expressions). Of course, this proposal has the disadvantage that the probably more common case of a function (or non-function!) list needs extra formatting, so it is probably not useful in practice. However, if we _combine_ both proposals with an added criterion, we might arrive at the following rule set: '( func and func ) is a list in any context ' (func of something) is a quoted function call in any context '(func maybe) is a list, except in macro definitions where it is a quoted function. Maybe this is too complicated. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum