From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: robert.thorpe@antenova.com (Rob Thorpe) Newsgroups: gmane.emacs.help Subject: Re: what is the point of point-min? Date: 1 Sep 2003 06:41:31 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <1a61f7e5.0309010541.3b5a74b0@posting.google.com> References: <3F4E2B31.5070904@yahoo.com> <1a61f7e5.0308290444.10893c35@posting.google.com> NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1062523578 17796 80.91.224.253 (2 Sep 2003 17:26:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 2 Sep 2003 17:26:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 02 19:26:17 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 19uEv2-0003cZ-00 for ; Tue, 02 Sep 2003 19:26:16 +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 19u5wT-0006QC-Vc for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Sep 2003 03:51:09 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: 212.135.40.163 Original-X-Trace: posting.google.com 1062423692 16350 127.0.0.1 (1 Sep 2003 13:41:32 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 1 Sep 2003 13:41:32 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:116308 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:12228 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12228 Jesper Harder wrote in message news:... > robert.thorpe@antenova.com (Rob Thorpe) writes: > > > Jesper Harder wrote: > > >> if there's no difference between (region-end) and (max (point) > >> (mark)). > > > > Secondly it will obey the value of the variable transient-mark-mode, > > if it is set to non-nil then the mark will deactivate when the > > buffer contents change. Given the function you have posted: > > > > (global-set-key [delete] > > (lambda () (interactive) > > (if mark-active > > (kill-region (point) (mark)) > > (delete-char 1)))) > > > > This version in transient mark mode will delete the region even though > > in this mode it is not thought of as existing after a character is > > inserted into the buffer. > > I don't understand that. The code tests `mark-active', so it won't > delete the region in transient-mark-mode if the region is inactive > (i.e. the mark is deactivated). Sorry, your right, my mistake.