all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: RE: C-x home/end to select buffer before/after point?
Date: Mon, 24 Sep 2007 11:41:22 -0700	[thread overview]
Message-ID: <BNELLINCGFJLDJIKDGACGEBJCDAA.drew.adams@oracle.com> (raw)
In-Reply-To: <46517.128.165.123.18.1190655767.squirrel@webmail.lanl.gov>

> > (defun mark-buffer-before-point (reversep)
> >   "Select the part of the buffer before point.
> > With a prefix argument, select the part after point."
> >   (interactive "P")
> >   (mark-buffer-after-point t))
> 
> M-< C-x C-x
> 
> > (defun mark-buffer-after-point (reversep)
> >   "Select the part of the buffer after point.
> > With a prefix argument, select the part before point."
> >   (interactive "P")
> >   (push-mark (if reversep (point-min) (point-max)) nil t)
> >   (setq deactivate-mark nil))
> 
> M-> C-x C-x

Of course. And? The point was to be able to bind it to a single key.

  reply	other threads:[~2007-09-24 18:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-24 17:28 C-x home/end to select buffer before/after point? Drew Adams
2007-09-24 17:42 ` Davis Herring
2007-09-24 18:41   ` Drew Adams [this message]
2007-09-24 19:10     ` Davis Herring
2007-09-24 21:08       ` Drew Adams

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BNELLINCGFJLDJIKDGACGEBJCDAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.