From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: which-function => DEFUN? Date: Mon, 10 May 2010 17:09:54 +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 1273504233 13092 80.91.229.12 (10 May 2010 15:10:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 10 May 2010 15:10:33 +0000 (UTC) Cc: Emacs-Devel devel To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 10 17:10:31 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 1OBUco-0003Hd-65 for ged-emacs-devel@m.gmane.org; Mon, 10 May 2010 17:10:30 +0200 Original-Received: from localhost ([127.0.0.1]:43663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBUcn-0006Jo-KB for ged-emacs-devel@m.gmane.org; Mon, 10 May 2010 11:10:29 -0400 Original-Received: from [140.186.70.92] (port=40764 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OBUce-0006Jj-RK for emacs-devel@gnu.org; Mon, 10 May 2010 11:10:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OBUcZ-0007EX-O4 for emacs-devel@gnu.org; Mon, 10 May 2010 11:10:20 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:54692) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OBUcZ-0007EC-IV for emacs-devel@gnu.org; Mon, 10 May 2010 11:10:15 -0400 Original-Received: by fxm9 with SMTP id 9so794437fxm.0 for ; Mon, 10 May 2010 08:10:14 -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=OG+thdamk1S3x8ZC5T1+jeYNyCYk2RvIZ3q1/5avvPQ=; b=G0cw0Z3hYK1KCBlTpAbHwNIvFQHETE8sE4MJdMvSBIFKQwQ2MwtZJFd4WasU9JbKpo NlmCIkMu+dY5rb8wDS5ytWAjifzAEMzWKaS8N5qEgXLgUGpKg0gU4HU3hzU5QIodoWK9 2YtSkMQF3tkSOxRFyOZHBhzJXvYWiDHV67u/4= 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=g5PGLg8w9qUmsFlOO/V1cvz8oN4Fuo6eSPbczfAJWzsk55NXrRbTziYZSfv4+nMyie XiLHj7CzMxxvvZXPEOz8ti9+mWrCKau9zLYgyDm6rSxr5vUp4zYi9ojnt9rrdgjcyyMo c/73aNCjBLjNs532oynvdV3YXwzQSPbXas+HY= Original-Received: by 10.204.128.68 with SMTP id j4mr83172bks.49.1273504214156; Mon, 10 May 2010 08:10:14 -0700 (PDT) Original-Received: by 10.204.84.81 with HTTP; Mon, 10 May 2010 08:09:54 -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:124663 Archived-At: On Mon, May 10, 2010 at 16:39, Lennart Borgman wrote: > =C2=A0 =C2=A0 =C2=A0 =C2=A0;; Check if we are at the beginning of the fun= ction already > =C2=A0 =C2=A0 =C2=A0 =C2=A0(unless (eobp) (forward-char)) Yes, nice catch. Thanks. > =C2=A0 =C2=A0 =C2=A0 =C2=A0(beginning-of-defun) > =C2=A0 =C2=A0 =C2=A0 =C2=A0(when (< here (point)) (beginning-of-defun)) What does this protect against? And, why did you go for (let ((here (point))) ...) instead of `save-excursion'? Efficiency? Juanma