From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.help Subject: Re: How to programmatically highlight region? Date: Wed, 15 Nov 2006 17:48:12 -0500 Message-ID: <87lkmcqqc3.fsf@pereiro.luannocracy.com> References: <87d57osc7s.fsf@pereiro.luannocracy.com> <147F5C25-BD32-4B93-96E7-00E3D8D596CD@easesoftware.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1163694597 16520 80.91.229.2 (16 Nov 2006 16:29:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Nov 2006 16:29:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 16 17:29:50 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gkk7C-0004WN-TZ for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2006 17:29:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gkk7B-0007ey-Ss for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Nov 2006 11:29:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GkTYY-0006gF-2W for help-gnu-emacs@gnu.org; Wed, 15 Nov 2006 17:48:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GkTYW-0006fM-K6 for help-gnu-emacs@gnu.org; Wed, 15 Nov 2006 17:48:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkTYW-0006fJ-AE for help-gnu-emacs@gnu.org; Wed, 15 Nov 2006 17:48:32 -0500 Original-Received: from [72.32.140.231] (helo=boost-consulting.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GkTYW-0005NP-Ij for help-gnu-emacs@gnu.org; Wed, 15 Nov 2006 17:48:32 -0500 Original-Received: from pereiro.luannocracy.com.boost-consulting.com (216-15-125-177.c3-0.smr-ubr3.sbo-smr.ma.cable.rcn.com [216.15.125.177]) (authenticated bits=0) by boost-consulting.com (8.13.8/8.13.8) with ESMTP id kAFMmPte024124 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 15 Nov 2006 22:48:26 GMT (envelope-from dave@boost-consulting.com) Original-To: Perry Smith In-Reply-To: <147F5C25-BD32-4B93-96E7-00E3D8D596CD@easesoftware.com> (Perry Smith's message of "Wed\, 15 Nov 2006 15\:41\:21 -0600") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/23.0.0 (gnu/linux) X-Mailman-Approved-At: Thu, 16 Nov 2006 11:28:53 -0500 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:38756 Archived-At: Perry Smith writes: > On Nov 15, 2006, at 2:10 PM, David Abrahams wrote: > > Hi, >=20=20=20=20 > Could someone tell me how to get the effect of an "activated mark" in > transient mark mode from within elisp?=C2=A0 In other words, I'd like= to be > able to set up the point and mark, and when my elisp completes, see > the region highlighted.=C2=A0 Seems like it should be simple, but not= hing I > do seems to work. > > You might be asking how transient mark mode works.=C2=A0=20 I don't think that's what I'm asking. > It seems to be just a variable that commands look at.=C2=A0 But this > works for me: > > (defun dog-test () > (interactive) > (transient-mark-mode 1) > (set-mark (point)) > (forward-char 20)) > > execute dog-test from the minibuffer and the current point plus 20 > characters are highlighted Not for me. :( Thanks for responding. --=20 Dave Abrahams Boost Consulting www.boost-consulting.com