|
From: | Stefan Monnier |
Subject: | Re: called-interactively-p, cedet, and Emacs 23.1 and earlier |
Date: | Mon, 26 Apr 2010 13:58:26 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> (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
[Prev in Thread] | Current Thread | [Next in Thread] |