[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

https by default (English + =?utf-8?b?5pel5pys6KqeKQ==?=



Hi emacs-w3m authorities,
Let me ask some questions in relation to the discussion beginning
with [emacs-w3m:12749].
--------
������������������������������
[emacs-w3m:12749] ���������������������������������������������������������������������
���������������

Q1.
========
Why is the constant `w3m-url-fallback-base' "http:///";, not
"http://";?  The function `w3m-expand-url' uses it and behaves as
follows:

(w3m-expand-url "www.gnu.org") => "http:///www.gnu.org";

It is invalid.  Shouldn't the result be "http://www.gnu.org";?
--------
������������ `w3m-url-fallback-base' ������"http://"; ���������������
"http:///"; ���������������?  (w3m-expand-url "www.gnu.org") ���
"http:///www.gnu.org"; ���������������������������������������������������������
"http://www.gnu.org"; ������������������������������������?

Q2.
========
Why does the function `w3m-url-valid' only check if a given
string does not match `w3m-url-invalid-regexp' ("\\`http:///";)?
IOW, why is this judged valid?

(and (w3m-url-valid "ptth://www.gnu.org") 'VALID) => VALID
--------
������������ `w3m-url-valid' ���������������������������������
`w3m-url-invalid-regexp' ("\\`http:///";) ������������������������������
������������������������������������������?������������������������������������������������
���������������������?  --- (w3m-url-valid "ptth://www.gnu.org")