From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juha Nieminen Newsgroups: gmane.emacs.help Subject: Re: Selection region and delete Date: Wed, 25 Jul 2012 21:03:34 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1343250315 11635 80.91.229.3 (25 Jul 2012 21:05:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2012 21:05:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 25 23:05:15 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Su8le-0006kD-2I for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jul 2012 23:05:14 +0200 Original-Received: from localhost ([::1]:55022 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Su8ld-0008AM-0C for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Jul 2012 17:05:13 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 79 Original-NNTP-Posting-Host: x6oKauqjz/aVLymSbCEcrg.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/3.1.10-grbfs-kapsi (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 Original-Xref: usenet.stanford.edu gnu.emacs.help:193670 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:86044 Archived-At: Peter Dyballa wrote: I really appreciate your efforts to help me. > In an earlier eMail you mentioned: > >>> If I add the line "(setq delete-selection-mode t)" to my .emacs, >>> then describe-variable says "Its value is t", and if I use nil instead >>> of t it says it's nil. In none of these cases does the delete key >>> function properly. > > So you are making your tests with all your customisations > active. This is real dirty work. Why can't you do yourself a big > favour and launch GNU Emacs with -Q? I have done that, but it doesn't make any difference. (I mean with respect to this problem. Of course all the settings are defaults, but the behavior with respect to this precise thing doesn't change.) But just to follow your instructions to the letter, I started Emacs with -Q and: > The first command is ??? well, actually you just could mark some text > in *scratch* buffer! Start with doing so with the mouse. Now press > some key! What happened to the selected region? If I select some text with the mouse, then pressing different keys have different effects: - Pressing the delete key removes the selected text. - Pressing the backspace key also removes the selected text. - Pressing a character key, such as 'a', does *not* replace the selected text with 'a', but instead unselects and just adds the 'a' where the cursor was, without removing anything. > Second test: mark a region with the keyboard (C-SPACE presumingly) > and the press some key! What happened to the selected region? OK, > again, you can undo and mark again a region with the keyboard. Now > press BS or C-d. What happened to the selected region? It makes no difference whether I select text using ctrl-space and then pressing cursor keys, or just pressing cursor keys with shift. The text gets selected, but then if I press delete, it just unselects and removes the character at the cursor (instead of removing the selected text, like when the region was selected with the mouse). Likewise if I press backspace it just unselects and then removes the character at the left of the cursor. In other words, it behaves like no text was selected at all. I do not understand why selecting a region with the mouse is different from selecting with the keyboard (either with ctrl-space or shift+cursors). > So just insert > > (delete-selection-mode t) > > into the *scratch* buffer. Position the text cursor (point) into the > word "delete-selection-mode". You can then type C-h v RET and also > C-h f RET. If I follow those instructions precisely, it just says "You did not specify a variable". (If I write "delete-selection-mode" after pressing C-h v then it gives the help text I mentioned in the earlier post.) > The last step is to go to the end of the line, right of > the closing parenthesis. And then press C-j ??? and nothing else! When I do that, it gives me this: Debugger entered--Lisp error: (void-function delete-selection-mode) (delete-selection-mode t) eval((delete-selection-mode t)) eval-last-sexp-1(t) eval-last-sexp(t) eval-print-last-sexp() call-interactively(eval-print-last-sexp nil nil) > Or compile GNU Emacs 23.4 from source yourself I might need to do that...