emacs-devel
[Top][All Lists]
Advanced

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

Re: called-interactively-p, cedet, and Emacs 23.1 and earlier


From: Bruce Stephens
Subject: Re: called-interactively-p, cedet, and Emacs 23.1 and earlier
Date: Mon, 26 Apr 2010 19:27:44 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Stefan Monnier <address@hidden> writes:

>> (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?

I don't know.  Compatibility, maybe?  Or maybe just uniformity, since
the same file also has defadvice for narrow-to-defun, mark-defun,
c-mark-function, add-log-current-defun, insert-register,
jump-to-register, not all of which have hooks, I guess.




reply via email to

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