From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: mouse and Delete key Date: Sat, 30 Jul 2005 17:35:55 -0700 Message-ID: References: <87ack4q7dk.fsf@wash.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1122770226 5700 80.91.229.2 (31 Jul 2005 00:37:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 31 Jul 2005 00:37:06 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 31 02:37:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dz1om-0001zb-NL for geh-help-gnu-emacs@m.gmane.org; Sun, 31 Jul 2005 02:36:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dz1rL-0006Ei-UY for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jul 2005 20:39:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dz1r4-0006DY-Nm for help-gnu-emacs@gnu.org; Sat, 30 Jul 2005 20:39:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dz1r2-0006Co-VX for help-gnu-emacs@gnu.org; Sat, 30 Jul 2005 20:39:02 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dz1r2-0006Ce-SO for help-gnu-emacs@gnu.org; Sat, 30 Jul 2005 20:39:00 -0400 Original-Received: from [148.87.122.33] (helo=rgminet04.oracle.com) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Dz202-0008If-AM for help-gnu-emacs@gnu.org; Sat, 30 Jul 2005 20:48:18 -0400 Original-Received: from rgminet04.oracle.com (localhost [127.0.0.1]) by rgminet04.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j6V0a8si009804 for ; Sat, 30 Jul 2005 18:36:08 -0600 Original-Received: from rgmsgw301.us.oracle.com (rgmsgw301.us.oracle.com [138.1.186.50]) by rgminet04.oracle.com (Switch-3.1.6/Switch-3.1.6) with ESMTP id j6V0a7OL009794 for ; Sat, 30 Jul 2005 18:36:07 -0600 Original-Received: from rgmsgw301.us.oracle.com (localhost [127.0.0.1]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id j6V0a5f7021561 for ; Sat, 30 Jul 2005 18:36:05 -0600 Original-Received: from dradamslap (dhcp-amer-whq-csvpn-gw3-141-144-80-33.vpn.oracle.com [141.144.80.33]) by rgmsgw301.us.oracle.com (Switch-3.1.4/Switch-3.1.0) with SMTP id j6V0a5ZY021553 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Sat, 30 Jul 2005 18:36:05 -0600 Original-To: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 In-reply-to: <87ack4q7dk.fsf@wash.edu> X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:28299 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:28299 I was reading the node on the mouse commands, this is not working, Very good to hear that you are reading the doc! Good initiative. Mouse Commands for Editing ========================== ... If you select a region with any of these mouse commands, and then immediately afterward type the function key, it deletes the region that you selected. The text goes on to say this (next sentence): The function key and the ASCII character do not do this; if you type any other key in between the mouse command and , it does not do this. I mouse-1 say at the beginning of a line and mouse-3 past the end char. then hit the key. it does not delete the line "region" but only the last character. what am I doing wrong, how can I delete a region. I usually do C-w but that puts it in the kill buffer. This kind of info always helps us help you: What emacs version are you running? Do this to find out: `C-h v emacs-version' (or choose Help>About Emacs in the menu). I'd guess that you are trying to use the Backspace key, also known as `DEL', not the Delete key. On my (PC) keyboard, the Delete key is labeled "Delete" and is just below the Insert key in the middle keypad (which is just to the left of the numeric keypad). An alternative to using Delete is to use `C-d'. If you don't have a Delete key, try that. Try this: `C-h k It should say something like this: C-d (translated from ) runs the command delete-char which is an interactive built-in function in `C source code'. It is bound to C-d, . (delete-char n &optional killflag) Delete the following n characters (previous if n is negative). Optional second arg killflag non-nil means kill instead (save in kill ring). Interactively, n is the prefix arg, and killflag is set if n was explicitly specified. Keep reading and experimenting - you're on the right track now. BTW - If you are using the mouse anyway, the quickest way to delete the selection (region) you've created is just to click mouse-3 again, without moving the mouse. For example: mouse-1; move mouse; mouse-3; mouse-3. This does put the region in the kill ring. But so does the method above: mouse-1; move mouse; mouse-3; . Why don't you want the region in the kill ring? Are you aware that you can get to (that is, paste) older kill-ring entries by using `C-y M-y M-y...'? HTH