From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: How run a command JUST on region highlighted by MOUSE?!?! Date: Wed, 03 Sep 2003 17:13:42 -0600 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3F5675A6.4030800@yahoo.com> References: <5yu3b.865304$3C2.19502799@news3.calgary.shaw.ca> <3F4FC986.4060602@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1062688138 30577 80.91.224.253 (4 Sep 2003 15:08:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2003 15:08:58 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 17:08:56 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19uvjD-00041M-00 for ; Thu, 04 Sep 2003 17:08:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 19uviz-0007nW-UE for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2003 11:08:41 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!fu-berlin.de!uni-berlin.de!170.207.51.80!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 47 Original-NNTP-Posting-Host: 170.207.51.80 Original-X-Trace: news.uni-berlin.de 1062630814 16649765 170.207.51.80 (16 [82742]) User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2 X-Accept-Language: en-us Original-Xref: shelby.stanford.edu gnu.emacs.help:116358 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12277 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12277 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