help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what is the point of point-min?


From: Kevin Rodgers
Subject: Re: what is the point of point-min?
Date: Thu, 28 Aug 2003 10:17:53 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:0.9.4.1) Gecko/20020406 Netscape6/6.2.2

Joe Corneli wrote:

Here is a handy rebinding of <delete> that I found on the web.

(global-set-key [delete] (lambda () (interactive) (if mark-active (kill-region (point) (mark)) (delete-char 1))))

Besides the point-min confusion, kill-region should be called with
(region-beginning) and (region-end) which usually -- but not always --
correspond to (point) and (mark).

--
Kevin Rodgers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]