From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel Newsgroups: gmane.emacs.devel Subject: Re: Emacs support for --hyperlink in ls? Date: Fri, 06 May 2022 14:17:50 +0200 Message-ID: <87ilqivor5.fsf@gmail.com> References: <8735hqdflj.fsf@cam.ac.uk> <83mtfy4znf.fsf@gnu.org> <87zgjy9w5z.fsf@cam.ac.uk> <83ee194zmx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28866"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.50 (gnu/linux) Cc: Stephen Eglen , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 06 14:18:55 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nmwv9-0007KI-FH for ged-emacs-devel@m.gmane-mx.org; Fri, 06 May 2022 14:18:55 +0200 Original-Received: from localhost ([::1]:42978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmwv8-0005dw-Dl for ged-emacs-devel@m.gmane-mx.org; Fri, 06 May 2022 08:18:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43298) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmwuC-0004xL-3C for emacs-devel@gnu.org; Fri, 06 May 2022 08:17:57 -0400 Original-Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:33378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nmwuA-0005Wa-Hy; Fri, 06 May 2022 08:17:55 -0400 Original-Received: by mail-ed1-x534.google.com with SMTP id p4so8515492edx.0; Fri, 06 May 2022 05:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version; bh=iFUK+4d0NE/AMOyW1rdvBUQMBAusYLKJxz210rhttmI=; b=qQwEJU0ywMYYcStELjuRw/0bDOHn9Hgq9mo7yyVhZ9ftftGGJKE/etSTaC9OQPQf/C JPWWHgwfrjHay2uh9ECDCxtETsXh/ZhlDWNQKr//NpSUrIc7YOmmpYYl7yET+/s4505i 6tfDJqFTF9pXNIZT2498O9Tc7zX4BkRfGnaZf/28w3dA0WbA3xUhhupvvSSweHf68Nl1 y4ll4UuFeupVDA/CPAZUSXbGwNxtfhrxPWIdwhGvU2P4EOQBw/Ar5TdE3LebHhTctIVa 7UrKGXKqRH4l99gwCyWBZArq4ANhYfhJD6Ehep626vzVBV7VLqyKynPoJytXBcuBjk1I qNVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version; bh=iFUK+4d0NE/AMOyW1rdvBUQMBAusYLKJxz210rhttmI=; b=Mwvza9TcMMiVxbS7XdOSQPEcqhq8qlgcK420BwyBUwovmcDPOZathEFetJMzPFR8rE 6av0R5jshqICYuWMQRxVBoA0pfGYsuRji+HBuvfDxve0uavD/mj+Qu7/oRmIoZOqRpCg bSsbA9jz20rKytJi4TvFX6854ezp+KFSxhjUpPlRXGXb9jNWL4B8295QkQB/gFFU+/M0 K3YFyQj9680LiLTcNul8uE32u8G7KYcrPnxLWEBSJ7c+so8Ju/k3ga6z7MjM8616T0y+ Zm30EIPIgpTgkKutgQofzJD81Gau+MNAap/UoKzxaHVlvkJkhCb8CrwdWn87p8lMW+A8 9fwg== X-Gm-Message-State: AOAM5322lc1ERSbl5OeR0OZPGirTn/lJtAytULQlFv9ynA2EP+XF09s1 AhP6mvXiDDaI7+ILYxQCea8NxxxUWNI= X-Google-Smtp-Source: ABdhPJxY7xciimMa5GhXau3mzkVVEUg1LIrOXA8W5HD1LFbeTvG2aw0nnbfhtoabBXvxIO0+WAJO4A== X-Received: by 2002:a05:6402:1541:b0:41c:bfb9:d56b with SMTP id p1-20020a056402154100b0041cbfb9d56bmr3123350edx.344.1651839471989; Fri, 06 May 2022 05:17:51 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::1b06]) by smtp.gmail.com with ESMTPSA id sg8-20020a170907a40800b006f3ef214e01sm1885970ejc.103.2022.05.06.05.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 May 2022 05:17:51 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::534; envelope-from=arstoffel@gmail.com; helo=mail-ed1-x534.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289314 Archived-At: On Wed, 4 May 2022 at 08:48, Eli Zaretskii wrote: >> From: Stephen Eglen >> Cc: Stephen Eglen , emacs-devel@gnu.org >> Date: Tue, 03 May 2022 21:38:47 +0100 >> >> However, at least on my system, I find the following problem that I >> think is caused by ls, rather than Emacs. e.g. >> >> $ ls --hyperlink /etc/anacrontab >> >> generates the following filename (after removing the markup) >> >> file://light/etc/anacrontab >> >> where 'light' is the name of my laptop (running arch linux). >> browse-url-xdg-open is my browser-function, and >> >> $ xdg-open file://light/etc/anacrontab >> >> generates the error: >> >> xdg-open: file 'file://light/etc/anacrontab' does not exist > > I think TRT is to report this to the Coreutils developers as a bug in > GNU 'ls'. I think ls is doing TRT. One may call 'ls --hyperlink' on a remote machine, so a complete file URL is needed. On my computer (running Fedora), xdg-open opens the file as expected. So I suppose this is an issue in the OP's operating system.