From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: which-function => DEFUN? Date: Mon, 10 May 2010 18:05:21 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1273508040 30998 80.91.229.12 (10 May 2010 16:14:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 May 2010 16:14:00 +0000 (UTC) Cc: Juanma Barranquero , Emacs-Devel devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 10 18:13:59 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OBVcD-0002JP-QA for ged-emacs-devel@m.gmane.org; Mon, 10 May 2010 18:13:59 +0200 Original-Received: from localhost ([127.0.0.1]:33179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBVcA-0003tr-HQ for ged-emacs-devel@m.gmane.org; Mon, 10 May 2010 12:13:54 -0400 Original-Received: from [140.186.70.92] (port=56038 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBVUf-00019Q-67 for emacs-devel@gnu.org; Mon, 10 May 2010 12:06:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBVUE-0000TS-H1 for emacs-devel@gnu.org; Mon, 10 May 2010 12:05:47 -0400 Original-Received: from fg-out-1718.google.com ([72.14.220.154]:14814) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBVUE-0000TM-6l for emacs-devel@gnu.org; Mon, 10 May 2010 12:05:42 -0400 Original-Received: by fg-out-1718.google.com with SMTP id 22so817927fge.12 for ; Mon, 10 May 2010 09:05:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=DXHq2/LU3tJhtYOfvqoygetM5v/3I6ngeOCOpQSGU8A=; b=ORltvcquXV3UoSRQbpYzSoToAFL6FiBsSiqdO+HUQ6dS8zMEf9J/pbSHELv8F0WAoi /WbsEVj2zvAM72aD6D+M5acrWFL4x9UrcFqBioRdVCSjDgKv5P8VIKu1DbFPCOAawlnN OJ7tSVUEnd0wO/m/VnJwbByiD2EIBlCzQWQlo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=gnnJk+nlU1jHdKWXfun6Bz/3P5FBB5B4CGzBYMlHNCaVH0MAHd8FOdH3L3ZIgEvQGZ 6KDpVqvskRAPcN30sdPjyyaeZvSRS1Yfr4qdTEe72PiiBvynGEsb9fZrK4/03euzBHSd E3G1xKGAlzeyPBBTEYw2j3n9ArdDNGEj52ixU= Original-Received: by 10.239.188.193 with SMTP id q1mr296508hbh.33.1273507541104; Mon, 10 May 2010 09:05:41 -0700 (PDT) Original-Received: by 10.239.164.81 with HTTP; Mon, 10 May 2010 09:05:21 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:124666 Archived-At: On Mon, May 10, 2010 at 5:42 PM, Stefan Monnier wrote: > > The rule for where to place a save-match-data is: > > =C2=A0around the code run between "looking-at" and > =C2=A0"match-string-no-properties". > > In this case (as in 99% of the cases) this code is empty, so the > save-match-data can be dropped. > >> (add-hook 'which-func-functions 'which-func-identify-DEFUN nil t) > > If your save-match-data were needed, which-func-functions should say > so explicitly. Yes, but what is the rule for WHEN to use save-match-data. I just looked in the elisp manual and could not find anything.