[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Your last change to browse-url is bogus.
From: |
Michaël Cadilhac |
Subject: |
Re: Your last change to browse-url is bogus. |
Date: |
Wed, 12 Sep 2007 12:38:51 +0200 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.50 (gnu/linux) |
Johannes Weiner <address@hidden> writes:
> On Wed, Sep 12, 2007 at 11:13:42AM +0200, Michaël Cadilhac wrote:
>> use something like this:
>
>> --- browse-url.el 12 Sep 2007 10:49:04 +0200 1.61
>> +++ browse-url.el 12 Sep 2007 11:09:27 +0200
> [...]
>> - (setq file (browse-url-encode-url file))
>> + (setq file (browse-url-encode-url file "[*\"()',=;? ]" 'encode-percent))
> [...]
>> - (setq url (browse-url-encode-url url))
>> + (setq url (browse-url-encode-url url "[,)$]"))
> [...]
>> - (setq url (browse-url-encode-url url))
>> + (setq url (browse-url-encode-url url "[,)$]"))
> [...]
>> - (setq url (browse-url-encode-url url))
>> + (setq url (browse-url-encode-url url "[,)$]"))
> [...]
>> - (setq url (browse-url-encode-url url))
>> + (setq url (browse-url-encode-url url "[,)$]"))
> [...]
>> - (setq url (browse-url-encode-url url))
>> + (setq url (browse-url-encode-url url "[,)$]"))
> [...]
>> - (setq url (browse-url-encode-url url))
>> + (setq url (browse-url-encode-url url "[,)$]"))
>
> These use mostly the same argument. Can't we generalize this? Would it hurt
> the callsites if they all would use "[*\"()',=;? ]"?
Yes, it will. A ``confusing char'' is just something Firefox or others
can consider as a URL separator or as a variable or something when the
website is passed as an argument to the executable, AFAIU.
`?=*' for example are not usually ``confusing''. The only place those
chars are to be converted is when we browse for a file (thus when `?='
don't have their special meanings).
In the other cases, removing those chars destroys the meaning of the
URL.
--
| Michaël `Micha' Cadilhac | And please suggest to him that |
| http://michael.cadilhac.name | he not refer to Microsoft Windows |
| JID/MSN: | as "win". |
`---- address@hidden | -- RMS - --'
pgpQNaYxoM3Et.pgp
Description: PGP signature
- Your last change to browse-url is bogus., Michaël Cadilhac, 2007/09/12
- Re: Your last change to browse-url is bogus., YAMAMOTO Mitsuharu, 2007/09/12
- Re: Your last change to browse-url is bogus., Michaël Cadilhac, 2007/09/12
- Re: Your last change to browse-url is bogus., YAMAMOTO Mitsuharu, 2007/09/12
- Re: Your last change to browse-url is bogus., Michaël Cadilhac, 2007/09/12
- Re: Your last change to browse-url is bogus., YAMAMOTO Mitsuharu, 2007/09/17
- Re: Your last change to browse-url is bogus., Michaël Cadilhac, 2007/09/17