From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 16 12:56:48 2019 Received: (at submit) by debbugs.gnu.org; 16 Aug 2019 16:56:48 +0000 Received: from localhost ([127.0.0.1]:54835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyfWy-0002iv-3R for submit@debbugs.gnu.org; Fri, 16 Aug 2019 12:56:48 -0400 Received: from lists.gnu.org ([209.51.188.17]:37286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyfWx-0002ip-5Y for submit@debbugs.gnu.org; Fri, 16 Aug 2019 12:56:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47412) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyfWw-0007V3-26 for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 12:56:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyfWv-0007dq-4C for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 12:56:46 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]:44951) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyfWu-0007dS-VG for bug-gnu-emacs@gnu.org; Fri, 16 Aug 2019 12:56:45 -0400 Received: by mail-pl1-x62e.google.com with SMTP id t14so2660972plr.11 for ; Fri, 16 Aug 2019 09:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=zuMe/hKC0YVGK49txpiTvR2T4v6TPiqy+o7lilaZ1lg=; b=UfE2UlSt3shHQmdBo6zKcI0Qv1+WgbYewXJMpbIpDdUZiIAp17Z+6+3EapM1RRC6ON BL7d5B/XEjAinWrnroy/vkQbpWfg4SN3rNH5ZJcaoVkyINe9QWtxIY1KiC5VUiGH/ra1 FuLazhggwIPcLiWs0QMFl+SdkQLkpIT09+42MbBGQdG+tYDbjS3j9aZTb33zDV7XM2zE XHIFI4OmQv8DGec21SBoGDCSFsMf+wecgTHK4tCMJt9JcYFXH/DKlmQv1Eaw0tnBNBkJ QBwDwsmfoEDFlFkN9fv8Twgyb5qwfe1M3qBdyhpS1X4pusbh8pbptjs40THgPXWVfqPS iMQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=zuMe/hKC0YVGK49txpiTvR2T4v6TPiqy+o7lilaZ1lg=; b=aXYJnbwcZzveqb4/i2u2A4f8BanozB7wt4Eev0vbn8v/019qKi1Lpxj7ZipbnPFn+o gb61rrHgR5nSQk7ttuPfsV6TzEHa0x+Dv/pLauA/tVwiy2XWK+oKr/NjqEvdAaHolMGU Lk24jbfFHdtw7by5WdKRnSdteye0Xnc6qJkJLe5tGKaBnZBMcZmyd9Xo9KJlsYHNnXS0 7iLgissKl66eB1ARW9jW0x8HwwoKn/JqGW5uVPFyHJCgUFPXYSpL4/NHufcXND8qI3Xt ueh07kGpXbtYWu+gcnIhbeu03rDP2ikorYEzPxV3W7tw86yWvWJ19qzA/Br9Cu1LWNUw xV7Q== X-Gm-Message-State: APjAAAVmVLnkLxl33536AqAlt2vXGsUhv+BcyP7k8xetM140fuCTn5a/ T6kBTuMOBxcbg5LqxTVl1+OapX1Itww= X-Google-Smtp-Source: APXvYqzxZVGVF9K7g/pVK7Z9bfkDCwR5XXd7qXoWmz/SI4S14J94xopmrBKAPX+lydWxhJ8PeejKfA== X-Received: by 2002:a17:902:fe86:: with SMTP id x6mr9608741plm.73.1565974603083; Fri, 16 Aug 2019 09:56:43 -0700 (PDT) Received: from dellbook (static-108-30-103-121.nycmny.fios.verizon.net. [108.30.103.121]) by smtp.gmail.com with ESMTPSA id a15sm8164342pfg.102.2019.08.16.09.56.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Aug 2019 09:56:42 -0700 (PDT) From: Matthew Bauer To: bug-gnu-emacs@gnu.org Subject: 26.1; file-name-absolute-p does not recognize "man:" urls Date: Fri, 16 Aug 2019 12:56:38 -0400 Message-ID: <871rxlxd4p.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::62e 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 (--) file-name-absolute-p does not recognize URLs like "man:systemd-timesyncd.service(8)" as absolute. For instance, try this: > (file-name-absolute-p "man:systemd-timesyncd.service(8)") nil This should be considered an absolute URL, and not be relativized. This interferes with browse-url where this is done: > (when (and url-handler-mode (not (file-name-absolute-p url))) > (setq url (expand-file-name url))) so "man:systemd-timesyncd.service(8)" becomes: > (expand-file-name "man:systemd-timesyncd.service(8)") "/home/USER/man:systemd-timesyncd.service(8)" Below is diff to update browse-url function to handle this. --- diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index aa31e25fa9..ffc2c766a2 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -801,8 +801,9 @@ as ARGS." (interactive (browse-url-interactive-arg "URL: ")) (unless (called-interactively-p 'interactive) (setq args (or args (list browse-url-new-window-flag)))) - (when (and url-handler-mode (not (file-name-absolute-p url))) + (when (and url-handler-mode + (not (file-name-absolute-p url)) + (not (string-match "\\`[a-z]+:" url))) (setq url (expand-file-name url))) (let ((process-environment (copy-sequence process-environment)) (function (or (and (string-match "\\`mailto:" url) From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 00:02:11 2019 Received: (at 37056) by debbugs.gnu.org; 23 Aug 2019 04:02:11 +0000 Received: from localhost ([127.0.0.1]:38749 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i10mB-0007Kl-0q for submit@debbugs.gnu.org; Fri, 23 Aug 2019 00:02:11 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i10m9-0007JB-Bu for 37056@debbugs.gnu.org; Fri, 23 Aug 2019 00:02:09 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i10m5-0003W9-Jq; Fri, 23 Aug 2019 06:02:07 +0200 From: Lars Ingebrigtsen To: Matthew Bauer Subject: Re: bug#37056: 26.1; file-name-absolute-p does not recognize "man:" urls References: <871rxlxd4p.fsf@gmail.com> Date: Fri, 23 Aug 2019 06:02:05 +0200 In-Reply-To: <871rxlxd4p.fsf@gmail.com> (Matthew Bauer's message of "Fri, 16 Aug 2019 12:56:38 -0400") Message-ID: <878srksf5u.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: Matthew Bauer writes: > file-name-absolute-p does not recognize URLs like > "man:systemd-timesyncd.service(8)" as absolute. For instance, try this: > >> (file-name-absolute-p "man:systemd-timesyncd.service(8)") > nil > > T [...] Content analysis details: (-2.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 NO_DNS_FOR_FROM DNS: Envelope sender has no MX or A DNS records -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.9 DKIM_ADSP_NXDOMAIN No valid author signature and domain not in DNS -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 37056 Cc: 37056@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: -0.6 (/) Matthew Bauer writes: > file-name-absolute-p does not recognize URLs like > "man:systemd-timesyncd.service(8)" as absolute. For instance, try this: > >> (file-name-absolute-p "man:systemd-timesyncd.service(8)") > nil > > This should be considered an absolute URL, and not be relativized. This > interferes with browse-url where this is done: > >> (when (and url-handler-mode (not (file-name-absolute-p url))) >> (setq url (expand-file-name url))) > > so "man:systemd-timesyncd.service(8)" becomes: > >> (expand-file-name "man:systemd-timesyncd.service(8)") > "/home/USER/man:systemd-timesyncd.service(8)" > > Below is diff to update browse-url function to handle this. [...] > - (when (and url-handler-mode (not (file-name-absolute-p url))) > + (when (and url-handler-mode > + (not (file-name-absolute-p url)) > + (not (string-match "\\`[a-z]+:" url))) Makes sense. The patch was mangled by Gmail during transport (as usual), so I had to apply it manually. In the future, attaching patches as attachments is probably the best thing if Gmail can't be avoided. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 00:02:16 2019 Received: (at control) by debbugs.gnu.org; 23 Aug 2019 04:02:17 +0000 Received: from localhost ([127.0.0.1]:38752 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i10mG-0007P9-Ju for submit@debbugs.gnu.org; Fri, 23 Aug 2019 00:02:16 -0400 Received: from quimby.gnus.org ([80.91.231.51]:39540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i10mD-0007MV-Rt for control@debbugs.gnu.org; Fri, 23 Aug 2019 00:02:14 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i10mB-0003WG-BW for control@debbugs.gnu.org; Fri, 23 Aug 2019 06:02:13 +0200 Date: Fri, 23 Aug 2019 06:02:10 +0200 Message-Id: <877e74sf5p.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #37056 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: tags 37056 fixed close 37056 27.1 quit Content analysis details: (-2.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 NO_DNS_FOR_FROM DNS: Envelope sender has no MX or A DNS records -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.9 DKIM_ADSP_NXDOMAIN No valid author signature and domain not in DNS -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.4 (/) 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: -0.6 (/) tags 37056 fixed close 37056 27.1 quit From unknown Thu Sep 11 02:24:46 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 20 Sep 2019 11:24:08 +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