all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Cleverer behaviour of macro call/apply?
@ 2008-01-30 13:51 Nordlöw
  0 siblings, 0 replies; only message in thread
From: Nordlöw @ 2008-01-30 13:51 UTC (permalink / raw)
  To: help-gnu-emacs

Hi!

I tought it would be convient for the user if we copied the behaviour
of EmacsWiki's TabCompletion at http://www.emacswiki.org/cgi-bin/wiki/TabCompletion
and applied these ideas to the execution of macros in Emacs.

More specifically I would like to merge the behaviour of kmacro-end-
and-call-macro() and apply-macro-to-region-lines() into one function
as follows:

(defun smart-call-or-apply-macro (???) ; What arguments?
  (interactive "r") ; What arguments?
  (if mark-active
      (apply-macro-to-region-lines ???) ; What arguments?
    (kmacro-end-and-call-macro ???))) ; What arguments?

I am however unsure of what arguments (???) my new function should use
and how they should be passed to the above mention macro-functions.
Any ideas?

Thanks,
Nordlöw

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-30 13:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30 13:51 Cleverer behaviour of macro call/apply? Nordlöw

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.