unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12987: Mode switching during isearch isn't user friendly
@ 2012-11-25  2:01 Kelly Dean
  2012-11-25  9:38 ` Juri Linkov
  0 siblings, 1 reply; 3+ messages in thread
From: Kelly Dean @ 2012-11-25  2:01 UTC (permalink / raw)
  To: 12987

This is a UI improvement suggestion, not a bug report.
Using 24.2, type:
onto to
Then do:
C-a C-s to
It highlights the first occurrence of "to" as the current match, and the second as the next match.
Then do: M-s w
It continues to highlight the first occurrence of "to", even though that occurrence no longer matches. It should remove the highlight immediately. Pressing C-s again will remove the highlight, which is not user-friendly; pressing C-s should never cause highlights to be removed.
This same problem applies to case-sensitivity mode (M-c) too.






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

* bug#12987: Mode switching during isearch isn't user friendly
  2012-11-25  2:01 bug#12987: Mode switching during isearch isn't user friendly Kelly Dean
@ 2012-11-25  9:38 ` Juri Linkov
  2021-06-01  6:35   ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Juri Linkov @ 2012-11-25  9:38 UTC (permalink / raw)
  To: Kelly Dean; +Cc: 12987

> This is a UI improvement suggestion, not a bug report.
> Using 24.2, type:
> onto to
> Then do:
> C-a C-s to
> It highlights the first occurrence of "to" as the current match,
> and the second as the next match.
> Then do: M-s w
> It continues to highlight the first occurrence of "to", even though that
> occurrence no longer matches. It should remove the highlight
> immediately. Pressing C-s again will remove the highlight, which is not
> user-friendly; pressing C-s should never cause highlights to be removed.
> This same problem applies to case-sensitivity mode (M-c) too.

A pending search doesn't jump to the next match.  It displays the
text "pending" in the prompt inviting you to type `C-s' or `C-r'
or more togging commands.

A failed search doesn't remove highlighting too.  E.g. when you type
`C-s tofoo' then the first occurrence of "to" is still highlighted.

If you want `M-s w' to jump to the next match, you can create a new
command like `isearch-toggle-word' where the line

  (setq isearch-success t isearch-adjusted t)

is replaced with

  (isearch-search) (isearch-push-state)





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

* bug#12987: Mode switching during isearch isn't user friendly
  2012-11-25  9:38 ` Juri Linkov
@ 2021-06-01  6:35   ` Lars Ingebrigtsen
  0 siblings, 0 replies; 3+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-01  6:35 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 12987, Kelly Dean

Juri Linkov <juri@jurta.org> writes:

> If you want `M-s w' to jump to the next match, you can create a new
> command like `isearch-toggle-word' where the line
>
>   (setq isearch-success t isearch-adjusted t)
>
> is replaced with
>
>   (isearch-search) (isearch-push-state)

So if I read this correctly, there isn't anything here that we should
change, and I'm closing this bug report.  If this is mistaken, please
respond to the debbugs address, and we'll reopen.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

end of thread, other threads:[~2021-06-01  6:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-25  2:01 bug#12987: Mode switching during isearch isn't user friendly Kelly Dean
2012-11-25  9:38 ` Juri Linkov
2021-06-01  6:35   ` Lars Ingebrigtsen

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