all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nordlöw <per.nordlow@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Cleverer behaviour of macro call/apply?
Date: Wed, 30 Jan 2008 05:51:02 -0800 (PST)	[thread overview]
Message-ID: <6993b4e2-875f-48b2-9f33-46d177d59592@v67g2000hse.googlegroups.com> (raw)

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

                 reply	other threads:[~2008-01-30 13:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=6993b4e2-875f-48b2-9f33-46d177d59592@v67g2000hse.googlegroups.com \
    --to=per.nordlow@gmail.com \
    --cc=help-gnu-emacs@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.