From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Bruce Stephens <bruce.stephens@isode.com>
Cc: emacs-devel@gnu.org
Subject: Re: called-interactively-p, cedet, and Emacs 23.1 and earlier
Date: Mon, 26 Apr 2010 13:58:26 -0400 [thread overview]
Message-ID: <jwvljca5c5w.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <80pr1mmdx9.fsf@tiny.isode.net> (Bruce Stephens's message of "Mon, 26 Apr 2010 16:28:02 +0100")
> (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
next prev parent reply other threads:[~2010-04-26 17:58 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-24 16:45 called-interactively-p, cedet, and Emacs 23.1 and earlier Eric M. Ludlam
2010-03-24 17:51 ` Stefan Monnier
2010-03-25 14:33 ` Lluís
2010-03-25 23:16 ` Eric M. Ludlam
2010-03-26 15:33 ` Davis Herring
2010-03-26 16:06 ` Eric M. Ludlam
2010-03-27 14:11 ` Eric M. Ludlam
2010-03-27 18:18 ` Stefan Monnier
2010-04-26 15:28 ` Bruce Stephens
2010-04-26 17:58 ` Stefan Monnier [this message]
2010-04-26 18:27 ` Bruce Stephens
2010-04-27 3:08 ` Stefan Monnier
2010-04-27 11:22 ` Bruce Stephens
2010-04-27 13:56 ` Stefan Monnier
2010-03-24 17:53 ` Stephen J. Turnbull
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvljca5c5w.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=bruce.stephens@isode.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.