From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: called-interactively-p, cedet, and Emacs 23.1 and earlier Date: Mon, 26 Apr 2010 13:58:26 -0400 Message-ID: References: <4BAA41B0.1020103@siege-engine.com> <4BABEEC0.4030902@siege-engine.com> <60368.130.55.118.19.1269617620.squirrel@webmail.lanl.gov> <4BACDB7A.9090500@siege-engine.com> <4BAE120C.7090709@siege-engine.com> <80pr1mmdx9.fsf@tiny.isode.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1272304720 26097 80.91.229.12 (26 Apr 2010 17:58:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2010 17:58:40 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bruce Stephens Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Apr 26 19:58:37 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 1O6SZp-0005cY-2O for ged-emacs-devel@m.gmane.org; Mon, 26 Apr 2010 19:58:37 +0200 Original-Received: from localhost ([127.0.0.1]:48150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6SZo-0003iR-Je for ged-emacs-devel@m.gmane.org; Mon, 26 Apr 2010 13:58:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O6SZj-0003gc-09 for emacs-devel@gnu.org; Mon, 26 Apr 2010 13:58:31 -0400 Original-Received: from [140.186.70.92] (port=47868 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O6SZh-0003cc-ED for emacs-devel@gnu.org; Mon, 26 Apr 2010 13:58:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O6SZf-0006dc-Nb for emacs-devel@gnu.org; Mon, 26 Apr 2010 13:58:29 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:43983 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O6SZf-0006dW-Ko for emacs-devel@gnu.org; Mon, 26 Apr 2010 13:58:27 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAE1x1UvO+KoL/2dsb2JhbACcPnLEA4ULBIwN X-IronPort-AV: E=Sophos;i="4.52,274,1270440000"; d="scan'208";a="62527322" Original-Received: from 206-248-170-11.dsl.teksavvy.com (HELO pastel.home) ([206.248.170.11]) by ironport2-out.pppoe.ca with ESMTP; 26 Apr 2010 13:58:27 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id CDD1C7F22; Mon, 26 Apr 2010 13:58:26 -0400 (EDT) In-Reply-To: <80pr1mmdx9.fsf@tiny.isode.net> (Bruce Stephens's message of "Mon, 26 Apr 2010 16:28:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:124230 Archived-At: > (defadvice beginning-of-defun (around senator activate) > "Move backward to the beginning of a defun. > If semantic tags are available, use them to navigate." > (if (and senator-minor-mode (cedet-called-interactively-p)) > (senator-beginning-of-defun (ad-get-arg 0)) > ad-do-it)) Why not use beginning-of-defun-function rather than an advice? Stefan