GNU bug report logs - #54271
28.0.91; browse-url-of-dired-file fails with wrong type argument error

Previous Next

Package: emacs;

Reported by: Gustavo Barros <gusbrs.2016 <at> gmail.com>

Date: Sun, 6 Mar 2022 11:58:01 UTC

Severity: normal

Merged with 42433, 52243

Found in versions 28.0.50, 28.0.60, 28.0.91

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gustavo Barros <gusbrs.2016 <at> gmail.com>
Cc: 54271 <at> debbugs.gnu.org
Subject: bug#54271: 28.0.91; browse-url-of-dired-file fails with wrong type argument error
Date: Mon, 07 Mar 2022 04:57:18 +0100
Gustavo Barros <gusbrs.2016 <at> gmail.com> writes:

> As I'd mentioned in the original report, I use this fairly frequently,
> and did not recall having problems with this while using the current
> release. Now I've just checked this statement and indeed, the failing
> example of this report works just fine with 27.2.  So, it is a 28
> regression, right?

Hm, right.  The change on master is too invasive for Emacs 28, though,
so perhaps something like the following would be better:

diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el
index ccb4e12a9f..6c86b8fab7 100644
--- a/lisp/net/browse-url.el
+++ b/lisp/net/browse-url.el
@@ -555,8 +555,7 @@ browse-url--non-html-file-url-p
 ;;;###autoload
 (defvar browse-url-default-handlers
   '(("\\`mailto:" . browse-url--mailto)
-    ("\\`man:" . browse-url--man)
-    (browse-url--non-html-file-url-p . browse-url-emacs))
+    ("\\`man:" . browse-url--man))
   "Like `browse-url-handlers' but populated by Emacs and packages.
 
 Emacs and external packages capable of browsing certain URLs


Which reverts to Emacs 27.2 behaviour for these files.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 2 years and 218 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.