unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Kelly Dean <kellydeanch@yahoo.com>
Cc: 12986@debbugs.gnu.org
Subject: bug#12986: Pressing backspace during isearch exits case-sensitive and word modes
Date: Thu, 29 Nov 2012 01:15:14 +0200	[thread overview]
Message-ID: <87a9u1jqzh.fsf@mail.jurta.org> (raw)
In-Reply-To: <1354124058.21763.YahooMailClassic@web141103.mail.bf1.yahoo.com> (Kelly Dean's message of "Wed, 28 Nov 2012 09:34:18 -0800 (PST)")

[please keep your replies Cc'd to 12986@debbugs.gnu.org]

>> <backspace> (isearch-delete-char) restores the previous search state.
>> If you want just to remove the last character from the search string,
>> you can type `C-M-w' (isearch-del-char).

> Sorry for the mistaken bug report. But it still seems to be a UI
> inconsistency: although the described behavior happens for word mode and
> case-insensitivity mode, it doesn't happen for regex mode, which it what
> led me to believe it was a bug for the first two. If it's supposed to
> happen for the first two, then shouldn't it happen for all three?

Good point.  `isearch-delete-char' (that uses `isearch-pop-state')
restores word mode but not regexp mode.  This looks like
unaccountable inconsistency.  Perhaps it should restore
regexp mode as well.

Case-insensitivity is already restored when you type <backspace>
but you can't see this because it has no indication in the prompt.
Maybe it should momentarily flash a case sensitivity indicator
when you type <backspace> like it does when you type `M-c'
(but only when <backspace> changes the state of case-insensitivity).

The recently added `isearch-lax-whitespace' could be saved/restored too.

For customizability a new user option could be added to define a list
of search states that the user wants to keep on the isearch stack.





       reply	other threads:[~2012-11-28 23:15 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1354124058.21763.YahooMailClassic@web141103.mail.bf1.yahoo.com>
2012-11-28 23:15 ` Juri Linkov [this message]
2013-06-02  9:49   ` bug#12986: Pressing backspace during isearch exits case-sensitive and word modes Juri Linkov
2020-10-13  2:26     ` Lars Ingebrigtsen
2021-05-10 11:20       ` Lars Ingebrigtsen
2021-05-11 17:56         ` Juri Linkov
2022-09-11 11:51           ` Lars Ingebrigtsen
2023-10-01  2:07             ` Stefan Kangas
2012-11-25  1:55 Kelly Dean
2012-11-25  9:32 ` Juri Linkov

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=87a9u1jqzh.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=12986@debbugs.gnu.org \
    --cc=kellydeanch@yahoo.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).