From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: C-x home/end to select buffer before/after point? Date: Mon, 24 Sep 2007 11:41:22 -0700 Message-ID: References: <46517.128.165.123.18.1190655767.squirrel@webmail.lanl.gov> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1190659458 14606 80.91.229.12 (24 Sep 2007 18:44:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Sep 2007 18:44:18 +0000 (UTC) To: "Emacs-Devel" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 24 20:44:14 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IZsuc-0006ru-5J for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2007 20:44:06 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZsuZ-0003rH-Ju for ged-emacs-devel@m.gmane.org; Mon, 24 Sep 2007 14:44:03 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZstP-0003K6-8o for emacs-devel@gnu.org; Mon, 24 Sep 2007 14:42:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZstN-0003Iv-5b for emacs-devel@gnu.org; Mon, 24 Sep 2007 14:42:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZstN-0003Io-0Z for emacs-devel@gnu.org; Mon, 24 Sep 2007 14:42:49 -0400 Original-Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IZstM-0001Bo-C5 for emacs-devel@gnu.org; Mon, 24 Sep 2007 14:42:48 -0400 Original-Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l8OIgg4o000776 for ; Mon, 24 Sep 2007 12:42:45 -0600 Original-Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l8OG5qMD022459 for ; Mon, 24 Sep 2007 12:42:42 -0600 Original-Received: from dhcp-4op11-4op12-west-130-35-178-158.us.oracle.com by acsmt351.oracle.com with ESMTP id 3240448991190659280; Mon, 24 Sep 2007 11:41:20 -0700 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <46517.128.165.123.18.1190655767.squirrel@webmail.lanl.gov> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-Detected-Kernel: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:79746 Archived-At: > > (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.