From: Tassilo Horn <tsdh@gnu.org>
To: "T.V Raman" <raman@google.com>
Cc: emacs-devel@gnu.org
Subject: Re: browse-url-of-buffer broken at HEAD?
Date: Wed, 06 May 2020 23:06:00 +0200 [thread overview]
Message-ID: <87a72k3haf.fsf@gnu.org> (raw)
In-Reply-To: <24243.5486.257862.757579@retriever.mtv.corp.google.com> (T. V. Raman's message of "Wed, 6 May 2020 12:52:14 -0700")
"T.V Raman" <raman@google.com> writes:
> Thanks!
Ok, it's the handler for opening all file:// URLs using browse-url-emacs
which basically just visits them using find-file. With commit
86fef6ab89 I've added another default handler before that which matches
file://.*\.html? URLs and opens those with browse-url-browser-function.
So it should work as you are accustomed again.
The error
File mode specification error: (file-missing Setting current directory No such file or directory file:///tmp/)
is not my fault but I also get it when evaling
(browse-url-emacs "file:///tmp/burl6qUEJq.html")
...
Ok, I found the culprit in my customization. The buffer gets opened in
html-mode which inherits from prog-mode and in prog-mode-hook I enable
bug-reference-mode. Inside bug-reference-mode-hook I have a function
which sets bug-reference-bug-regexp and bug-reference-url-format
depending on things like the current Gnus group or the current buffer
file's VCS URL. For the latter, it does
(shell-command-to-string "git ls-remote --get-url")
and that (or rather call-process called somewhere deeper in the stack)
barfs if default-directory is a file:///tmp/ URL.
I'm not sure if this is a bug but I think so. I'll report it.
Thanks,
Tassilo
next prev parent reply other threads:[~2020-05-06 21:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-06 17:44 browse-url-of-buffer broken at HEAD? T.V Raman
2020-05-06 19:24 ` T.V Raman
2020-05-06 19:38 ` Tassilo Horn
2020-05-06 19:52 ` T.V Raman
2020-05-06 21:06 ` Tassilo Horn [this message]
2020-05-06 21:29 ` T.V Raman
2020-05-06 21:50 ` Tassilo Horn
2020-05-06 20:56 ` T.V Raman
2020-05-06 21:12 ` Tassilo Horn
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=87a72k3haf.fsf@gnu.org \
--to=tsdh@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=raman@google.com \
/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.