Mercurial > emacs
comparison lisp/url/url-http.el @ 83104:625059157bad
Merged in changes from CVS trunk.
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-220
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-221
Restore deleted tagline in etc/TUTORIAL.ru
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-222
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-223
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-224
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-225
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-144
author | Karoly Lorentey <lorentey@elte.hu> |
---|---|
date | Sun, 18 Apr 2004 01:40:02 +0000 |
parents | eb7e8d483840 fd6856033c18 |
children | 549734260e34 |
comparison
equal
deleted
inserted
replaced
83103:efc0b56b83d9 | 83104:625059157bad |
---|---|
2 | 2 |
3 ;; Copyright (c) 1999, 2001, 2004 Free Software Foundation, Inc. | 3 ;; Copyright (c) 1999, 2001, 2004 Free Software Foundation, Inc. |
4 | 4 |
5 ;; Author: Bill Perry <wmperry@gnu.org> | 5 ;; Author: Bill Perry <wmperry@gnu.org> |
6 ;; Keywords: comm, data, processes | 6 ;; Keywords: comm, data, processes |
7 | |
7 ;; This file is part of GNU Emacs. | 8 ;; This file is part of GNU Emacs. |
8 ;; | 9 ;; |
9 ;; GNU Emacs is free software; you can redistribute it and/or modify | 10 ;; GNU Emacs is free software; you can redistribute it and/or modify |
10 ;; it under the terms of the GNU General Public License as published by | 11 ;; it under the terms of the GNU General Public License as published by |
11 ;; the Free Software Foundation; either version 2, or (at your option) | 12 ;; the Free Software Foundation; either version 2, or (at your option) |
1118 exists)) | 1119 exists)) |
1119 | 1120 |
1120 ;;;###autoload | 1121 ;;;###autoload |
1121 (defalias 'url-http-file-readable-p 'url-http-file-exists-p) | 1122 (defalias 'url-http-file-readable-p 'url-http-file-exists-p) |
1122 | 1123 |
1123 (defun url-http-head-file-attributes (url) | 1124 (defun url-http-head-file-attributes (url &optional id-format) |
1124 (let ((buffer (url-http-head url)) | 1125 (let ((buffer (url-http-head url)) |
1125 (attributes nil)) | 1126 (attributes nil)) |
1126 (when buffer | 1127 (when buffer |
1127 (setq attributes (make-list 11 nil)) | 1128 (setq attributes (make-list 11 nil)) |
1128 (setf (nth 1 attributes) 1) ; Number of links to file | 1129 (setf (nth 1 attributes) 1) ; Number of links to file |
1134 (setf (nth 8 attributes) (eval-when-compile (make-string 10 ?-))) | 1135 (setf (nth 8 attributes) (eval-when-compile (make-string 10 ?-))) |
1135 (kill-buffer buffer)) | 1136 (kill-buffer buffer)) |
1136 attributes)) | 1137 attributes)) |
1137 | 1138 |
1138 ;;;###autoload | 1139 ;;;###autoload |
1139 (defun url-http-file-attributes (url) | 1140 (defun url-http-file-attributes (url &optional id-format) |
1140 (if (url-dav-supported-p url) | 1141 (if (url-dav-supported-p url) |
1141 (url-dav-file-attributes url) | 1142 (url-dav-file-attributes url id-format) |
1142 (url-http-head-file-attributes url))) | 1143 (url-http-head-file-attributes url id-format))) |
1143 | 1144 |
1144 ;;;###autoload | 1145 ;;;###autoload |
1145 (defun url-http-options (url) | 1146 (defun url-http-options (url) |
1146 "Returns a property list describing options available for URL. | 1147 "Returns a property list describing options available for URL. |
1147 This list is retrieved using the `OPTIONS' HTTP method. | 1148 This list is retrieved using the `OPTIONS' HTTP method. |