From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpkotta Newsgroups: gmane.emacs.help Subject: Re: Selection region and delete Date: Mon, 23 Jul 2012 13:05:55 -0700 (PDT) Organization: http://groups.google.com Message-ID: <685c4ea6-3e84-4c7e-8278-9e0dc31865ad@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1343074225 11698 80.91.229.3 (23 Jul 2012 20:10:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 23 Jul 2012 20:10:25 +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 22:10:25 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 1StOxL-0005EK-KW for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 22:10:15 +0200 Original-Received: from localhost ([::1]:36871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1StOxK-0005g1-PD for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Jul 2012 16:10:14 -0400 Original-Path: usenet.stanford.edu!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: 70.97.12.233 Original-X-Trace: posting.google.com 1343073955 28901 127.0.0.1 (23 Jul 2012 20:05:55 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 23 Jul 2012 20:05:55 +0000 (UTC) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.97.12.233; posting-account=EwI0QQoAAADdqmqX_mVfawBNtwyks2YE User-Agent: G2/1.0 Original-Xref: usenet.stanford.edu gnu.emacs.help:193616 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:85991 Archived-At: On Monday, July 23, 2012 10:52:47 AM UTC-5, Juha Nieminen wrote: > Barry Margolin <barmar@alum.mit.edu> wrote: > > In article <jujefg$ti$1@speranza.aioe.org>, > > Juha Nieminen <nospam@thanks.invalid> wrote: > >=20 > >> In older versions of emacs (when running from X) it used to be t= hat 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 m= ade > >> (ie. it just removes the character at the cursor). > >>=20 > >> I'm too accustomed to the old behavior. How to restore it? > >=20 > > Customize the variable delete-selection-mode. >=20 > To what? And how? >=20 > There's already a "'(delete-selection-mode t)" under th= e > "(custom-set-variables" in my .emacs, and it has no effect on t= his. >=20 > If I do a M-x describe-variable delete-selection-mode, it says > "It is void as a variable." >=20 > 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. >=20 > 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. >=20 > The last one of those cases happens to be the most usual way I use to > delete a region, and it used to work. >=20 > I have been searching for information on this for over an hour, and I can= not > find the solution. Even gnu's own documentation says that by setting > delete-selection-mode to 1 it should work, but it doesn't. is bound to delete-forward-char by default. The help for that com= mand mentions the delete-active-region variable. It only has an effect if = transient mark mode is enabled, and it sounds like you want it set to t (t = is the default). I couldn't see the difference between activating and deac= tivating delete-selection-mode either.