all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to backspace in isearch-forward-regexp
@ 2009-07-14 18:11 KARR, DAVID (ATTCINW)
  0 siblings, 0 replies; 6+ messages in thread
From: KARR, DAVID (ATTCINW) @ 2009-07-14 18:11 UTC (permalink / raw)
  To: help-gnu-emacs

After installing GNU Emacs on some new boxes recently, I finally
realized one thing that is behaving differently than what I'm used to.

When I'm using isearch-forward-regexp, I can type letter by letter, and
it will update the first match found.  I used to be able to hit
backspace while typing to remove the last character entered in the
search string, in case I made a mistake entering the string.

Now, when I hit backspace, it exits isearch-forward-regexp and sends the
backspace directly to the buffer I was searching in, usually deleting
the previous character at the end of the last match.

I have a feeling this must have something to do with the binding of the
backspace key in Cygwin.

I'm using Emacs 23.0.92.1 on Cygwin 1.5.




^ permalink raw reply	[flat|nested] 6+ messages in thread

* How to backspace in isearch-forward-regexp
@ 2009-07-14 21:50 David Karr
  2009-07-14 22:48 ` Drew Adams
  2009-07-15 10:25 ` Bernardo
  0 siblings, 2 replies; 6+ messages in thread
From: David Karr @ 2009-07-14 21:50 UTC (permalink / raw)
  To: help-gnu-emacs

(I apologize if this is a duplicate post. I tried using the email
gateway, but it didn't seem to work, or it takes too long.)

After installing GNU Emacs on some new boxes recently, I finally
realized one thing that is behaving differently than what I'm used to.

When I'm using isearch-forward-regexp, I can type letter by letter,
and it will update the first match found.  I used to be able to hit
backspace while typing to remove the last character entered in the
search string, in case I made a mistake entering the string.

Now, when I hit backspace, it exits isearch-forward-regexp and sends
the backspace directly to the buffer I was searching in, usually
deleting the previous character at the end of the last match.

I have a feeling this must have something to do with the binding of
the backspace key in Cygwin.

I'm using Emacs 23.0.92.1 on Cygwin 1.5.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: How to backspace in isearch-forward-regexp
  2009-07-14 21:50 How to backspace in isearch-forward-regexp David Karr
@ 2009-07-14 22:48 ` Drew Adams
  2009-07-14 22:59   ` Peter Dyballa
  2009-07-15 10:25 ` Bernardo
  1 sibling, 1 reply; 6+ messages in thread
From: Drew Adams @ 2009-07-14 22:48 UTC (permalink / raw)
  To: 'David Karr', help-gnu-emacs

> After installing GNU Emacs on some new boxes recently, I finally
> realized one thing that is behaving differently than what I'm used to.
> 
> When I'm using isearch-forward-regexp, I can type letter by letter,
> and it will update the first match found.  I used to be able to hit
> backspace while typing to remove the last character entered in the
> search string, in case I made a mistake entering the string.
> 
> Now, when I hit backspace, it exits isearch-forward-regexp and sends
> the backspace directly to the buffer I was searching in, usually
> deleting the previous character at the end of the last match.
> 
> I have a feeling this must have something to do with the binding of
> the backspace key in Cygwin.
> 
> I'm using Emacs 23.0.92.1 on Cygwin 1.5.

Sounds like you should file a bug. But you might want to get the latest pretest
first, to see if the problem is already fixed.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to backspace in isearch-forward-regexp
  2009-07-14 22:48 ` Drew Adams
@ 2009-07-14 22:59   ` Peter Dyballa
  0 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2009-07-14 22:59 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs


Am 15.07.2009 um 00:48 schrieb Drew Adams:

> Sounds like you should file a bug. But you might want to get the  
> latest pretest
> first, to see if the problem is already fixed.


Same version on Mac OS X does not show this behaviour. A backspace  
entered returns to previous places found by the evolving regular  
expression and eats this one, not the contents of the buffer  
searched. And the search is not interrupted. (Recent version is  
23.1.50, so there is probably a stable 23.1 released…)

--
Greetings

   Pete

With Capitalism man exploits man. With communism it's the exact  
opposite.







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to backspace in isearch-forward-regexp
  2009-07-14 21:50 How to backspace in isearch-forward-regexp David Karr
  2009-07-14 22:48 ` Drew Adams
@ 2009-07-15 10:25 ` Bernardo
  2009-07-15 17:20   ` KARR, DAVID (ATTCINW)
  1 sibling, 1 reply; 6+ messages in thread
From: Bernardo @ 2009-07-15 10:25 UTC (permalink / raw)
  To: help-gnu-emacs



> (I apologize if this is a duplicate post. I tried using the email
> gateway, but it didn't seem to work, or it takes too long.)
> 
> After installing GNU Emacs on some new boxes recently, I finally
> realized one thing that is behaving differently than what I'm used to.
> 
> When I'm using isearch-forward-regexp, I can type letter by letter,
> and it will update the first match found.  I used to be able to hit
> backspace while typing to remove the last character entered in the
> search string, in case I made a mistake entering the string.
> 
> Now, when I hit backspace, it exits isearch-forward-regexp and sends
> the backspace directly to the buffer I was searching in, usually
> deleting the previous character at the end of the last match.
> 
> I have a feeling this must have something to do with the binding of
> the backspace key in Cygwin.
> 
> I'm using Emacs 23.0.92.1 on Cygwin 1.5.
> 

does it happen when you start Emacs with -Q command line option?
(it's not happening here but i'm not running the Cygwin version)

in the meantime something like this:
(define-key isearch-mode-map [backspace] 'isearch-delete-char)

in your init file (.emacs) could provide a relief




^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: How to backspace in isearch-forward-regexp
  2009-07-15 10:25 ` Bernardo
@ 2009-07-15 17:20   ` KARR, DAVID (ATTCINW)
  0 siblings, 0 replies; 6+ messages in thread
From: KARR, DAVID (ATTCINW) @ 2009-07-15 17:20 UTC (permalink / raw)
  To: bernardo.bacic, help-gnu-emacs

> -----Original Message-----
> From: help-gnu-emacs-bounces+dk068x=att.com@gnu.org [mailto:help-gnu-
> emacs-bounces+dk068x=att.com@gnu.org] On Behalf Of Bernardo
> Sent: Wednesday, July 15, 2009 3:26 AM
> To: help-gnu-emacs@gnu.org
> Subject: Re: How to backspace in isearch-forward-regexp
> 
> 
> 
> > (I apologize if this is a duplicate post. I tried using the email
> > gateway, but it didn't seem to work, or it takes too long.)
> >
> > After installing GNU Emacs on some new boxes recently, I finally
> > realized one thing that is behaving differently than what I'm used
> to.
> >
> > When I'm using isearch-forward-regexp, I can type letter by letter,
> > and it will update the first match found.  I used to be able to hit
> > backspace while typing to remove the last character entered in the
> > search string, in case I made a mistake entering the string.
> >
> > Now, when I hit backspace, it exits isearch-forward-regexp and sends
> > the backspace directly to the buffer I was searching in, usually
> > deleting the previous character at the end of the last match.
> >
> > I have a feeling this must have something to do with the binding of
> > the backspace key in Cygwin.
> >
> > I'm using Emacs 23.0.92.1 on Cygwin 1.5.
> >
> 
> does it happen when you start Emacs with -Q command line option?
> (it's not happening here but i'm not running the Cygwin version)
> 
> in the meantime something like this:
> (define-key isearch-mode-map [backspace] 'isearch-delete-char)
> 
> in your init file (.emacs) could provide a relief

Yes, it works when I start with "-Q", and the "define-key" also fixes
it.  From that information, I would conclude that the following line,
which I added to get backspace to work normally in text to delete the
previous char, is likely what is causing this:

(global-set-key [backspace] 'delete-backward-char)

I've now added that "define-key" line after this one, and now backspace
works properly in both normal editing, and in isearch.




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-15 17:20 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-14 21:50 How to backspace in isearch-forward-regexp David Karr
2009-07-14 22:48 ` Drew Adams
2009-07-14 22:59   ` Peter Dyballa
2009-07-15 10:25 ` Bernardo
2009-07-15 17:20   ` KARR, DAVID (ATTCINW)
  -- strict thread matches above, loose matches on Subject: below --
2009-07-14 18:11 KARR, DAVID (ATTCINW)

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.