emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Request: use call-interactively in org-shiftmetaup and friends?
@ 2006-05-20 17:22 T. V. Raman
  2006-05-22  9:13 ` Carsten Dominik
  0 siblings, 1 reply; 2+ messages in thread
From: T. V. Raman @ 2006-05-20 17:22 UTC (permalink / raw)
  To: emacs-orgmode


This is a request  for making speech-enabling some of org-mode's
wizard commands easier from Emacspeak

At present org-shiftmetaup and friends call the correct
interactive command based on context -- this is very nice.

To provide the right spoken message, the ideal points to advice
in emacspeak are the context specific commands,
e.g. org-move-item-up etc.

To keep the advice safe, I usually 
protect the code in the advice fragment with a (when
(interactive-p) ...)
so that the advice doesn't fire when the command is called from
within other functions.

I'm having to break this rule right now because org-shiftmetaup
etc call the appropriate interactive command
e.g. org-move-item-up as a function; could you change these to
use call-interactively -- would make my life on the advice side
much easier.

-- 
Best Regards,
--raman

      
Email:  raman@users.sf.net
WWW:    http://emacspeak.sf.net/raman/
AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
Google: tv+raman 
IRC:    irc://irc.freenode.net/#emacs

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Request: use call-interactively in org-shiftmetaup and friends?
  2006-05-20 17:22 Request: use call-interactively in org-shiftmetaup and friends? T. V. Raman
@ 2006-05-22  9:13 ` Carsten Dominik
  0 siblings, 0 replies; 2+ messages in thread
From: Carsten Dominik @ 2006-05-22  9:13 UTC (permalink / raw)
  To: raman; +Cc: emacs-orgmode

The next version of Org-mode will use call-interactively for 
dispatching in all magic context-sensitive commands, whenever possible.

- Carsten


On May 20, 2006, at 19:22, T. V. Raman wrote:

>
> This is a request  for making speech-enabling some of org-mode's
> wizard commands easier from Emacspeak
>
> At present org-shiftmetaup and friends call the correct
> interactive command based on context -- this is very nice.
>
> To provide the right spoken message, the ideal points to advice
> in emacspeak are the context specific commands,
> e.g. org-move-item-up etc.
>
> To keep the advice safe, I usually
> protect the code in the advice fragment with a (when
> (interactive-p) ...)
> so that the advice doesn't fire when the command is called from
> within other functions.
>
> I'm having to break this rule right now because org-shiftmetaup
> etc call the appropriate interactive command
> e.g. org-move-item-up as a function; could you change these to
> use call-interactively -- would make my life on the advice side
> much easier.
>
> -- 
> Best Regards,
> --raman
>
>
> Email:  raman@users.sf.net
> WWW:    http://emacspeak.sf.net/raman/
> AIM:    emacspeak       GTalk: tv.raman.tv@gmail.com
> PGP:    http://emacspeak.sf.net/raman/raman-almaden.asc
> Google: tv+raman
> IRC:    irc://irc.freenode.net/#emacs
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>

--
Carsten Dominik
Sterrenkundig Instituut "Anton Pannekoek"
Universiteit van Amsterdam
Kruislaan 403
NL-1098SJ Amsterdam
phone: +31 20 525 7477

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-22  9:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-20 17:22 Request: use call-interactively in org-shiftmetaup and friends? T. V. Raman
2006-05-22  9:13 ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).