From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: hit end-of-buffer key twice, now where was I?
Date: Tue, 12 Oct 2004 10:31:17 -0600 [thread overview]
Message-ID: <416C06D5.2010807@yahoo.com> (raw)
In-Reply-To: mailman.2649.1097521024.2017.bug-gnu-emacs@gnu.org
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
next parent reply other threads:[~2004-10-12 16:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.2649.1097521024.2017.bug-gnu-emacs@gnu.org>
2004-10-12 16:31 ` Kevin Rodgers [this message]
2004-10-10 19:36 hit end-of-buffer key twice, now where was I? Dan Jacobson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=416C06D5.2010807@yahoo.com \
--to=ihs_4664@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).