* Re: hit end-of-buffer key twice, now where was I?
[not found] <mailman.2649.1097521024.2017.bug-gnu-emacs@gnu.org>
@ 2004-10-12 16:31 ` Kevin Rodgers
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-10-12 16:31 UTC (permalink / raw)
Dan Jacobson wrote:
> Hit the key you bind to end-of-buffer twice by accident. Notice how
> now exchange-point-and-mark will not get you back to where you were.
C-x C-x
C-u C-SPC
C-u C-SPC
> There ought to be boob protection. Same for beginning-of-buffer.
> "Who would ever need to store a mark if the distance is 0?" perhaps?
Only boobs need boob protection:
(defadvice end-of-buffer (around eob-disable activate)
"When called interactively at the end of the buffer, do nothing.
This prevents the mark from being reset."
(or (and (interactive-p) (eobp))
ad-do-it))
(defadvice beginning-of-buffer (around bob-disable activate)
"When called interactively at the beginning of the buffer, do nothing.
This prevents the mark from being reset."
(or (and (interactive-p) (bobp))
ad-do-it))
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 2+ messages in thread
* hit end-of-buffer key twice, now where was I?
@ 2004-10-10 19:36 Dan Jacobson
0 siblings, 0 replies; 2+ messages in thread
From: Dan Jacobson @ 2004-10-10 19:36 UTC (permalink / raw)
Hit the key you bind to end-of-buffer twice by accident. Notice how
now exchange-point-and-mark will not get you back to where you were.
There ought to be boob protection. Same for beginning-of-buffer.
"Who would ever need to store a mark if the distance is 0?" perhaps?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-12 16:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.2649.1097521024.2017.bug-gnu-emacs@gnu.org>
2004-10-12 16:31 ` hit end-of-buffer key twice, now where was I? Kevin Rodgers
2004-10-10 19:36 Dan Jacobson
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).