[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: which-function => DEFUN?

From: Lennart Borgman
Subject: Re: which-function => DEFUN?
Date: Mon, 10 May 2010 18:05:21 +0200

On Mon, May 10, 2010 at 5:42 PM, Stefan Monnier
<address@hidden> wrote:
> The rule for where to place a save-match-data is:
>  around the code run between "looking-at" and
>  "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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]