unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Gabriel TEIXEIRA <gabriel_teixeira@sdesigns.eu>
To: help-gnu-emacs@gnu.org
Subject: Re: Text selection can't be erased by pressing delete
Date: Fri, 20 Aug 2010 19:35:41 +0200	[thread overview]
Message-ID: <4C6EBCED.5070302@sdesigns.eu> (raw)
In-Reply-To: <20100820164238.GA3146@dementia.proulx.com>

On 20/08/2010 18:42, Bob Proulx wrote:
> Gabriel TEIXEIRA wrote:
>    
>> 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.
>>      
> On what system are you running emacs?  Is this GNU/Unix, Cygwin, MSYS,
> other?  Running in a terminal window, or under a X11, or other native
> graphics?
>
>    
It is under Ubuntu Linux 10.04 x64 in the graphics mode.
>> 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.
>>      
> That would be the "normal" traditional behavior of Emacs on Unix
> machines for all of time prior to the recent introduction of Microsoft
> key bindings.
>
>    
Which I think is a good behaviour since the delete key is just above the 
arrow keys in my keyboard while the backspace is a little further. Since 
I do selections using Shift + arrows, the delete lies just within the 
range of my middle finger, while the backspace would need to elevate the 
entire hand up to there, so I prefer use the delete. Besides the fact 
that I can just select the text and overwrite it directly.
>> 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.
>>      
> That does seem strange that it would change behavior depending upon
> whether you have launched subsequent emacs processes.
>
>    
As I told already, maybe I mistyped something that led to this 
behaviour. Those instances are opened for weeks and the behaviour 
appeared after some days. I would like to know how to resolve this 
without doing the Microsoft solution (restarting emacs), which works, 
but lose all the layout of windows and the undo history.
>> Anyone have any idea of what's this? Is this a bug or I typed
>> accidentaly any command that triggers this behaviour?
>>      
> I do not use CUA mode but the behavior makes me wonder if something is
> causing it to be enabled and then disabled somehow.
>
>    http://www.emacswiki.org/CuaMode
>
> What is the behavior when using emacs without customizations?
>
>    emacs -q
>
>    
It behaves in the "normal" mode, no deletion with delete
> And without any initialization?
>
>    emacs -Q
>
>    
The same, 'course.
> Thinking that there must be something in the initialization that is
> behaving undesirably.
>    
More likely to be any crazy (or lazy) finger of mine, but I leave the 
hypotesys of "time wear", like a bug caused by any memory leak, 
overflowed counter or command that is disabling the mode unexpectedly 
(which I think is very unlikely).
> Bob
>
>    
Thanks for the advice about the cua-mode. I gave a read to the page and 
when I did M-x cua-mode, it got back to my favourite mode! Now I must 
figure out which command sequence is disabling the cua-mode in order 
that I don't do this anymore. I think that ad infinitum I will stop 
doing those mistakes. I noticed that emacs commands are easy to mistake 
one for another while typing, like, in an AZERTY kb, the C-x (one of the 
most used) for the C-w (after I deleted 100 lines of c code and saved 
the file unaware of that. By luck, I had a copy in the CVS).

Gabriel Teixeira



  reply	other threads:[~2010-08-20 17:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-20 12:08 Text selection can't be erased by pressing delete 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 [this message]
     [not found]   ` <mailman.3.1282326790.14034.help-gnu-emacs@gnu.org>
2010-08-20 22:24     ` Pascal J. Bourguignon
     [not found] <mailman.1.1282306148.7914.help-gnu-emacs@gnu.org>
2010-08-20 12:45 ` Pascal J. Bourguignon
2010-08-26 22:19   ` Xah Lee
2010-08-26 22:17 ` Xah Lee

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=4C6EBCED.5070302@sdesigns.eu \
    --to=gabriel_teixeira@sdesigns.eu \
    --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).