all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Monsanto <chris@monsan.to>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>,
	Dani Moncayo <dmoncayo@gmail.com>
Subject: Re: Isearch: retrieve last successful search string from when you quit (`C-g')
Date: Mon, 1 Oct 2012 11:30:05 -0400	[thread overview]
Message-ID: <CAC5n7THYeZQ=PBaZ1myzaGGxoa0r_8o+ZhxfKERQw_Umdb2sxQ@mail.gmail.com> (raw)
In-Reply-To: <0860CD16FA6A43A7B3FB40FE34C6B934@us.oracle.com>

On Mon, Oct 1, 2012 at 11:21 AM, Drew Adams <drew.adams@oracle.com> wrote:
>> To be honest, I always thought there was some bug in isearch that made
>> it forget my search strings.  I'd love it if isearch just
>> unconditionally remembered my searches.
>
> It is not a bug; it is by design.  And a good design it is.
> AFAIK, no one has ever filed a bug report complaining that abandoned searches
> are not saved in the histories.

I rarely use isearch to find things that I don't already know exist. I
use occur or grep for that and use next-error/prev-error to navigate.
When I hit C-g, it means "I don't want to operate at the search
position, I was just looking for something and now I'm ready to go
back to where I was." Basically, a shortcut for accept the search and
pop mark.

> I doubt if you would really love it, in practice.  But it is simple for you to
> try it, to see. ...
> But for the last such successful-but-unused search string, yes, there should
> perhaps be a way to get it back.  That is what I proposed, not systematically
> adding unused searches to the history.

That's your speculation :) I'm just putting my two cents in for what
works best for my (perhaps eccentric, but that's none of your
business!) workflow. Since there is a difference in opinion, a user
configurable flag is what I would advocate for.



  reply	other threads:[~2012-10-01 15:30 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-30 21:09 Isearch: retrieve last successful search string from when you quit (`C-g') Drew Adams
2012-10-01  6:41 ` Dani Moncayo
2012-10-01 14:57   ` Stefan Monnier
2012-10-01 15:05     ` Christopher Monsanto
2012-10-01 15:11       ` Dani Moncayo
2012-10-01 15:22         ` Drew Adams
2012-10-01 15:21       ` Drew Adams
2012-10-01 15:30         ` Christopher Monsanto [this message]
2012-10-01 15:40           ` Drew Adams
2012-10-01 15:41           ` Dani Moncayo
2012-10-01 16:00             ` Drew Adams
2012-10-01 17:49               ` Juri Linkov
2012-10-01 18:21                 ` Drew Adams
2012-10-01 18:31               ` Dani Moncayo
2012-10-01 18:47                 ` Drew Adams
2012-10-01 18:50                   ` Christopher Monsanto
2012-10-01 18:54                   ` Lennart Borgman
2012-10-01 20:00                     ` Drew Adams
2012-10-01 19:12                   ` Dani Moncayo
2012-10-02 11:26             ` Nix
2012-10-02 13:55               ` Drew Adams
2012-10-02 16:48               ` Eli Zaretskii
2012-10-04 11:37                 ` Nix
2012-10-05 22:58         ` Andrew W. Nosenko
2012-10-01 15:18     ` Drew Adams
2012-10-02  3:22       ` Stephen J. Turnbull
2012-10-02 12:37         ` Richard Stallman
2012-10-02 14:05           ` Isearch: retrieve last successful search string from when youquit (`C-g') Drew Adams
2012-10-01 15:17   ` Isearch: retrieve last successful search string from when you quit (`C-g') Drew Adams
2012-10-02 11:29     ` Nix
2012-10-02 14:03       ` Drew Adams

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='CAC5n7THYeZQ=PBaZ1myzaGGxoa0r_8o+ZhxfKERQw_Umdb2sxQ@mail.gmail.com' \
    --to=chris@monsan.to \
    --cc=dmoncayo@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.