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 <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.
<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.
next prev 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
List information: https://www.gnu.org/software/emacs/
* 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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).