From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: How to get isearch-string, but only if I was in isearch? Date: Mon, 13 Feb 2017 02:41:32 +0100 Message-ID: <87poimkgtv.fsf@drachen> References: <87o9y7j3eo.fsf@mbork.pl> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486950135 3867 195.159.176.226 (13 Feb 2017 01:42:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2017 01:42:15 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) Cc: Help Gnu Emacs mailing list To: Marcin Borkowski Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 02:42:11 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd5ec-0000XG-Dl for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2017 02:42:10 +0100 Original-Received: from localhost ([::1]:54100 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cd5eg-0005fI-Ev for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Feb 2017 20:42:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55825) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cd5eD-0005Z9-Jz for help-gnu-emacs@gnu.org; Sun, 12 Feb 2017 20:41:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cd5eA-0008Gk-HK for help-gnu-emacs@gnu.org; Sun, 12 Feb 2017 20:41:45 -0500 Original-Received: from mout.web.de ([212.227.15.4]:57664) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cd5eA-0008GY-77 for help-gnu-emacs@gnu.org; Sun, 12 Feb 2017 20:41:42 -0500 Original-Received: from drachen.dragon ([94.218.216.157]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LxqwW-1cIRbd1exI-015Mn7; Mon, 13 Feb 2017 02:41:33 +0100 In-Reply-To: <87o9y7j3eo.fsf@mbork.pl> (Marcin Borkowski's message of "Sun, 12 Feb 2017 08:04:31 +0100") X-Provags-ID: V03:K0:VwCMZtYezBtoKOkx0Ty5wQbHLBvD3e1Rc/uxaxu/w5UtfMU3XfM 98XfjIQFlXIxC064CuZP7IFw8kyRyB7M7CY0kdRm9NNqBGHyAvvva9Vury2a803/JCuBq3y 6FzY6dvC+LTQ4zjiJiynJ8xBNuKAug+wRuOaN2ng6E/GnmzVm3oDkOKnZFLbCZ1a1BLBNIO fuIhxK/Pbo9R/Fbwa/Lvg== X-UI-Out-Filterresults: notjunk:1;V01:K0:gkpppqHTYO0=:S0WKI87Cze9FOOXFl4eBxg 6JgnW2u0iQJAO3khNzgxLzitSH4ZuFGFn3PM5L9IzFbGcL2p65skgJjfrq+TvSIt9rcVRSqR/ S+GuktvJ8G4xwCRLk4tmrvU9Xa2StgWq81uVJFPEb/vxOjla13D2M2wE1wmSWcWhyac6HBt0e tvB+1RlG8W/FvYxi7TZwz/TOrM90QiRjMn7DeGkE2WuOpHYXXl75cAnJWtC3Uuvl5HCu/sWrh 8SE7xk3piPdXw8vLMKpcdYxi3uJnYrOBx4inF5rl4DvQmvMhiLAIT20bETCUcIXR6XOUDwbr8 vwEQ9GAqMCOJVSGHyqmVWXFphVQP3plm4UMjwkSLU2WnIMG8rN0hKzXlpqEbcjWIs2Vts/yRS px0kZ6xBinMKOcnm8ZH3UVzFce5c1A0/6AjP2SAnrxDT1VmeUcjjIXbxGX836pthvB9Ycr/3U TGO+Nd9Qj2SuuAhnw+/ssSqJ7iEXuP2lWgEcESt99lFk2tIXcaNGy4SFfPgrd20xH7QSLbHoK 5ukwQnVJ96iwlbZAsVDxh/IAFHaL6PrchqwRCjikpippJ4olYn2HDMJnMVUCMhOtKx9oOdpeM A8Q62fw9fHQfOf3lb9ORRg82HgZGynfHQYoushGEvyFNg1O8jn0HNofKleUBEDSTSMkln9tg5 TtsznbwE9W4fqqvJRbiax0435WHl2cZYyneGcOdH8Ti+FM7dtpSHkBeENOCMzevjyiZK0j0Vn kZhB6+mpLXJnORAor7FoW24z379lz4JxFt5WMZ6MQUvco0P8lAEQwC/FnvD6RtQSKlwAAQ/Q X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 212.227.15.4 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112305 Archived-At: Marcin Borkowski 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.