From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: How run a command JUST on region highlighted by MOUSE?!?!
Date: Wed, 03 Sep 2003 17:13:42 -0600 [thread overview]
Message-ID: <3F5675A6.4030800@yahoo.com> (raw)
In-Reply-To: bf23f78f.0309021616.754e8bf5@posting.google.com
Christian Seberino wrote:
> What does the (interactive "r") do??? I really ONLY ever invoke my
> functions
> with key-combos that are hard wired to start the functions....e.g.
> C-ac, C-z, etc....
> Does this mean I can omit all this (interactive ..) stuff from .emacs
> everywhere???
No, the interactive form allows the function to be bound to a key and
specifies what values its arguments (if any) get when it is invoked
interactively (i.e. via a key binding or `M-x').
> It appears that beg and end got automagically set when I dragged mouse
> over some region.
Exactly!
> It also appears that although py-comment-region did not need it's 2
> args
> without narrow-to-region part... it does now when I add the
> narrow-to-region
> part and that was the main bug.
That doesn't make sense to me.
> Thank goodness it works but there is a lot going on I don't understand
> here
> about how arguments get defined and (interactive..) function. Any
> help would
> be greatly appreciated.
Everything you need to know is availabel via its doc string (`C-h v interactive')
and in the Emacs Lisp manual.
--
Kevin Rodgers
prev parent reply other threads:[~2003-09-03 23:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-28 21:24 How run a command JUST on region highlighted by MOUSE?!?! Christian Seberino
2003-08-28 21:32 ` Andrew Taylor
2003-08-29 18:22 ` Christian Seberino
2003-08-29 18:34 ` Oliver Scholz
2003-09-03 0:03 ` Christian Seberino
2003-09-03 0:19 ` Christian Seberino
2003-08-29 18:56 ` Johan Bockgård
2003-08-29 21:45 ` Kevin Rodgers
2003-09-03 0:16 ` Christian Seberino
2003-09-03 22:04 ` Jeffery B. Rancier
2003-09-03 23:13 ` Kevin Rodgers [this message]
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=3F5675A6.4030800@yahoo.com \
--to=ihs_4664@yahoo.com \
/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.