From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gustavo Barros Newsgroups: gmane.emacs.bugs Subject: bug#54271: 28.0.91; browse-url-of-dired-file fails with wrong type argument error Date: Sun, 06 Mar 2022 08:54:27 -0300 Message-ID: <87ilsr1eft.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10871"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 28.0.91 To: 54271@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 06 12:58:11 2022 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 1nQpWd-0002d4-5a for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Mar 2022 12:58:11 +0100 Original-Received: from localhost ([::1]:37256 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQpWc-0004ni-6u for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 06 Mar 2022 06:58:10 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQpWU-0004lJ-95 for bug-gnu-emacs@gnu.org; Sun, 06 Mar 2022 06:58:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQpWU-00009Z-0a for bug-gnu-emacs@gnu.org; Sun, 06 Mar 2022 06:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nQpWT-00035b-Pi for bug-gnu-emacs@gnu.org; Sun, 06 Mar 2022 06:58:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gustavo Barros Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Mar 2022 11:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 54271 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164656785711838 (code B ref -1); Sun, 06 Mar 2022 11:58:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2022 11:57:37 +0000 Original-Received: from localhost ([127.0.0.1]:49979 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQpW5-00034r-9y for submit@debbugs.gnu.org; Sun, 06 Mar 2022 06:57:37 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:55424) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nQpW3-00034j-52 for submit@debbugs.gnu.org; Sun, 06 Mar 2022 06:57:35 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:33264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQpW2-0004Ro-Sv for bug-gnu-emacs@gnu.org; Sun, 06 Mar 2022 06:57:34 -0500 Original-Received: from [2607:f8b0:4864:20::f29] (port=36836 helo=mail-qv1-xf29.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nQpW1-0008TL-57 for bug-gnu-emacs@gnu.org; Sun, 06 Mar 2022 06:57:34 -0500 Original-Received: by mail-qv1-xf29.google.com with SMTP id eq14so4159357qvb.3 for ; Sun, 06 Mar 2022 03:57:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:user-agent:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=U1boW6fdNIe7+v4f3mEpXhSfIRdi28EHO5jBqrB5eD0=; b=WvMPGmVP+DPc3z/Hg9B6RiAWP5UxmUVlfCaP0CFPTMFOD53tD6HfLfG9y41T5ffptg 7Sx4Oly0bMuyzKsQY9l+w9d8DY1h1rzEXRKHgqO+EBsG+TBYc40QwcQbHXWRgjUBswsK 4sOZ7JM3Wdms2kaE12YYNjwAnDprsaUuSief5BuMlqfe8Z9ttaaqYO31NvZlI6LMwAsf VJW8K5g6E7HhI/4NjxKEbg4hIsAOR7StOwYnj0qe+JbYZviDttJg5mfRxA68T3W+zVsJ cB76hj5HgyXUVblgQSwjJ+YML5dDzG1dHcjPrxkuINotDpXGPplu6Hr0hPpQBgG57Jia 95hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:user-agent:from:to:subject:date :message-id:mime-version:content-transfer-encoding; bh=U1boW6fdNIe7+v4f3mEpXhSfIRdi28EHO5jBqrB5eD0=; b=rGhzb4Zs58/tRUvLd9IyZJ1uWF1q5tfBA+7HJakfJRW44UklJKehJZre0eoOaV5AIx 5NG6pWKfGoHm0s0AuXtbTJgPa9DdfYWuTTT9+dTupn6QivFScI6c2Z86bae8ZNEP7Qj1 iVOj6lQTsshC1CZMlR5HdV/dlR7g6qooVxr7mkRcW54/pbzuimklhK5U/zM+2Pam4YW2 MBxhrxCyY73GlGp/YOvpJQGNdj50TqKQVR3k91+TkUefj18/i3EbnGMqZjqbav8mmg3L 9b9Htfr59pQ3iJxGy3GGThL9jbggsKjxTQMOIDhL7bRpb73qEA0qYYUstEYUeRMjFxxx t60Q== X-Gm-Message-State: AOAM5333ZXPHRQnWCqkEvgQ4ELZHOCx2LRBdX8BBxd21bOEHYvBdbPqh Wq7lgbCaLaj1JHy9VOZtNFZ68neMLQg= X-Google-Smtp-Source: ABdhPJw9hcNtXIXUO8x8r7FWN6E51C7AAn2nZpzOIAUu/DCqtQQbZBWG39yBUU98vSc42dLYvAQ49Q== X-Received: by 2002:a05:6214:2a49:b0:42c:1b0d:7282 with SMTP id jf9-20020a0562142a4900b0042c1b0d7282mr5230257qvb.28.1646567851073; Sun, 06 Mar 2022 03:57:31 -0800 (PST) Original-Received: from gusbrs-laptop ([102.129.153.12]) by smtp.gmail.com with ESMTPSA id 192-20020a3704c9000000b00648d50e398asm4906416qke.109.2022.03.06.03.57.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 06 Mar 2022 03:57:30 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::f29 (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::f29; envelope-from=gusbrs.2016@gmail.com; helo=mail-qv1-xf29.google.com X-Spam_score_int: -3 X-Spam_score: -0.4 X-Spam_bar: / X-Spam_report: (-0.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.659, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:228060 Archived-At: Hi All, I've been trying out the pre-release and met an issue with=20 `browse-url-of-dired-file'. Whenever I try to use it, I get the error "url-file: Wrong type=20 argument: number-or-marker-p, nil". As far as I can tell, the issue is not related with file/mime type.=20 I've tried it with files I'd expect would be opened with an external=20 application and with Emacs: .png, .jpg, .odt, but also .org, .tex. All=20 with the same results. However, as far as I can tell, the issue arises for file names with no=20 ascii characters. If the file name is well behaved, it works as=20 expected. But as soon as, e.g. an accented letter is part of it, the=20 issue is triggered. To reproduce, start with `emacs -Q'. Create a file named=20 "~/test/=C3=A1=C3=A7=C3=A3=C3=BC.org", open `dired', and navigate to that f= ile, and hit "W"=20 (`browse-url-of-dired-file') on it. You should get the mentioned error=20 "url-file: Wrong type argument: number-or-marker-p, nil". The backtrace is: #+begin_example Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p=20 nil) url-file-asynch-callback(nil nil nil=20 "/home/gustavo/test/\303\203\302\241\303\203\302\247\303\203\302\243\303\= 203\302\274.org"=20 # #f(compiled-function (&rest args) #) (nil)) url-file(#s(url :type "file" :user nil :password nil :host ""=20 :portspec nil :filename=20 "/home/gustavo/test/%C3%83%C2%A1%C3%83%C2%A7%C3%83%..." :target nil=20 :attributes nil :fullness t :silent nil :use-cookies t :asynchronous=20 nil) #f(compiled-function (&rest args) #)=20 (nil)) url-retrieve-internal("file:///home/gustavo/test/=C3=83=C2=A1=C3=83=C2=A7= =C3=83=C2=A3=C3=83=C2=BC.org"=20 #f(compiled-function (&rest args) #) (nil)=20 nil nil) url-retrieve("file:///home/gustavo/test/=C3=83=C2=A1=C3=83=C2=A7=C3=83=C2= =A3=C3=83=C2=BC.org"=20 #f(compiled-function (&rest args) #) nil=20 nil nil) url-retrieve-synchronously("file:///home/gustavo/test/=C3=83=C2=A1=C3=83= =C2=A7=C3=83=C2=A3=C3=83=C2=BC.org") url-insert-file-contents("file:///home/gustavo/test/=C3=83=C2=A1=C3=83=C2= =A7=C3=83=C2=A3=C3=83=C2=BC.org" t=20 nil nil nil) apply(url-insert-file-contents=20 ("file:///home/gustavo/test/=C3=83=C2=A1=C3=83=C2=A7=C3=83=C2=A3=C3=83=C2= =BC.org" t nil nil nil)) url-file-handler(insert-file-contents=20 "file:///home/gustavo/test/=C3=83=C2=A1=C3=83=C2=A7=C3=83=C2=A3=C3=83=C2= =BC.org" t nil nil nil) insert-file-contents("file:///home/gustavo/test/=C3=83=C2=A1=C3=83=C2=A7= =C3=83=C2=A3=C3=83=C2=BC.org" t) find-file-noselect-1(#=20 "file:///home/gustavo/test/=C3=83=C2=A1=C3=83=C2=A7=C3=83=C2=A3=C3=83=C2= =BC.org" nil nil "~/test/=C3=83=C2=A1=C3=83=C2=A7=C3=83=C2=A3=C3=83=C2=BC.o= rg"=20 nil) find-file-noselect("file:///home/gustavo/test/\303\241\303\247\303\243\30= 3\274.org"=20 nil nil nil) find-file-other-window("file:///home/gustavo/test/\303\241\303\247\303\24= 3\303\274.org") browse-url-emacs("file:///home/gustavo/test/\303\241\303\247\303\243\303\= 274.org"=20 nil) browse-url("file:///home/gustavo/test/\303\241\303\247\303\243\303\274.or= g") browse-url-of-file("/home/gustavo/test/=C3=A1=C3=A7=C3=A3=C3=BC.org") browse-url-of-dired-file() funcall-interactively(browse-url-of-dired-file) command-execute(browse-url-of-dired-file) #+end_example Since I use this functionality somewhat regularly, and hadn't met it=20 with 27.2, as far as I can tell this is a regression since then. Best regards, Gustavo. In GNU Emacs 28.0.91 (build 2, x86_64-pc-linux-gnu, GTK+ Version=20 3.24.20, cairo version 1.16.0) of 2022-03-04 built on gusbrs-laptop Windowing system distributor 'The X.Org Foundation', version=20 11.0.12013000 System Description: Linux Mint 20.3 Configured using: 'configure --with-mailutils --with-xwidgets --with-modules --with-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM XWIDGETS GTK3 ZLIB Important settings: value of $LC_MONETARY: pt_BR.UTF-8 value of $LC_NUMERIC: pt_BR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Dired by name Minor modes in effect: tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils time-date help-fns radix-tree cl-extra cl-print debug backtrace help-mode find-func mm-util mail-prsvr url-cache url-auth url-file url-dired url-handlers browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map seq byte-opt gv bytecomp byte-compile cconv url-vars mailcap cus-start cus-load dired-aux cl-loaddefs cl-lib dired dired-loaddefs iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads xwidget-internal dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 113226 6824) (symbols 48 8669 0) (strings 32 32041 1780) (string-bytes 1 920017) (vectors 16 16783) (vector-slots 8 347621 13344) (floats 8 35 40) (intervals 56 857 0) (buffers 992 17))