unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 42432@debbugs.gnu.org
Subject: bug#42432: 26.3; Doc of `browse-url*' functions
Date: Sun, 19 Jul 2020 20:24:35 +0000 (UTC)	[thread overview]
Message-ID: <942d4135-221f-408c-b73d-72eec963d4f6@default> (raw)
In-Reply-To: <87d04rl1or.fsf@gnus.org>

> > The doc of the `browse-url*' functions that says that the function
> > uses a WWW browser is, in general, incorrect when it comes to functions
> > that can browse a file.  The doc should be corrected in this regard.
> >
> > For example, any function that directly or indirectly uses
> > `browse-url-default-windows-browser' does NOT, even in general, use a
> > web browser.  It typically uses `w32-shell-execute' with action "open"
> > to open the file.  In general, the program that does that is determined
> > by the file type, and in generalt it is NOT a web browser.
> 
> You're right about the doc string being misleading, but it's incorrect
> for new reasons in more modern versions of Emacs.  :-)

More "modern" versions than the latest release (which
is what I reported about)? ;-)

> These days, 

No, not in the latest release, which is what "these
days" should refer to.  Let's not get ahead of ourselves. ;-)

> that action is only called for files that have with
> .htm{l,} in the file names, so it's more correct in that
> regard.  But all other files are opened using Emacs
> itself now, so there's no web browser involved.

If they're opened in Emacs then that's worse behavior
than previously.  In Emacs 26.3 and prior, the
appropriate MS Windows "open" action was taken for the
file.  To me, that's far preferable behavior to having
Emacs override the user (Windows preferences) on this.

My complaint for this bug was only about the doc.  But
if the behavior has changed as you suggest then that's
a much more serious regression.  I don't see that in
26.3 - please consider filing a bug for that if you see
it in some future version.

Emacs does provide a way for users, inside Emacs, to
specify their preferences for programs that act on
given file types.  Option ` dired-guess-shell-alist-user',
for example.  But this should presumably specifically
be about the MS Windows "open" action, IMO.





  reply	other threads:[~2020-07-19 20:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-19 19:50 bug#42432: 26.3; Doc of `browse-url*' functions Drew Adams
2020-07-19 19:55 ` Lars Ingebrigtsen
2020-07-19 20:24   ` Drew Adams [this message]
2021-06-12 13:07 ` Lars Ingebrigtsen

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=942d4135-221f-408c-b73d-72eec963d4f6@default \
    --to=drew.adams@oracle.com \
    --cc=42432@debbugs.gnu.org \
    --cc=larsi@gnus.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).