From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Text selection can't be erased by pressing delete
Date: Thu, 26 Aug 2010 15:17:13 -0700 (PDT) [thread overview]
Message-ID: <332f6213-a415-402e-958a-acbca3ddbc07@k17g2000prf.googlegroups.com> (raw)
In-Reply-To: mailman.1.1282306148.7914.help-gnu-emacs@gnu.org
On Aug 20, 5:08 am, Gabriel TEIXEIRA <gabriel_teixe...@sdesigns.eu>
wrote:
> Hello all,
>
> I've been working with three simultaneous emacs windows, each one
> containing a diferent project, and I noticed that two of those three are
> presenting a weird behaviour. When I select a text in those windows
> (like by pushing Shift and then the arrow keys), and then I push the key
> Delete, I expect that the selected/highlighted text be erased, but
> instead, it erases a single character to the left of the cursor (like
> would happen without the selection) and the selection disappears
> (although the same operation works with Backspace or Shift+Delete
> normally). It seems that the Delete key is not anymore aware of the text
> selection. It is even more weird the fact that this doesn't happen with
> the window that I opened the last and the other windows that I opened
> after to check the behaviour. I seems that emacs "wears" after some time
> opened. Anyone have any idea of what's this? Is this a bug or I typed
> accidentaly any command that triggers this behaviour?
>
> Thanks in advance
> Gabriel Teixeira
hi, all you need is to turn on the delete-selection-mode
• New Features in Emacs 23
http://xahlee.org/emacs/emacs23_features.html
quote:
Also, now you can hold down the Shift key then press arrows key
to select text. To turn this off, put:
(setq shift-select-mode nil) ; “t” for true, “nil” for false
However, by default, pressing delete key will not delete selected
text. If you want this, put:
(delete-selection-mode 1) ; make typing override text selection
i don't know if that is on in emacs 24, but maybe give it a try.
note that cua-mode also turns on the typing overwrite behavior, but is
is not done by having delete-selection-mode, it implemented it's own.
also, if your selection is made by mouse, then it will automatically
have delete selection behavior, even if delete-selection-mode is not
on.
it short, the situation is a bit messy.
also, this problem happens to me too, that sometimes for some reason
the delete selection behavior is gone. Quite annoying. When this
happens, i call delete-selection-mode again to turn it back.
Xah ∑ http://xahlee.org/ ☄
next prev parent reply other threads:[~2010-08-26 22:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1.1282306148.7914.help-gnu-emacs@gnu.org>
2010-08-20 12:45 ` Text selection can't be erased by pressing delete Pascal J. Bourguignon
2010-08-26 22:19 ` Xah Lee
2010-08-26 22:17 ` Xah Lee [this message]
2010-08-20 12:08 Gabriel TEIXEIRA
2010-08-20 12:27 ` Eli Zaretskii
2010-08-20 12:57 ` Gabriel TEIXEIRA
2010-08-20 13:15 ` Gabriel TEIXEIRA
2010-08-20 14:02 ` Gabriel TEIXEIRA
[not found] ` <mailman.8.1282310110.29058.help-gnu-emacs@gnu.org>
2010-08-26 20:16 ` Uday Reddy
2010-08-20 16:42 ` Bob Proulx
2010-08-20 17:35 ` Gabriel TEIXEIRA
[not found] ` <mailman.3.1282326790.14034.help-gnu-emacs@gnu.org>
2010-08-20 22:24 ` Pascal J. Bourguignon
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=332f6213-a415-402e-958a-acbca3ddbc07@k17g2000prf.googlegroups.com \
--to=xahlee@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.