From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Richard M. Stallman" Newsgroups: gmane.emacs.devel Subject: Re: Incorrect indentation after :name Date: Tue, 05 Jul 2005 00:35:09 -0400 Message-ID: References: <42C80B48.3080103@student.lu.se> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1120539497 30482 80.91.229.2 (5 Jul 2005 04:58:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 5 Jul 2005 04:58:17 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 05 06:58:09 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DpfVR-0004Qc-B7 for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2005 06:58:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpfWg-0004lD-CW for ged-emacs-devel@m.gmane.org; Tue, 05 Jul 2005 00:59:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DpfVr-0004W3-N6 for emacs-devel@gnu.org; Tue, 05 Jul 2005 00:58:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DpfTK-0004AU-S3 for emacs-devel@gnu.org; Tue, 05 Jul 2005 00:55:53 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DpfTI-0003wk-3B for emacs-devel@gnu.org; Tue, 05 Jul 2005 00:55:48 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DpfHP-0000nw-Dn for emacs-devel@gnu.org; Tue, 05 Jul 2005 00:43:31 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Dpf9J-0004kE-3k; Tue, 05 Jul 2005 00:35:09 -0400 Original-To: Stefan Monnier In-reply-to: (message from Stefan Monnier on Mon, 04 Jul 2005 10:48:54 -0400) 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:40386 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:40386 + (if (or (not function) + (and (> (point) (1+ (point-min))) + (or (save-excursion (backward-char 2) (looking-at "'(")) + (keywordp (intern-soft function))) + (not (fboundp (intern-soft function))))) The problem is, this will do the wrong thing when you edit a call to a function defined in a file that isn't loaded. It might be better to check for a quote in front of the current list or a surrounding list. That could work reliably.