unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan-W. Hahn" <info@s-hahn.de>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] trunk r116230: Fix bug #16558 with w32-shell-execute on remote file names.
Date: Sun, 2 Feb 2014 08:45:20 +0100	[thread overview]
Message-ID: <20140202074520.GI26985@pille.home> (raw)
In-Reply-To: <jwveh3mxs0t.fsf-monnier+emacsdiffs@gnu.org>

Mail von Stefan Monnier, Sat, 01 Feb 2014 at 19:44:54 -0500:

Good Morning,

> >> > +	* w32fns.c (Fw32_shell_execute): Don't call file-exists-p for
> >> > +	DOCUMENT that is a "remote" file name, i.e. a file-handler exists
> >> > +	for it.  (Bug#16558)
> >> That means we don't call Ffile_exists_p for .gz files :-(
> >> It seems arbitrary.
> > What do you suggest? bind handlers-alist to nil?
> 
> Could you describe the problem we're trying to solve?

because I sent the bug report, I try to summarize.  Because I'm not familar
with the internals of emacs, I just use it, please throw away my thoughts if
they are nonsens.

I think the main problems are:
- to define what Fw32_shell_execute has to do before calling Shellexecute
  and what not.
- to distinct between real files and virtual objects.

There are handlers for both types defined by file-name-handler-alist
and if ShellExecute is called then windows itself also has handlers
defined be registry (HKEY_CLASSES_ROOT\CLSID\{object_clsid}\Shell\verb).

So, if calling a file-handler function inside of Fw32_shell_execute then
file-name-handler-alist transforms the calls (this was my problem with the
call to file-exists-p on an "https://url" because this was translated to a
file download, which is not intended, because I wanted just to start the
browser and in my case the url was in RESTAPI syntax too).

Afterwards windows interprets the filename (or objectname) by checking the
registry. So it knows how to handle things (i.e. virtual objects: http://url, 
outlook:00000000EFABE93C5C7E4947B0D4C936C001637FE4782400 (calls outlook), etc.).

For me, if calling w32-shell-execute, the intention is to give the control
of what to do with the object to windows.


Kind regards,
Stefan

-- 
Stefan-W. Hahn                          It is easy to make things.
                                        It is hard to make things simple.



  parent reply	other threads:[~2014-02-02  7:45 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1W9Wnn-0004N6-IY@vcs.savannah.gnu.org>
2014-02-01 19:26 ` [Emacs-diffs] trunk r116230: Fix bug #16558 with w32-shell-execute on remote file names Stefan Monnier
2014-02-01 19:58   ` Eli Zaretskii
2014-02-02  0:44     ` Stefan Monnier
2014-02-02  3:43       ` Eli Zaretskii
2014-02-02 15:06         ` Stefan Monnier
2014-02-02 15:54           ` Eli Zaretskii
2014-02-03  2:33             ` Stefan Monnier
2014-02-03  4:12               ` David Kastrup
2014-02-03  5:57                 ` Eli Zaretskii
2014-02-03  5:55               ` Eli Zaretskii
2014-02-03 14:06                 ` Stefan Monnier
2014-02-03 16:17                   ` Eli Zaretskii
2014-02-04  3:39                     ` Stefan Monnier
2014-02-04 16:31                       ` Eli Zaretskii
2014-02-04 20:35                         ` Stefan Monnier
2014-02-04 21:01                           ` Eli Zaretskii
2014-02-05  2:38                             ` Stefan Monnier
2014-02-05  3:56                               ` Eli Zaretskii
2014-02-05 14:10                                 ` Stefan Monnier
2014-02-05 16:07                                   ` Eli Zaretskii
2014-02-05 19:09                                     ` Stefan Monnier
2014-02-05 19:56                                       ` Eli Zaretskii
2014-02-05 21:53                                         ` Stefan Monnier
2014-02-06 11:47                                           ` Eli Zaretskii
2014-02-02  7:45       ` Stefan-W. Hahn [this message]
2014-02-05 17:21 grischka
2014-02-05 17:29 ` Eli Zaretskii

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=20140202074520.GI26985@pille.home \
    --to=info@s-hahn.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).