From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: indenting keyword arguments so far Date: Mon, 08 Sep 2008 17:19:20 +0200 Message-ID: <87zlmi8y2v.fsf@tux.homenetwork> References: <6ikqv2Fr5mrqU1@mid.individual.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220887413 10460 80.91.229.12 (8 Sep 2008 15:23:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2008 15:23:33 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Tamas K Papp Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 17:24:29 2008 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 1Kcib1-0004y8-KI for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 17:24:07 +0200 Original-Received: from localhost ([127.0.0.1]:56664 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kcia1-0004oD-9K for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2008 11:23:05 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KciZc-0004jl-Sb for help-gnu-emacs@gnu.org; Mon, 08 Sep 2008 11:22:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KciZb-0004hV-Ut for help-gnu-emacs@gnu.org; Mon, 08 Sep 2008 11:22:40 -0400 Original-Received: from [199.232.76.173] (port=46585 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KciZb-0004h0-PW for help-gnu-emacs@gnu.org; Mon, 08 Sep 2008 11:22:39 -0400 Original-Received: from nf-out-0910.google.com ([64.233.182.184]:19219) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KciZb-0006po-7X for help-gnu-emacs@gnu.org; Mon, 08 Sep 2008 11:22:39 -0400 Original-Received: by nf-out-0910.google.com with SMTP id c7so489800nfi.26 for ; Mon, 08 Sep 2008 08:22:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=lPYYpETzrisLMXijvcBv+zCYyC3Ppci/hgD/ZlWPnDU=; b=iplBLi3b2th826eJOEUCIACG/H0Z3BvmIE8SMlH848nXbLt2wv1LnL+bejitnAhzFe KkCVtwbpcbCWcspdoF6w4X5LPvxzvAcU24vO5AIFtDA5ZCtFq+HF37gduwKXwm7IOJW2 Osc8UiLxXQh6JiLWlTNAqhQ+xdq7HHQkaN0IY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; b=BLqjs42a8TBJuX8ohpTTtW5C9qx7sWyZ1Z/rzDptq1WghtB+q3q2uemG80+PY3FjmR Xj1RyzgWtH3E5LhTvOMOTjSrSCSe1ILW/zufdO513F0jSc4Q2EN3tXCdwlSYvyppOS6+ hRVJPLe8Li7vNfVpuzmEnNoxFekYrdrYcrjSk= Original-Received: by 10.210.87.19 with SMTP id k19mr18897976ebb.176.1220887357644; Mon, 08 Sep 2008 08:22:37 -0700 (PDT) Original-Received: from tux.homenetwork ( [77.197.77.130]) by mx.google.com with ESMTPS id f4sm22914029nfh.27.2008.09.08.08.22.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 08 Sep 2008 08:22:36 -0700 (PDT) In-Reply-To: <6ikqv2Fr5mrqU1@mid.individual.net> (Tamas K. Papp's message of "8 Sep 2008 14:25:38 GMT") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:57337 Archived-At: Tamas K Papp writes: > Hi asked this on c.l.l, but didn't find a solution, so I thought I would > ask here. I would like my Common Lisp code to be indented properly. > > Suppose I type > > (foo :a a :b b > :c c :d :e e > :f f :g g) > > into a Lisp buffer (keyword names are deliberately short, but imagine they > would not fit on a line). C-M-q gives > > (foo :a a :b b > :c c :d d :e e > :f f :g g) > > Pressing Tab gives > > (foo :a a :b b > :c c :d d :e e > :f f :g g) > > What I would prefer is something like > > (foo :a a :b b > :c c :d d :e e > :f f :g g) > > Others on c.l.l claim it works properly for them, but not for me. I am > using Emacs 23.0.0.1, with the following settings: > > C-M-q runs the command indent-sexp > which is an interactive compiled Lisp function in `lisp-mode.el'. > > TAB (translated from ) runs the command lisp-indent-line > which is an interactive compiled Lisp function in `lisp-mode.el'. > > lisp-indent-function is a variable defined in `lisp-mode.el'. > Its value is > common-lisp-indent-function > Local in buffer foo.lisp; global value is > lisp-indent-function > > (symbol-plist 'common-lisp-indent-function) gives nil. > >>>From the comments of others, I am under the impression that what I want > should work out of the box, but it doesn't. Please help me find out > why... Hi, it seem `common-lisp-indent-function' is set for lisp-mode, and emacs-lisp-mode overhide this settings. How did you set lisp-indent-function ? (with a hook may be?) if you just set it with: ,---- | (setq lisp-indent-function 'common-lisp-indent-function) `---- you will have this setting both for emacs-lisp and cl. The property lists will be indented correctly but you will lost the if emacs-lisp indentation: ,---- | (if A | t | nil) `---- instead of ,---- | (if A | t | nil) `---- is it a problem? -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France