From unknown Mon Jun 16 23:43:39 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44822 <44822@debbugs.gnu.org> To: bug#44822 <44822@debbugs.gnu.org> Subject: Status: 27.1; Regression in `ffap-read-file-or-url' Reply-To: bug#44822 <44822@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:43:39 +0000 retitle 44822 27.1; Regression in `ffap-read-file-or-url' reassign 44822 emacs submitter 44822 Drew Adams severity 44822 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 23 12:24:14 2020 Received: (at submit) by debbugs.gnu.org; 23 Nov 2020 17:24:14 +0000 Received: from localhost ([127.0.0.1]:51001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khFZW-0006vx-GO for submit@debbugs.gnu.org; Mon, 23 Nov 2020 12:24:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:40170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khFZV-0006vq-3f for submit@debbugs.gnu.org; Mon, 23 Nov 2020 12:24:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38752) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khFZU-0004En-3I for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 12:24:12 -0500 Received: from aserp2130.oracle.com ([141.146.126.79]:60316) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khFZR-0007Wp-NN for bug-gnu-emacs@gnu.org; Mon, 23 Nov 2020 12:24:11 -0500 Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0ANHKeRe007588 for ; Mon, 23 Nov 2020 17:23:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=R33mmHWzVARRIKutwRonck/othxaQTXnbUwgyCN0LGQ=; b=lHBQTOhUmHRjPBgx9jjE25uWykbL4rofZY7ye/FOSvF2t4UYzsIsEL+K49IgGcOjC6c2 W3X0OLWvfuRvXbhQ0YTAyE3cEqP/Qte+spEQRO4fy5f2HFT/O34BT1W+9OsVjLeQ56HN ikBy/K3RX0Fjoun0xEyvhvYgsDoudMgbh2hPhquGhgxvQBbPzXVsDX9FQFLhWZcL100v 0o+K7xXr9kMvCWDEp++RQ4BGNMT2yHT5VpyM04CTeerJJe5EgGur9spSLCITtGCqUoo5 ksYXh0xcUTYxY9F+GbPbRF8JmGeG+vcupAVwj/ieMR4dRwM0s6XLVFaiuDj8z1apUmZd cg== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by aserp2130.oracle.com with ESMTP id 34xrdaphtn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 23 Nov 2020 17:23:40 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0ANHFu3j169952 for ; Mon, 23 Nov 2020 17:23:39 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3020.oracle.com with ESMTP id 34ycnr7dgx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 23 Nov 2020 17:23:39 +0000 Received: from abhmp0005.oracle.com (abhmp0005.oracle.com [141.146.116.11]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0ANHNc3G027997 for ; Mon, 23 Nov 2020 17:23:38 GMT MIME-Version: 1.0 Message-ID: Date: Mon, 23 Nov 2020 09:23:37 -0800 (PST) From: Drew Adams To: bug-gnu-emacs@gnu.org Subject: 27.1; Regression in `ffap-read-file-or-url' X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9814 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 suspectscore=1 mlxlogscore=941 phishscore=0 spamscore=0 malwarescore=0 adultscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011230115 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9814 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 impostorscore=0 mlxscore=0 mlxlogscore=966 spamscore=0 phishscore=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 adultscore=0 suspectscore=1 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011230115 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.oracle.com X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) `ffap-read-file-or-url' now reads a URL as a file name, truncating to remove a prefix such as http:/. Prior to Emacs 27, it correctly returned the URL. If point is not on a URL, then the guess is nil. The user is prompted (as before) with the default directory as default. If the user rejects that default value and replaces it by a URL (e.g. yanking), then `ffap-read-file-or-url' should just return that URL, as it has always done. In Emacs 27, it instead tries to handle it as a file name, removing the prefix up to the first `/' before a non-/ char. emacs -Q ;; With point not on a URL or file name: (ffap-read-file-or-url "URL: " nil) ;; User is prompted, with the default-directory as default: URL: /my/default/dir/ ;; User pastes a URL after that or replaces that with a URL. URL: /my/default/dir/http://foobar.com RET ;; or URL: http://foobar.com RET ;; This is returned: /foobar.com In Emacs 26.3 the URL entered by the user is returned correctly. A main use of `read-file-or-url' is to prompt for and read a URL. If a user enters a URL when FFAP has not been able to guess a URL, FFAP now just treats the input as a filename. It treats prefix `http:/' the same way it would treat prefix `c:' on MS Windows. Reading a URL is maybe the main use case of `ffap-read-file-or-url'. (Ther= e is no `ffap-read-url'.) It's now broken. In GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-12 built on CIRROCUMULUS Repository revision: 86d8d76aa36037184db0b2897c434cdaab1a9ae8 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.18362 System Description: Microsoft Windows 10 Pro (v10.0.1903.18362.1139) From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 23 12:53:52 2020 Received: (at 44822) by debbugs.gnu.org; 23 Nov 2020 17:53:52 +0000 Received: from localhost ([127.0.0.1]:51065 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khG2B-0007ij-Qz for submit@debbugs.gnu.org; Mon, 23 Nov 2020 12:53:52 -0500 Received: from eggs.gnu.org ([209.51.188.92]:59208) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khG2A-0007iW-Ca for 44822@debbugs.gnu.org; Mon, 23 Nov 2020 12:53:50 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50076) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khG24-0004Ld-9f; Mon, 23 Nov 2020 12:53:44 -0500 Received: from [176.228.60.248] (port=2812 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1khG1x-0001ZB-Qi; Mon, 23 Nov 2020 12:53:40 -0500 Date: Mon, 23 Nov 2020 19:53:34 +0200 Message-Id: <83pn44ufhd.fsf@gnu.org> From: Eli Zaretskii To: Thierry Volpiatto , Stefan Monnier In-Reply-To: (message from Drew Adams on Mon, 23 Nov 2020 09:23:37 -0800 (PST)) Subject: Re: bug#44822: 27.1; Regression in `ffap-read-file-or-url' References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44822 Cc: 44822@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Mon, 23 Nov 2020 09:23:37 -0800 (PST) > From: Drew Adams > > `ffap-read-file-or-url' now reads a URL as a file name, truncating to > remove a prefix such as http:/. Prior to Emacs 27, it correctly > returned the URL. > > If point is not on a URL, then the guess is nil. The user is prompted > (as before) with the default directory as default. If the user rejects > that default value and replaces it by a URL (e.g. yanking), then > `ffap-read-file-or-url' should just return that URL, as it has always > done. In Emacs 27, it instead tries to handle it as a file name, > removing the prefix up to the first `/' before a non-/ char. > > emacs -Q > > ;; With point not on a URL or file name: > > (ffap-read-file-or-url "URL: " nil) > > ;; User is prompted, with the default-directory as default: > > URL: /my/default/dir/ > > ;; User pastes a URL after that or replaces that with a URL. > > URL: /my/default/dir/http://foobar.com RET > ;; or > URL: http://foobar.com RET > > ;; This is returned: /foobar.com > > In Emacs 26.3 the URL entered by the user is returned correctly. > > A main use of `read-file-or-url' is to prompt for and read a URL. If a > user enters a URL when FFAP has not been able to guess a URL, FFAP now > just treats the input as a filename. It treats prefix `http:/' the same > way it would treat prefix `c:' on MS Windows. > > Reading a URL is maybe the main use case of `ffap-read-file-or-url'. (There is no `ffap-read-url'.) It's now broken. Thierry and Stefan, these changes seem to have been done by you. Can you please take a look at this issue? Would it be possible to fix this for Emacs 27.2? From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 26 19:39:02 2020 Received: (at control) by debbugs.gnu.org; 27 Nov 2020 00:39:02 +0000 Received: from localhost ([127.0.0.1]:43255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiRmw-00030j-AT for submit@debbugs.gnu.org; Thu, 26 Nov 2020 19:39:02 -0500 Received: from dog.birch.relay.mailchannels.net ([23.83.209.48]:22379) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kiRmg-000307-2r; Thu, 26 Nov 2020 19:39:01 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 6493D1213B8; Fri, 27 Nov 2020 00:38:44 +0000 (UTC) Received: from pdx1-sub0-mail-a52.g.dreamhost.com (100-96-9-157.trex.outbound.svc.cluster.local [100.96.9.157]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id F2A131218E2; Fri, 27 Nov 2020 00:38:43 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a52.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.10); Fri, 27 Nov 2020 00:38:44 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Desert-Desert: 058b153e20704365_1606437524082_1304361023 X-MC-Loop-Signature: 1606437524081:2532651604 X-MC-Ingress-Time: 1606437524081 Received: from pdx1-sub0-mail-a52.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a52.g.dreamhost.com (Postfix) with ESMTP id A838E7F21F; Thu, 26 Nov 2020 16:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=6AP7yEgWCS2IS94NA6E2LSrYWSI=; b=LwGqLi9swokip ZmAGNqt/p8R5kWzLSSEYGGPiYc0vH2DyM3nG9LyYk3N+mN+fvSa5Nqw5UTD/c5dy JZdGjEjkJGmU7u02aaUJHU1+7LXMTmS6UOrzREGmnxdBuaBK1iskO3ZCVMioqeCV VrI7Z7r10CU3ai7pJMK19bpSTwMldM= Received: from jidanni.org (114-41-11-247.dynamic-ip.hinet.net [114.41.11.247]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a52.g.dreamhost.com (Postfix) with ESMTPSA id 8389B7F149; Thu, 26 Nov 2020 16:38:42 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a52 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: Drew Adams Subject: Re: bug#44841: FFAP vs. TRAMP's adb:: References: <87sg8z9h3r.5.fsf@jidanni.org> <87h7pcwf2g.fsf@gnus.org> <6778ae3a-1331-4d57-adf9-15ea2a097b3d@default> Date: Fri, 27 Nov 2020 08:38:23 +0800 Message-ID: <87tutbk51c.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: Lars Ingebrigtsen , control@debbugs.gnu.org, tramp-devel@gnu.org, 44841@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 44822 44841 thanks Merging so that this case will get tested too. From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 27 22:36:12 2020 Received: (at control) by debbugs.gnu.org; 28 Nov 2020 03:36:12 +0000 Received: from localhost ([127.0.0.1]:46749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kir1u-0007Kw-BR for submit@debbugs.gnu.org; Fri, 27 Nov 2020 22:36:12 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kir1o-0007K4-U1 for control@debbugs.gnu.org; Fri, 27 Nov 2020 22:36:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38050) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kir1j-0005To-Mw for control@debbugs.gnu.org; Fri, 27 Nov 2020 22:35:59 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1kir1j-0003pc-44 for control@debbugs.gnu.org; Fri, 27 Nov 2020 22:35:59 -0500 Subject: control message for bug 44841 To: X-Mailer: mail (GNU Mailutils 2.99.98) Message-Id: From: Glenn Morris Date: Fri, 27 Nov 2020 22:35:59 -0500 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) unmerge 44841 severity 44841 minor From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 08:39:54 2021 Received: (at control) by debbugs.gnu.org; 31 Jul 2021 12:39:54 +0000 Received: from localhost ([127.0.0.1]:33433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9oHS-0004sL-Cx for submit@debbugs.gnu.org; Sat, 31 Jul 2021 08:39:54 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9oHR-0004s3-3j for control@debbugs.gnu.org; Sat, 31 Jul 2021 08:39:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FXN6XiHAeTEsu0H/x/nn/tjIKGQa8Xu/ym1o4QtoHms=; b=H769KXjxg87hDgEx0EAs+kwTqH X+ANvdvVGGDkaVBnsZWzKvHi+WbUqijTfZHncSg+Up3xsxQ5m8wGwfiTeqqHEePySLy+WME69oUzg jtJE+/NfLhhgbyX9AJbounQi7mHZyQV3xh2UMxDZ+5B/EGo7/EM9JcEVTJtN9540wyAA=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9oHJ-0003de-5P for control@debbugs.gnu.org; Sat, 31 Jul 2021 14:39:47 +0200 Date: Sat, 31 Jul 2021 14:39:43 +0200 Message-Id: <875ywqirn4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44822 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: forcemerge 44822 44841 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) forcemerge 44822 44841 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 08:48:34 2021 Received: (at 44822) by debbugs.gnu.org; 31 Jul 2021 12:48:34 +0000 Received: from localhost ([127.0.0.1]:33445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9oPq-0007G5-8r for submit@debbugs.gnu.org; Sat, 31 Jul 2021 08:48:34 -0400 Received: from quimby.gnus.org ([95.216.78.240]:53102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9oPo-0007Fs-Sz for 44822@debbugs.gnu.org; Sat, 31 Jul 2021 08:48:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=MyPZ5JKMHVPhdttkwr1Eqk5OFcmOyv5K0j1ZxbGfMHM=; b=UeScn2xI0TDas4c4vIZ4wwdwgw WWXd8n1s+dcv7y7SYocgxPg5tPVIV6YEOJOIoJlyUT0DFb2o+t25nk2F18RMo/il4N+LNlfrHsUhW 41AmVLuQasnT1/2xpBnEyJ91sJqF7zR7oATCGP4R5tBZSS5Fqq0+T1L4Pe8h5nhbExAM=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9oPe-0003gv-0W; Sat, 31 Jul 2021 14:48:24 +0200 From: Lars Ingebrigtsen To: Eli Zaretskii Subject: Re: bug#44822: 27.1; Regression in `ffap-read-file-or-url' References: <83pn44ufhd.fsf@gnu.org> Date: Sat, 31 Jul 2021 14:48:15 +0200 In-Reply-To: <83pn44ufhd.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 23 Nov 2020 19:53:34 +0200") Message-ID: <871r7eir8w.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Eli Zaretskii writes: > Thierry and Stefan, these changes seem to have been done by you. Can > you please take a look at this issue? I don't understand the changes either. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44822 Cc: 44822@debbugs.gnu.org, Stefan Monnier , Drew Adams , Thierry Volpiatto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Eli Zaretskii writes: > Thierry and Stefan, these changes seem to have been done by you. Can > you please take a look at this issue? I don't understand the changes either. With (ffap-read-file-or-url "Url: " nil) it's now currently impossible to enter an URL after this change: commit 8685db187b891bcadcf61e41dea3124e4c45b7d4 Author: Stefan Monnier AuthorDate: Sat Nov 9 13:32:20 2019 -0500 * lisp/ffap.el (ffap-read-file-or-url): Don't use url-file-handler Stefan? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 12:47:46 2021 Received: (at 44822) by debbugs.gnu.org; 31 Jul 2021 16:47:47 +0000 Received: from localhost ([127.0.0.1]:34751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9s9K-0005NN-Cw for submit@debbugs.gnu.org; Sat, 31 Jul 2021 12:47:46 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9s9H-0005J1-Te for 44822@debbugs.gnu.org; Sat, 31 Jul 2021 12:47:44 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4D17880436; Sat, 31 Jul 2021 12:47:38 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 2A6258089C; Sat, 31 Jul 2021 12:47:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1627750057; bh=lc+lU8+mFA9lFq1v5IlpwYvVzk51pKG5eGWQQwJWTHA=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=ZfVjwM2DO3auvh7PRKwTJA1F5OcT7ksYni0M+8esr+P883EHrlm6d+bnjjYQnVB4N dilSvE/YL5ewLb5gJGCUVmHXoCdNM8Cqk/IbEgogpi9O8uVeN4po+Le1ybV7H+ke3N RqRXgt7P0rPgTxLhrPV9Ph9+Y25Onu1VHln8buLs6JR6fRk8yyxMwGDclKAfhgrD6j 8l9R3PlOjtZ1tEtz7Df9xPBgM6HkZGA3SwVqt3uW4KoZcox16NuNm2GHbyMDYvN/di hrCxNgc/ZXx5l7TjNICL8FuSeDDcUwSiRXKzIZy/IEwpGfaNby6v+Sb0KXWKGaJGn4 sgleVtsUs/bWQ== Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DDE471201C1; Sat, 31 Jul 2021 12:47:36 -0400 (EDT) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#44822: 27.1; Regression in `ffap-read-file-or-url' Message-ID: References: <83pn44ufhd.fsf@gnu.org> <871r7eir8w.fsf@gnus.org> Date: Sat, 31 Jul 2021 12:47:36 -0400 In-Reply-To: <871r7eir8w.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 31 Jul 2021 14:48:15 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.095 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain KAM_SHORT 0.001 Use of a URL Shortener for very short URL X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44822 Cc: Eli Zaretskii , 44822@debbugs.gnu.org, Drew Adams , Thierry Volpiatto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen [2021-07-31 14:48:15] wrote: > Eli Zaretskii writes: >> Thierry and Stefan, these changes seem to have been done by you. Can >> you please take a look at this issue? > I don't understand the changes either. > With (ffap-read-file-or-url "Url: " nil) it's now currently impossible > to enter an URL after this change: > > commit 8685db187b891bcadcf61e41dea3124e4c45b7d4 > Author: Stefan Monnier > AuthorDate: Sat Nov 9 13:32:20 2019 -0500 > > * lisp/ffap.el (ffap-read-file-or-url): Don't use url-file-handler > > Stefan? Hmm... the motivation for the change is described in the comment: ;; FIXME: We earlier tried to make use of `url-file-handler' so ;; `read-file-name' could also be used for URLs, but it ;; introduced all kinds of subtle breakage such as: ;; - (file-name-directory "http://a") returning "http://a/" ;; - Trying to contact remote hosts with no justification ;; These should be fixed in url-handler-mode before we can try ;; using it here again. Maybe the cure is worse than the disease, Stefan From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 12:58:27 2021 Received: (at 44822) by debbugs.gnu.org; 31 Jul 2021 16:58:28 +0000 Received: from localhost ([127.0.0.1]:34756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9sJf-0005hD-N5 for submit@debbugs.gnu.org; Sat, 31 Jul 2021 12:58:27 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55498) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9sJe-0005gz-35 for 44822@debbugs.gnu.org; Sat, 31 Jul 2021 12:58:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=9Jf6Q+ANb6+BUQWtVw7APZpBymJEvhYm2wA6boyNfeA=; b=JXjyrKKRPo5v8A/PVKj3G4KoAD U6nOgDMU4ze88Emdi9zT5KLxviw4C7TX0tiHXEaTnYDylbsAzNK96XZX6/bnHrNNbyF8s5dmyHqBO jCRH6asEcU3fnxx3/HwVQhUNbcekBk4Nidp9Oq5J50R5rpGlrAj9gfMFpwV+eRSA2rUg=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9sJS-0005gY-8o; Sat, 31 Jul 2021 18:58:17 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#44822: 27.1; Regression in `ffap-read-file-or-url' References: <83pn44ufhd.fsf@gnu.org> <871r7eir8w.fsf@gnus.org> Date: Sat, 31 Jul 2021 18:58:12 +0200 In-Reply-To: (Stefan Monnier's message of "Sat, 31 Jul 2021 12:47:36 -0400") Message-ID: <87tukabeu3.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Monnier writes: > Hmm... the motivation for the change is described in the comment: > > ;; FIXME: We earlier tried to make use of `url-file-handler' so > ;; `read-file-name' could also be used for URLs, but it > ;; i [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44822 Cc: Eli Zaretskii , 44822@debbugs.gnu.org, Drew Adams , Thierry Volpiatto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Stefan Monnier writes: > Hmm... the motivation for the change is described in the comment: > > ;; FIXME: We earlier tried to make use of `url-file-handler' so > ;; `read-file-name' could also be used for URLs, but it > ;; introduced all kinds of subtle breakage such as: > ;; - (file-name-directory "http://a") returning "http://a/" > ;; - Trying to contact remote hosts with no justification > ;; These should be fixed in url-handler-mode before we can try > ;; using it here again. Duh; my eyes just skipped that bit. :-/ > Maybe the cure is worse than the disease, I had forgotten all the peculiarities that url-file-handler has -- it's simply not a usable solution. Perhaps somebody can come up with a much, much simpler solution for use in `read-file-name' only -- that shouldn't be insurmountable, I think... -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 13:51:59 2021 Received: (at 44822) by debbugs.gnu.org; 31 Jul 2021 17:51:59 +0000 Received: from localhost ([127.0.0.1]:34781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9t9S-0000hW-RO for submit@debbugs.gnu.org; Sat, 31 Jul 2021 13:51:59 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9t9R-0000hG-9U for 44822@debbugs.gnu.org; Sat, 31 Jul 2021 13:51:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=U22AIOm9f1OofpbmbdRb9x6ZguN2BYOSAjGJdQtMWEc=; b=TSHMoV+je1diYKXCbxXYb24cDI CVaLDHGrdPkJ4zVbokcIgusc6IRTeXb9i7kDdpzHNasLKPRXCgWubCWv/lKsm/eGOqTg0Jcsl0KXB 1e5zItzgANbFUAqmrY74i1juhqYWxpOi3TjuKOBrfwHFr/2X/RzDEzNS2wFWJfC13fhs=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9t9F-0006Bp-Q9; Sat, 31 Jul 2021 19:51:48 +0200 From: Lars Ingebrigtsen To: Stefan Monnier Subject: Re: bug#44822: 27.1; Regression in `ffap-read-file-or-url' References: <83pn44ufhd.fsf@gnu.org> <871r7eir8w.fsf@gnus.org> <87tukabeu3.fsf@gnus.org> Date: Sat, 31 Jul 2021 19:51:42 +0200 In-Reply-To: <87tukabeu3.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 31 Jul 2021 18:58:12 +0200") Message-ID: <87lf5mbccx.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > Perhaps somebody can come up with a much, much simpler solution for use > in `read-file-name' only -- that shouldn't be insurmountable, I think... Sometimes that somebody is me, so this is now fixed in Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44822 Cc: Eli Zaretskii , 44822@debbugs.gnu.org, Drew Adams , Thierry Volpiatto X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > Perhaps somebody can come up with a much, much simpler solution for use > in `read-file-name' only -- that shouldn't be insurmountable, I think... Sometimes that somebody is me, so this is now fixed in Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 13:52:03 2021 Received: (at control) by debbugs.gnu.org; 31 Jul 2021 17:52:03 +0000 Received: from localhost ([127.0.0.1]:34785 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9t9X-0000iA-3A for submit@debbugs.gnu.org; Sat, 31 Jul 2021 13:52:03 -0400 Received: from quimby.gnus.org ([95.216.78.240]:55928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9t9V-0000hN-5Q for control@debbugs.gnu.org; Sat, 31 Jul 2021 13:52:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=auzEVSR7B+ucBhNlzbRyXBV3O6P5Ye4ZNu9Lckxr+kc=; b=VCIztmk+2goNW0OG5blIM/rnIg OFi19wYRmbWWfFmvpSG8gSINyWAIkoDStrH7VI7ELsiFzCuKoYLjct05VN94oiJXOh7APbBQYe9Un yEjkGp849cYDySu+mTMmVijPTkxrFK5sDDpBOppLl20NLAr3Z/8X1zmGJ/TSv19YSLqk=; Received: from 2.149.45.105.tmi.telenormobil.no ([2.149.45.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m9t9N-0006By-75 for control@debbugs.gnu.org; Sat, 31 Jul 2021 19:51:55 +0200 Date: Sat, 31 Jul 2021 19:51:51 +0200 Message-Id: <87k0l6bcco.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #44822 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 44822 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 44822 28.1 quit From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 31 13:55:14 2021 Received: (at 44822) by debbugs.gnu.org; 31 Jul 2021 17:55:14 +0000 Received: from localhost ([127.0.0.1]:34793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9tCb-0000nP-Si for submit@debbugs.gnu.org; Sat, 31 Jul 2021 13:55:14 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:14080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9tCZ-0000n6-TL for 44822@debbugs.gnu.org; Sat, 31 Jul 2021 13:55:12 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 444AF441286; Sat, 31 Jul 2021 13:55:06 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 2E5DA441282; Sat, 31 Jul 2021 13:55:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1627754105; bh=+ez5xF4e4k0w8FYfOzJj2iz6f3l/Js0Do80b9/3F1tg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Fg6ontH31mCk8kJXEkjz4wkOa09tgrt1cUbGMe6dM5V4yyJ89wyAP5JqfNoaad3Fe GpkA/KwLwPu0txfQObuBtQ3ayzkSuJeRmIFjib8wIVY3E6T9aQFuIr71I2SswKMLZx y8qjLA78jljQe8oGuQ6bz10ANtDX7GAxMv7sVGYXT3ZqjyHJ1sAQXjEaNvGmzlIKH6 qvGUIbXoxZfW6U9V1+3ius97ENTvLC2/72leWHR9onjxG0FlrzZFSZ1UJ9NLqRuCYU wfLN9Wk+7fFX09V82CpGisZAmnlSEad5enMFUL0IlaUQ92sYYV3SG0UzacnHed5+zA 5+oDEVCSogCCw== Received: from alfajor (unknown [216.154.29.138]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id A9B04120376; Sat, 31 Jul 2021 13:55:04 -0400 (EDT) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#44822: 27.1; Regression in `ffap-read-file-or-url' Message-ID: References: <83pn44ufhd.fsf@gnu.org> <871r7eir8w.fsf@gnus.org> <87tukabeu3.fsf@gnus.org> Date: Sat, 31 Jul 2021 13:54:59 -0400 In-Reply-To: <87tukabeu3.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 31 Jul 2021 18:58:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.094 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain KAM_SHORT 0.001 Use of a URL Shortener for very short URL X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44822 Cc: Thierry Volpiatto , Eli Zaretskii , 44822@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen [2021-07-31 18:58:12] wrote: > Stefan Monnier writes: > >> Hmm... the motivation for the change is described in the comment: >> >> ;; FIXME: We earlier tried to make use of `url-file-handler' so >> ;; `read-file-name' could also be used for URLs, but it >> ;; introduced all kinds of subtle breakage such as: >> ;; - (file-name-directory "http://a") returning "http://a/" >> ;; - Trying to contact remote hosts with no justification >> ;; These should be fixed in url-handler-mode before we can try >> ;; using it here again. > > Duh; my eyes just skipped that bit. :-/ > >> Maybe the cure is worse than the disease, > > I had forgotten all the peculiarities that url-file-handler has -- it's > simply not a usable solution. > > Perhaps somebody can come up with a much, much simpler solution for use > in `read-file-name' only -- that shouldn't be insurmountable, I think... Do you think that someone's last name could end in "olpiatto", maybe? Stefan From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 02:30:11 2021 Received: (at submit) by debbugs.gnu.org; 9 Aug 2021 06:30:11 +0000 Received: from localhost ([127.0.0.1]:55272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCynb-0002eX-ME for submit@debbugs.gnu.org; Mon, 09 Aug 2021 02:30:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:48974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mCynX-0002eJ-Ed for submit@debbugs.gnu.org; Mon, 09 Aug 2021 02:30:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCynX-0004fp-7D for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 02:30:07 -0400 Received: from ciao.gmane.io ([116.202.254.214]:57998) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mCynV-00020x-JW for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 02:30:07 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mCynR-0001Ru-Lv for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2021 08:30:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org From: Madhu Subject: Re: bug#44822: 27.1; Regression in `ffap-read-file-or-url' Date: Mon, 09 Aug 2021 11:51:45 +0530 Message-ID: References: <83pn44ufhd.fsf@gnu.org> <871r7eir8w.fsf@gnus.org> <87tukabeu3.fsf@gnus.org> <87lf5mbccx.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Cancel-Lock: sha1:5H28syKyt7GKGaVqx9zstjaiG1U= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.1 (--) I couldn't follow the bug report as it always seemed to work for me[1], but after the fix, if I do an M-x find-file-at-point with the point on (say) https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44822 I get a minibuffer prompt "Find file or URL" with the default set to the url and the point at the beginning of the url string wheras earlier I used to get the same prompt with the point positioned at the end of the url string. This makes a difference if i'm using some other system like vertico 1. My defaults for ffap were (setq ffap-foo-at-bar-prefix nil) (setq ffap-machine-p-known 'reject) (setq ffap-machine-p-local 'reject) (setq ffap-machine-p-unknown 'reject) From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 09 10:03:39 2021 Received: (at 44822) by debbugs.gnu.org; 9 Aug 2021 14:03:39 +0000 Received: from localhost ([127.0.0.1]:57410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD5sR-0000h2-07 for submit@debbugs.gnu.org; Mon, 09 Aug 2021 10:03:39 -0400 Received: from quimby.gnus.org ([95.216.78.240]:37778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mD5sP-0000gp-GK for 44822@debbugs.gnu.org; Mon, 09 Aug 2021 10:03:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=iivl0aqRiLEgQ4j0JNcJIdxvb3F+oH/Uomm9IsD3bgY=; b=ZeEfws8nICoXf2ZO3pYskfRYp8 BWIuMQKG4Tlc2HmR6g7b8/WxIniETeIlsj0Lg9nNkBWUu1xiPAJhIfULaco0YLq35QuoYf2yZcop8 CruB6jgxaGzaNBRCBlqEbHC0s2fgRjY3AuuQWGxtX9cAw6acJ/sYHtalmAGaxdyy+Ib4=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mD5sF-0005tS-7q; Mon, 09 Aug 2021 16:03:29 +0200 From: Lars Ingebrigtsen To: Madhu Subject: Re: bug#44822: 27.1; Regression in `ffap-read-file-or-url' References: <83pn44ufhd.fsf@gnu.org> <871r7eir8w.fsf@gnus.org> <87tukabeu3.fsf@gnus.org> <87lf5mbccx.fsf@gnus.org> Date: Mon, 09 Aug 2021 16:03:26 +0200 In-Reply-To: (Madhu's message of "Mon, 09 Aug 2021 11:51:45 +0530") Message-ID: <87lf5a3ec1.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Madhu writes: > I couldn't follow the bug report as it always seemed to work for me[1], > but after the fix, if I do an M-x find-file-at-point with the point on > (say) https://debbugs.gnu.org/cgi/bugreport.cgi?bug [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44822 Cc: 44822@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Madhu writes: > I couldn't follow the bug report as it always seemed to work for me[1], > but after the fix, if I do an M-x find-file-at-point with the point on > (say) https://debbugs.gnu.org/cgi/bugreport.cgi?bug=44822 > > I get a minibuffer prompt "Find file or URL" with the default set to the > url and the point at the beginning of the url string This should now be fixed. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Mon Jun 16 23:43:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 07 Sep 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator