all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jpkotta <jpkotta@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Selection region and delete
Date: Mon, 23 Jul 2012 13:05:55 -0700 (PDT)	[thread overview]
Message-ID: <685c4ea6-3e84-4c7e-8278-9e0dc31865ad@googlegroups.com> (raw)
In-Reply-To: <jujs0f$58a$1@speranza.aioe.org>

On Monday, July 23, 2012 10:52:47 AM UTC-5, Juha Nieminen wrote:
> Barry Margolin &lt;barmar@alum.mit.edu&gt; wrote:
> &gt; In article &lt;jujefg$ti$1@speranza.aioe.org&gt;,
> &gt; Juha Nieminen &lt;nospam@thanks.invalid&gt; wrote:
> &gt; 
> &gt;&gt; In older versions of emacs (when running from X) it used to be that if
> &gt;&gt; you had selected a region and pressed the delete key, it removed the
> &gt;&gt; selected region. Now it just works as if no selection had been made
> &gt;&gt; (ie. it just removes the character at the cursor).
> &gt;&gt; 
> &gt;&gt; I&#39;m too accustomed to the old behavior. How to restore it?
> &gt; 
> &gt; Customize the variable delete-selection-mode.
> 
> To what? And how?
> 
> There&#39;s already a &quot;&#39;(delete-selection-mode t)&quot; under the
> &quot;(custom-set-variables&quot; in my .emacs, and it has no effect on this.
> 
> If I do a M-x describe-variable delete-selection-mode, it says
> &quot;It is void as a variable.&quot;
> 
> If I add the line &quot;(setq delete-selection-mode t)&quot; to my .emacs,
> then describe-variable says &quot;Its value is t&quot;, and if I use nil instead
> of t it says it&#39;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&#39;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&#39;s own documentation says that by setting
> delete-selection-mode to 1 it should work, but it doesn&#39;t.

<delete> is bound to delete-forward-char by default.  The help for that command 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 deactivating delete-selection-mode either.


  parent reply	other threads:[~2012-07-23 20:05 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-23 12:01 Selection region and delete Juha Nieminen
2012-07-23 15:24 ` Barry Margolin
2012-07-23 15:52   ` Juha Nieminen
2012-07-23 19:59     ` Peter Dyballa
2012-07-23 20:05     ` jpkotta [this message]
2012-07-23 20:17       ` Peter Dyballa
2012-07-24  7:16       ` Juha Nieminen
     [not found]     ` <mailman.5453.1343073582.855.help-gnu-emacs@gnu.org>
2012-07-24  7:23       ` Juha Nieminen
2012-07-24  8:39         ` Peter Dyballa
2012-07-24 11:11         ` Andreas Röhler
     [not found]         ` <mailman.5487.1343128324.855.help-gnu-emacs@gnu.org>
2012-07-25  5:42           ` Juha Nieminen
2012-07-25  6:11     ` Juha Nieminen
2012-07-25  9:52       ` Peter Dyballa
     [not found]       ` <mailman.5554.1343209950.855.help-gnu-emacs@gnu.org>
2012-07-25  9:57         ` Juha Nieminen
2012-07-25 10:06           ` Peter Dyballa
     [not found]           ` <mailman.5555.1343210807.855.help-gnu-emacs@gnu.org>
2012-07-25 11:58             ` Juha Nieminen
2012-07-25 13:16               ` Peter Dyballa
2012-07-25 14:23             ` Juha Nieminen
2012-07-25 20:25               ` Peter Dyballa
     [not found]               ` <mailman.5606.1343247908.855.help-gnu-emacs@gnu.org>
2012-07-25 21:03                 ` Juha Nieminen
2012-07-25 21:27                   ` Peter Dyballa
     [not found]                   ` <mailman.5611.1343251677.855.help-gnu-emacs@gnu.org>
2012-07-26  5:30                     ` Juha Nieminen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=685c4ea6-3e84-4c7e-8278-9e0dc31865ad@googlegroups.com \
    --to=jpkotta@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.