From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#61613: 30.0.50; ffap-other-window ignores ffap-require-prefix Date: Mon, 20 Feb 2023 16:49:15 +0100 Message-ID: <20230220154915.qm4smcoohaiyc52c@Ergus> References: <87pma6tlth.fsf.ref@aol.com> <87pma6tlth.fsf@aol.com> <837cwexb7l.fsf@gnu.org> <2543743F-F7A4-4474-8B89-55E472577DB7@aol.com> <833572x8oa.fsf@gnu.org> <20230219213255.rhyiu44udzpgqsq2@Ergus> <83r0ukv6ut.fsf@gnu.org> Reply-To: Ergus Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37885"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61613@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 20 16:50:20 2023 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 1pU8Qk-0009jL-MT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Feb 2023 16:50:19 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pU8QY-0006md-17; Mon, 20 Feb 2023 10:50:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pU8QV-0006lx-9s for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 10:50:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pU8QU-000340-Uo for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 10:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pU8QT-0003Qu-VL for bug-gnu-emacs@gnu.org; Mon, 20 Feb 2023 10:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ergus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Feb 2023 15:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61613 X-GNU-PR-Package: emacs Original-Received: via spool by 61613-submit@debbugs.gnu.org id=B61613.167690817313158 (code B ref 61613); Mon, 20 Feb 2023 15:50:01 +0000 Original-Received: (at 61613) by debbugs.gnu.org; 20 Feb 2023 15:49:33 +0000 Original-Received: from localhost ([127.0.0.1]:53295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU8Px-0003Q6-07 for submit@debbugs.gnu.org; Mon, 20 Feb 2023 10:49:32 -0500 Original-Received: from sonic315-13.consmr.mail.bf2.yahoo.com ([74.6.134.123]:37234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pU8Pu-0003Pq-0y for 61613@debbugs.gnu.org; Mon, 20 Feb 2023 10:49:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1676908160; bh=JreDubol9X19jmfScFvJRfP7mwQKJPm5X/biH/FGToo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From:Subject:Reply-To; b=bmyig1q6UibcVFufqG3r8G3eLJGHt06ykEOhL98128Dg5N4kWOSM43XN5mEbXj7TMC5L8eEwF0IVaVVAFCVdfACX1h/sgrPDCXgkTSjG7UZyqFOfEDosRbT/5pFAc337x6aRDnvqGaAlWaJiFEFb9X+BdJ0mD6yfXL6avdoSFybp19Zv6mHxW07EDQerPwK72jBFGp3PFIVsHenLQaOtn2jQ6kjF1iY6pSlEhXggZuigr4fd7A6y4CmKC4AvyH0hbTK0XnM+k4Y281/bWMYszI1bJCrw+J8rdgl0xMAHQNP6myDUrtsaZsI/KtykMNWbEBgsyGVBOttaz4lZT6Rmjw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676908160; bh=4KVQtFdy4TQbdFhTbiUU7YhsAAI+9q2KR/CSjcugmY1=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=rfutpjX5lNsBBvbTsx0IaYGV1BWXIkX29kzs88od91C/0yRU6MmUsuE2vHRq3boIdPwb3jLStZKoCCdcFN7569P6nK6aD4Awx/bx7Hgvu/HJfobAezMEA6zbzAfS+5fSAzmSskrT76r/hhnKDJV4A/V3otOt/NLy4rXRx3lGENeKT1t70+mCGoRnV3s/j7cy7tfyLHku6L8aNCRkd+xSEKpWLet94z+Qsl/3jGWV3bloCei3fLtAe1yqQaRNaDxaovyhBe/M7aqiNHS+ET3433c7l9kFC/aULZbFCJHJh4S9rs/7zyKXwT+NzqeVnMHbPOhjAeMr8xJoIZgXDGoWzA== X-YMail-OSG: _spSll0VM1kC929ZBmraTqHlONm6QSbkm1ho5lKhTvECN7RnNU86e6n3pruV8bd .25PveN7JZOt_5lYdys6c_haeXgTeEOsIevvomfsEOllLmbbUq1JfYaHoUI_iuaDBby1GKBlfJa_ G4bEZ2Ueds81NTvcIPd7XFsDyoZ6adcTzinMp9pawljoPqtlUZE500HSl5O9Hi2wSGmzSgezAQ0C sswHNV3ZfAOp_MkHE96r3S1NIn_cgy8weJU4r8y2Q88fNBJO0aa2nKu33EYZ2lopop3AbLzb61KC GqWSTUSuQ.uuMEPZFj_0jgJQDkRqe6mKslsEo4Ulc0PSK9g6nMN5J41UWtTDnu9OmddDldqWoQG2 dxjHHlC6v0i6FGnYhVeR.2FYffO1bpxpu4A7tx7fseXgWLTXXc0MXZHzoqcs938hvxftmwM2dzhm 2ontmmycXjd2rfKO2s5jXCayOmGRkCnMhKO7roZN6iZcsrcJG_g3BIupnr5bBMTZSp8GqOPCcNcI csas2lWbMRmuuQTCGkq5F.aQZAepV3l7VxezBQfmE8bQen.G.vLGrirIHOfNHix8hqimg47EcdQ2 MyJ5m5Nm8bdvGeJN1gPPPYCjUJFDIVySSjIT.hzHMw4.I9dldG2xqOSlitWHYNDtd_G0cQwMt7PK U1x_0RPlinDN1YlC4325il6h1_hRd88AuPU4Bb4qNKjhx6voAIbxwRyo1qraxrsK1EhhdSDPlLEV yS4AV7l7gj9n.Y_EvRA5nQ36M.W2w1ZWRr0jUmXDWlIwedCQwa7JOa_N8Rzd7uRXV7umFovEt82V pWmfD..m1O5lgu7bco8c9231CX1N59COAaNba8G81w X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.bf2.yahoo.com with HTTP; Mon, 20 Feb 2023 15:49:20 +0000 Original-Received: by hermes--production-ir2-65c64dfd66-ntl7g (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID fbff28c09d26ddc965c9d26d36af5a29; Mon, 20 Feb 2023 15:49:18 +0000 (UTC) Content-Disposition: inline In-Reply-To: <83r0ukv6ut.fsf@gnu.org> X-Mailer: WebService/1.1.21183 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256194 Archived-At: On Mon, Feb 20, 2023 at 02:50:18PM +0200, Eli Zaretskii wrote: >> Date: Sun, 19 Feb 2023 22:32:55 +0100 >> From: Ergus >> Cc: 61613@debbugs.gnu.org >> >> On Sun, Feb 19, 2023 at 12:15:49PM +0200, Eli Zaretskii wrote: >> >> Date: Sun, 19 Feb 2023 11:09:04 +0100 >> >> From: Ergus >> >> CC: 61613@debbugs.gnu.org >> >> >> >> emacs -Q >> >> M-x ffap-bindings >> >> M-: (setq ffap-require-prefix t) >> >> Write /somedir >> >> >> >> C-x C-f (you see: ~/) >> >> >> >> But >> >> >> >> C-x 4 f (you see /somedir) >> >> >> >> This seems to be related with the ffap-prompter called before the switch then? >> > >> >Yes, I think so. >> >> Hi Eli: >> >> So, what do you think? The fix may be to put the ffap-require-prefix >> condition in ffap-read-file-or-url directly or in ffap-prompter?? > >I don't understand what you want to achieve by that, so please >elaborate. ffap-file-finder's default value is a command that doesn't >display the file in another window, so how will ffap-require-prefix >help here? From the example above I expect that after: (setq ffap-require-prefix t) C-x 4 f You see ~/ instead of /somedir. Like when we do C-x C-f. As I said before, ffap-prompter is causing this because it is called before switching window. So ffap-file-finder is actually called at point before going to another window. And it does not have any ffap-require-prefix condition. My question is actually that. We need to put the ffap-require-prefix condition somewhere in ffap-read-file-or-url or ffap-prompter. Because this problem happens with the other-frame and other-tab variants as well.