From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.bugs Subject: bug#47894: 28.0.50; isearch does not work if enable-recursive-minibuffers is on and some input method is set. Date: Wed, 21 Apr 2021 06:21:12 +0000 Message-ID: <192e82f20f15370f285a@heytings.org> References: <87eef6p8bh.fsf@gmail.com> <874kg0d8ui.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="oCDxxvr3Hc" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40769"; mail-complaints-to="usenet@ciao.gmane.io" Cc: max.brieiev@gmail.com, 47894@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 21 08:22:36 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lZ6Fv-000ASW-04 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 08:22:35 +0200 Original-Received: from localhost ([::1]:60948 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZ6Fu-0003mD-2i for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 02:22:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60064) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZ6FO-0003hJ-U4 for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 02:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZ6FO-0006my-KZ for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 02:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZ6FO-00009S-D3; Wed, 21 Apr 2021 02:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gregory Heytings Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bugs@gnus.org Resent-Date: Wed, 21 Apr 2021 06:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47894 X-GNU-PR-Package: emacs,gnus Original-Received: via spool by 47894-submit@debbugs.gnu.org id=B47894.1618986076502 (code B ref 47894); Wed, 21 Apr 2021 06:22:02 +0000 Original-Received: (at 47894) by debbugs.gnu.org; 21 Apr 2021 06:21:16 +0000 Original-Received: from localhost ([127.0.0.1]:56796 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZ6Ee-000081-04 for submit@debbugs.gnu.org; Wed, 21 Apr 2021 02:21:16 -0400 Original-Received: from heytings.org ([95.142.160.155]:46854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZ6Ec-00007q-FM for 47894@debbugs.gnu.org; Wed, 21 Apr 2021 02:21:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1618986073; bh=ZOJFqGpx+WpndDCNk8TVLW8c/ucfwsio99p4H7HGbDM=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=MVq6nfiIEjW0xMJmMn6opHHlfNS3WXiO68o8In77AV03AejdTlq8RwPLTeLHNfCQs 0tn01lnlK9dSGgGjcMjnOk5EFGk2+FlR4HHu3KNsZ86xmktMFWIB3p4sJ3Pf29qHym djR37yM5YwEqxJ3uqnkudkLEcxl/AiBa/IeFcKJwik9LxbRboHX2C9nHzTUHmPrx9W 2pM6yOCtxiofEYl1SIZ2jew5cBcNS4Al8CJFzXyyJtOi3wpUTQgsKbVpfyZQiLCIX7 5Synw8zxbvrZ4NVF6p2B0Ci4AYiuZw/1Ah8K7n6QNRbiAkGAo7Nq2eorLnrpvLNd+O Rr10A62xhbiuA== In-Reply-To: Content-ID: <192e82f20fb40b9cd2b1@heytings.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204576 Archived-At: --oCDxxvr3Hc Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Content-ID: <192e82f20f0c2fb2d990@heytings.org> >> Additionally, on emacs-devel Zhiwei Chen said this: >> >> It failed to work when buffer is auto selected via >> `display-buffer-alist=E2=80=99. When the point moves to the *Occur* bu= ffer, >> typing =E2=80=9Cn=E2=80=9D, =E2=80=9Cp=E2=80=9D still sends =E2=80=9Cn= =E2=80=9D, =E2=80=9Cp=E2=80=9D to isearch. >> >> (defun display-buffer-select (buffer alist) >> (let ((window (display-buffer-below-selected buffer alist))) >> (when (window-live-p window) >> (select-window window)))) >> >> (setq display-buffer-alist '(("\\*Occur\\*" (display-buffer-select)))) >>=20 >> Maybe this could be handled as well? > > And this one is strange, too, for two reasons: > > - display-buffer-select is not a documented action, and does not even=20 > appear in the sources (even Google does not find it!), yet it works; > Whooops, I guess I was becoming a bit tired after too many hours of=20 hacking, of course it's defined right above ;-) Anyway, the other=20 question is relevant : > > - After this action, point has moved, but (current-buffer) does not=20 > return the buffer where point is; (window-buffer (selected-window))=20 > does. It seems to me that at the top-level these two should always be=20 > equal; apparently they are not. > > Again it's not clear to me whether the bug is here or elsewhere, but the= =20 > attached patch fixes the original problem and the two bugs. > > Cc'ing Martin, who may have some insights on the above two points. > --oCDxxvr3Hc--