[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get isearch-string, but only if I was in isearch?
From: |
Marcin Borkowski |
Subject: |
Re: How to get isearch-string, but only if I was in isearch? |
Date: |
Sat, 18 Feb 2017 17:10:03 +0100 |
User-agent: |
mu4e 0.9.19; emacs 26.0.50.5 |
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