all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "積丹尼 Dan Jacobson" <jidanni@jidanni.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 39349@debbugs.gnu.org, Andreas Schwab <schwab@linux-m68k.org>
Subject: bug#39349: browse-url-of-dired-file should respect directory symlinks
Date: Thu, 30 Jul 2020 20:39:22 +0800	[thread overview]
Message-ID: <87365918jp.5.fsf@jidanni.org> (raw)
In-Reply-To: <87lfpqveo7.5.fsf@jidanni.org>

LI> Then...  I don't know what Dan is reporting here.  :-/

LI> I've now set up a proper test case, and I can't reproduce the bug, Dan.
LI> Could you explain more closely what you're seeing and what you're
LI> expecting to see?

$ ls -ogd /cf
lrwxrwxrwx 1 11 2016-12-24  /cf -> /mnt/usb/cf
$ ls -ogd /cf/updates
drwxr-xr-x 49 37888 07-30 19:00 /cf/updates
$ ls -ogd /cf/updates/0952053635.html
-rw------- 1 784 2017-12-15  /cf/updates/0952053635.html
$ chromium /cf/updates/0952053635.html        # Browses file:///mnt/usb/cf/updates/0952053635.html as seen in the URL bar
$ chromium file:///cf/updates/0952053635.html # Browses file:///cf/updates/0952053635.html as seen in the URL bar
$ w3m /cf/updates/0952053635.html             # Browses file:///cf/updates/0952053635.html as seen with the "=" command
$ w3m file:///cf/updates/0952053635.html      # Browses file:///cf/updates/0952053635.html as seen with the "=" command

(Firefox acts like chromium.)

$ emacs /cf/updates
then there do browse-url-of-dired-file on 0952053635.html

Well that calls chromium or emacs-w3m on
file:///mnt/usb/cf/updates/0952053635.html
as seen in chromium's URL bar, or emacs-w3m's "c" or "=" commands.

Anyways, I'm saying that the user doesn't want to be made forcibly aware
of the real URL. So browse-url-of-dired-file should probably put a
"file://" in front of what "0 w" (w runs the command dired-copy-filename-as-kill)
returns, when invoking the browser.

0 w (0 dired-copy-filename-as-kill) uses the symlink path reliably.





  reply	other threads:[~2020-07-30 12:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-29  8:40 bug#39349: browse-url-of-dired-file should respect directory symlinks 積丹尼 Dan Jacobson
2020-07-19 19:48 ` Lars Ingebrigtsen
2020-07-20 14:54   ` 積丹尼 Dan Jacobson
2020-07-23 14:05     ` Lars Ingebrigtsen
2020-07-23 14:19       ` Andreas Schwab
2020-07-23 14:32         ` Lars Ingebrigtsen
2020-07-23 14:33           ` Andreas Schwab
2020-07-23 14:39             ` Lars Ingebrigtsen
2020-07-30 12:39               ` 積丹尼 Dan Jacobson [this message]
2020-07-31  2:47                 ` Lars Ingebrigtsen
2020-07-31 11:58                   ` 積丹尼 Dan Jacobson
2020-07-31 12:04                     ` Lars Ingebrigtsen
2020-07-31 16:14                       ` 積丹尼 Dan Jacobson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87365918jp.5.fsf@jidanni.org \
    --to=jidanni@jidanni.org \
    --cc=39349@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.