From: Marcin Borkowski <mbork@mbork.pl>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: How to get isearch-string, but only if I was in isearch?
Date: Sat, 18 Feb 2017 17:10:03 +0100 [thread overview]
Message-ID: <87d1efo4ys.fsf@jane> (raw)
In-Reply-To: <87h93yismg.fsf@mbork.pl>
On 2017-02-13, at 06:09, Marcin Borkowski <mbork@mbork.pl> wrote:
> On 2017-02-13, at 02:41, Michael Heerdegen <michael_heerdegen@web.de> wrote:
>
>> Marcin Borkowski <mbork@mbork.pl> writes:
>>
>>> Is there a way for an Emacs command to "know" that isearch was active
>>> when it was invoked?
>>
>> Looking at how things are implemented...maybe there isn't.
>
>> Maybe you could use `isearch-mode-end-hook' in some clever way?
>
> Hm. I could use it to set 'this-command to 'isearch. I wonder what
> could break then, though...
Correction: 'last-command. See here for a solution:
http://mbork.pl/2017-02-18_Using_isearch-string_on_exit_from_isearch
Thanks,
--
Marcin Borkowski
prev parent reply other threads:[~2017-02-18 16:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-12 7:04 How to get isearch-string, but only if I was in isearch? Marcin Borkowski
2017-02-13 1:41 ` Michael Heerdegen
2017-02-13 5:09 ` Marcin Borkowski
2017-02-18 16:10 ` Marcin Borkowski [this message]
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=87d1efo4ys.fsf@jane \
--to=mbork@mbork.pl \
--cc=help-gnu-emacs@gnu.org \
--cc=michael_heerdegen@web.de \
/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.