From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#40940: 27.0.91; project-query-replace-regexp stops too early Date: Wed, 29 Apr 2020 19:10:00 +0300 Message-ID: <83o8raxoh3.fsf@gnu.org> References: <871ro7ptk0.fsf@runbox.com> <9ba1394f-5a29-8e8d-93cf-9b794b8ebb98@yandex.ru> <83d07q217v.fsf@gnu.org> <87ftcmhezl.fsf@runbox.com> <831ro61yce.fsf@gnu.org> <83zhauzlt7.fsf@gnu.org> <83y2qexrra.fsf@gnu.org> <87blnal2at.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="71506"; mail-complaints-to="usenet@ciao.gmane.io" Cc: simenheg@runbox.com, monnier@IRO.UMontreal.CA, 40940@debbugs.gnu.org, dgutov@yandex.ru To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 29 18:11:14 2020 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 1jTpIo-000IRl-AW for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Apr 2020 18:11:14 +0200 Original-Received: from localhost ([::1]:45844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTpIn-0001p9-4y for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 29 Apr 2020 12:11:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43978) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTpId-0001ol-CV for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 12:11:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTpIc-000582-Gh for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 12:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:32850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jTpIc-00057m-49 for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 12:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jTpIb-00047s-TS for bug-gnu-emacs@gnu.org; Wed, 29 Apr 2020 12:11:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Apr 2020 16:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 40940 X-GNU-PR-Package: emacs Original-Received: via spool by 40940-submit@debbugs.gnu.org id=B40940.158817664215829 (code B ref 40940); Wed, 29 Apr 2020 16:11:01 +0000 Original-Received: (at 40940) by debbugs.gnu.org; 29 Apr 2020 16:10:42 +0000 Original-Received: from localhost ([127.0.0.1]:44396 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTpIA-000473-Tw for submit@debbugs.gnu.org; Wed, 29 Apr 2020 12:10:41 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:40710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jTpIA-00046n-0t for 40940@debbugs.gnu.org; Wed, 29 Apr 2020 12:10:34 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:58275) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTpI3-0004UH-JA; Wed, 29 Apr 2020 12:10:27 -0400 Original-Received: from [176.228.60.248] (port=2118 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jTpHz-0001yu-VV; Wed, 29 Apr 2020 12:10:25 -0400 In-Reply-To: <87blnal2at.fsf@gmx.de> (message from Michael Albinus on Wed, 29 Apr 2020 17:49:46 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Received-From: 209.51.188.43 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:179328 Archived-At: > From: Michael Albinus > Cc: Dmitry Gutov , simenheg@runbox.com, > monnier@IRO.UMontreal.CA, 40940@debbugs.gnu.org > Date: Wed, 29 Apr 2020 17:49:46 +0200 > > > Michael, can you confirm? (And in any case, this issue should > > be handled in the file-remote-p handler.) > > Tramp checks for all remote hosts whether they can expand "~/" (or > "~user/" in general). If possible, it does. > > Your patch uses `expand-file-name', and that's all what we have to say > to Tramp. My patch only calls expand-file-name on local file names. For remote file names, I've left the result of the call to file-remote-p unaltered. Would that be a problem if the file name, after stripping the remote protocol parts, started with "~/" ? And if so, what should be done here about these cases?