[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: |
Michael Heerdegen |
Subject: |
Re: How to get isearch-string, but only if I was in isearch? |
Date: |
Mon, 13 Feb 2017 02:41:32 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
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.
> (I could use an approach similar to the above, but with a longer list
> of commands, including most/all things from isearch-mode-map, but this
> seems fragile and far from elegant.)
Maybe you could use `isearch-mode-end-hook' in some clever way?
Regards,
Michael.