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: Mon, 23 Jul 2012 15:52:47 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1343058918 27498 80.91.229.3 (23 Jul 2012 15:55:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 15:55:18 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 23 17:55:14 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 1StKyX-0007yF-B5 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 17:55:13 +0200 Original-Received: from localhost ([::1]:60590 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StKyW-00050R-HT for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 11:55:12 -0400 Original-Path: usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 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:193610 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:85983 Archived-At: Barry Margolin wrote: > In article , > Juha Nieminen wrote: > >> In older versions of emacs (when running from X) it used to be that if >> you had selected a region and pressed the delete key, it removed the >> selected region. Now it just works as if no selection had been made >> (ie. it just removes the character at the cursor). >> >> I'm too accustomed to the old behavior. How to restore it? > > Customize the variable delete-selection-mode. To what? And how? There's already a "'(delete-selection-mode t)" under the "(custom-set-variables" in my .emacs, and it has no effect on this. If I do a M-x describe-variable delete-selection-mode, it says "It is void as a variable." 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. If I select the region with the mouse, then the delete key removes the region. If I select the region with the keyboard (using shift) and press shift-del, then it removes the region. However, if I select the region using the keyboard and press just delete, it doesn't work. The last one of those cases happens to be the most usual way I use to delete a region, and it used to work. I have been searching for information on this for over an hour, and I cannot find the solution. Even gnu's own documentation says that by setting delete-selection-mode to 1 it should work, but it doesn't.