all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juha Nieminen <nospam@thanks.invalid>
To: help-gnu-emacs@gnu.org
Subject: Re: Selection region and delete
Date: Mon, 23 Jul 2012 15:52:47 +0000 (UTC)	[thread overview]
Message-ID: <jujs0f$58a$1@speranza.aioe.org> (raw)
In-Reply-To: barmar-B29A6E.11243623072012@news.eternal-september.org

Barry Margolin <barmar@alum.mit.edu> wrote:
> In article <jujefg$ti$1@speranza.aioe.org>,
> Juha Nieminen <nospam@thanks.invalid> 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.


  reply	other threads:[~2012-07-23 15:52 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 [this message]
2012-07-23 19:59     ` Peter Dyballa
2012-07-23 20:05     ` jpkotta
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='jujs0f$58a$1@speranza.aioe.org' \
    --to=nospam@thanks.invalid \
    --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.