From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: I want to make C-d works in two ways. Date: Mon, 26 Jul 2010 06:07:51 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8f7fcb89-cb21-4250-bfd9-807bd0d40763@v32g2000prd.googlegroups.com> References: <55f24183-4134-4748-b9d1-b3864afd39b2@x24g2000pro.googlegroups.com> <871vastwe8.fsf@fh-trier.de> <9a9f26bc-be70-47d5-98ab-f5a320a97ed8@k19g2000yqc.googlegroups.com> <876302a958.fsf@fh-trier.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291857013 491 80.91.229.12 (9 Dec 2010 01:10:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 01:10:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 02:10:08 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQV1L-0005Qi-LL for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 02:10:07 +0100 Original-Received: from localhost ([127.0.0.1]:53317 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQV1L-0001Oj-0w for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 20:10:07 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!v32g2000prd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 75.36.151.102 Original-X-Trace: posting.google.com 1280149671 27656 127.0.0.1 (26 Jul 2010 13:07:51 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 26 Jul 2010 13:07:51 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: v32g2000prd.googlegroups.com; posting-host=75.36.151.102; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; AskTbBT5/5.8.0.12304),gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:180068 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76355 Archived-At: On Jul 26, 2:24=A0am, Andreas Politz wrote: > Elena writes: > > On Jul 24, 9:14=A0pm, Andreas Politz wrote: > >> That's easy. =A0Use `use-region-p' to branch to the desired command an= d > >> `call-interactively' for not having to bother about the arguments. > > > Thank you very much, Andreas. > > > Is this the recommended way to write commands which act on the region? > > Until now, I was just using `region-active-p'. > > Take a look at the function doc and it'll tell you the difference. > > -ap It there a way to determine what version of Emacs a function first hit the scene?