unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "T.V Raman" <raman@google.com>
To: emacs-devel@gnu.org
Subject: Re: browse-url-of-buffer broken at HEAD?
Date: Wed, 06 May 2020 14:29:00 -0700	[thread overview]
Message-ID: <p91h7ws92hv.fsf@google.com> (raw)
In-Reply-To: <87a72k3haf.fsf@gnu.org> (Tassilo Horn's message of "Wed, 06 May 2020 23:06:00 +0200")

Tassilo Horn <tsdh@gnu.org> writes:

Note the error I was seeing in *Messages* was different, it was
"File exists but cannot be read" or something similar
it's gone now.
> "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
>

-- 



  reply	other threads:[~2020-05-06 21:29 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
2020-05-06 21:29         ` T.V Raman [this message]
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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=p91h7ws92hv.fsf@google.com \
    --to=raman@google.com \
    --cc=emacs-devel@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).