aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2005-06-10 22:02:23 +0000
committerStefan Monnier2005-06-10 22:02:23 +0000
commit0090e0483c1aaa5b43dd521de0a52d64c4bc0603 (patch)
tree73234477a0144cc5112ddcb1022960f4a981d39e
parent7f95457178a15c411cc91d94ddefab6d1e5fa77a (diff)
downloademacs-0090e0483c1aaa5b43dd521de0a52d64c4bc0603.tar.gz
emacs-0090e0483c1aaa5b43dd521de0a52d64c4bc0603.zip
Remove most autoload cookies.
Don't hook into the url-file-handler since it currently breaks all non-HTTP URLs.
-rw-r--r--lisp/url/ChangeLog4
-rw-r--r--lisp/url/url-dav.el35
2 files changed, 16 insertions, 23 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 8ec7293a458..27981553e83 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,5 +1,9 @@
12005-06-10 Stefan Monnier <monnier@iro.umontreal.ca> 12005-06-10 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * url-dav.el: Remove most autoload cookies.
4 Don't hook into the url-file-handler since it currently breaks all
5 non-HTTP URLs.
6
3 * url-handlers.el (vc-registered): Explicitly disable VC for URL files. 7 * url-handlers.el (vc-registered): Explicitly disable VC for URL files.
4 8
5 * url.el (url-retrieve-synchronously): Don't exit precipitously when 9 * url.el (url-retrieve-synchronously): Don't exit precipitously when
diff --git a/lisp/url/url-dav.el b/lisp/url/url-dav.el
index a0f1ae1ebe7..a3320f88e96 100644
--- a/lisp/url/url-dav.el
+++ b/lisp/url/url-dav.el
@@ -457,7 +457,6 @@ added to this list, so most requests can just pass in nil."
457 "</" (symbol-name tag) ">\n")))) 457 "</" (symbol-name tag) ">\n"))))
458 (url-dav-process-response (url-retrieve-synchronously url) url))) 458 (url-dav-process-response (url-retrieve-synchronously url) url)))
459 459
460;;;###autoload
461(defun url-dav-get-properties (url &optional attributes depth namespaces) 460(defun url-dav-get-properties (url &optional attributes depth namespaces)
462 "Return properties for URL, up to DEPTH levels deep. 461 "Return properties for URL, up to DEPTH levels deep.
463 462
@@ -487,7 +486,6 @@ identify the owner of a LOCK when requesting it. This will be shown
487to other users when the DAV:lockdiscovery property is requested, so 486to other users when the DAV:lockdiscovery property is requested, so
488make sure you are comfortable with it leaking to the outside world.") 487make sure you are comfortable with it leaking to the outside world.")
489 488
490;;;###autoload
491(defun url-dav-lock-resource (url exclusive &optional depth) 489(defun url-dav-lock-resource (url exclusive &optional depth)
492 "Request a lock on URL. If EXCLUSIVE is non-nil, get an exclusive lock. 490 "Request a lock on URL. If EXCLUSIVE is non-nil, get an exclusive lock.
493Optional 3rd argument DEPTH says how deep the lock should go, default is 0 491Optional 3rd argument DEPTH says how deep the lock should go, default is 0
@@ -528,7 +526,6 @@ FAILURE-RESULTS is a list of (URL STATUS)."
528 (push (list url child-status) failures))) 526 (push (list url child-status) failures)))
529 (cons successes failures))) 527 (cons successes failures)))
530 528
531;;;###autoload
532(defun url-dav-active-locks (url &optional depth) 529(defun url-dav-active-locks (url &optional depth)
533 "Return an assoc list of all active locks on URL." 530 "Return an assoc list of all active locks on URL."
534 (let ((response (url-dav-get-properties url '(DAV:lockdiscovery) depth)) 531 (let ((response (url-dav-get-properties url '(DAV:lockdiscovery) depth))
@@ -563,7 +560,6 @@ FAILURE-RESULTS is a list of (URL STATUS)."
563 results))) 560 results)))
564 results)) 561 results))
565 562
566;;;###autoload
567(defun url-dav-unlock-resource (url lock-token) 563(defun url-dav-unlock-resource (url lock-token)
568 "Release the lock on URL represented by LOCK-TOKEN. 564 "Release the lock on URL represented by LOCK-TOKEN.
569Returns t iff the lock was successfully released." 565Returns t iff the lock was successfully released."
@@ -624,7 +620,6 @@ Returns t iff the lock was successfully released."
624 620
625(autoload 'url-http-head-file-attributes "url-http") 621(autoload 'url-http-head-file-attributes "url-http")
626 622
627;;;###autoload
628(defun url-dav-file-attributes (url &optional id-format) 623(defun url-dav-file-attributes (url &optional id-format)
629 (let ((properties (cdar (url-dav-get-properties url))) 624 (let ((properties (cdar (url-dav-get-properties url)))
630 (attributes nil)) 625 (attributes nil))
@@ -680,7 +675,6 @@ Returns t iff the lock was successfully released."
680 (setq attributes (url-http-head-file-attributes url id-format))) 675 (setq attributes (url-http-head-file-attributes url id-format)))
681 attributes)) 676 attributes))
682 677
683;;;###autoload
684(defun url-dav-save-resource (url obj &optional content-type lock-token) 678(defun url-dav-save-resource (url obj &optional content-type lock-token)
685 "Save OBJ as URL using WebDAV. 679 "Save OBJ as URL using WebDAV.
686URL must be a fully qualified URL. 680URL must be a fully qualified URL.
@@ -736,7 +730,6 @@ Use with care, and even then think three times.
736 (concat "(<" ,lock-token ">)")))))))) 730 (concat "(<" ,lock-token ">)"))))))))
737 731
738 732
739;;;###autoload
740(defun url-dav-delete-directory (url &optional recursive lock-token) 733(defun url-dav-delete-directory (url &optional recursive lock-token)
741 "Delete the WebDAV collection URL. 734 "Delete the WebDAV collection URL.
742If optional second argument RECURSIVE is non-nil, then delete all 735If optional second argument RECURSIVE is non-nil, then delete all
@@ -761,7 +754,6 @@ files in the collection as well."
761 props)) 754 props))
762 nil) 755 nil)
763 756
764;;;###autoload
765(defun url-dav-delete-file (url &optional lock-token) 757(defun url-dav-delete-file (url &optional lock-token)
766 "Delete file named URL." 758 "Delete file named URL."
767 (let ((props nil) 759 (let ((props nil)
@@ -781,7 +773,6 @@ files in the collection as well."
781 props)) 773 props))
782 nil) 774 nil)
783 775
784;;;###autoload
785(defun url-dav-directory-files (url &optional full match nosort files-only) 776(defun url-dav-directory-files (url &optional full match nosort files-only)
786 "Return a list of names of files in DIRECTORY. 777 "Return a list of names of files in DIRECTORY.
787There are three optional arguments: 778There are three optional arguments:
@@ -828,13 +819,11 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
828 files 819 files
829 (sort files 'string-lessp)))) 820 (sort files 'string-lessp))))
830 821
831;;;###autoload
832(defun url-dav-file-directory-p (url) 822(defun url-dav-file-directory-p (url)
833 "Return t if URL names an existing DAV collection." 823 "Return t if URL names an existing DAV collection."
834 (let ((properties (cdar (url-dav-get-properties url '(DAV:resourcetype))))) 824 (let ((properties (cdar (url-dav-get-properties url '(DAV:resourcetype)))))
835 (eq (plist-get properties 'DAV:resourcetype) 'DAV:collection))) 825 (eq (plist-get properties 'DAV:resourcetype) 'DAV:collection)))
836 826
837;;;###autoload
838(defun url-dav-make-directory (url &optional parents) 827(defun url-dav-make-directory (url &optional parents)
839 "Create the directory DIR and any nonexistent parent dirs." 828 "Create the directory DIR and any nonexistent parent dirs."
840 (declare (special url-http-response-status)) 829 (declare (special url-http-response-status))
@@ -864,7 +853,6 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
864 (kill-buffer buffer))) 853 (kill-buffer buffer)))
865 result)) 854 result))
866 855
867;;;###autoload
868(defun url-dav-rename-file (oldname newname &optional overwrite) 856(defun url-dav-rename-file (oldname newname &optional overwrite)
869 (if (not (and (string-match url-handler-regexp oldname) 857 (if (not (and (string-match url-handler-regexp oldname)
870 (string-match url-handler-regexp newname))) 858 (string-match url-handler-regexp newname)))
@@ -905,13 +893,11 @@ If NOSORT is non-nil, the list is not sorted--its order is unpredictable.
905 props) 893 props)
906 t)) 894 t))
907 895
908;;;###autoload
909(defun url-dav-file-name-all-completions (file url) 896(defun url-dav-file-name-all-completions (file url)
910 "Return a list of all completions of file name FILE in directory DIRECTORY. 897 "Return a list of all completions of file name FILE in directory DIRECTORY.
911These are all file names in directory DIRECTORY which begin with FILE." 898These are all file names in directory DIRECTORY which begin with FILE."
912 (url-dav-directory-files url nil (concat "^" file ".*"))) 899 (url-dav-directory-files url nil (concat "^" file ".*")))
913 900
914;;;###autoload
915(defun url-dav-file-name-completion (file url) 901(defun url-dav-file-name-completion (file url)
916 "Complete file name FILE in directory DIRECTORY. 902 "Complete file name FILE in directory DIRECTORY.
917Returns the longest string 903Returns the longest string
@@ -951,15 +937,18 @@ Returns nil if DIR contains no name starting with FILE."
951 (put op 'url-file-handlers (intern-soft (format "url-dav-%s" op)))) 937 (put op 'url-file-handlers (intern-soft (format "url-dav-%s" op))))
952 938
953(mapcar 'url-dav-register-handler 939(mapcar 'url-dav-register-handler
954 '(file-name-all-completions 940 ;; These handlers are disabled because they incorrectly presume that
955 file-name-completion 941 ;; the URL specifies an HTTP location and thus break FTP URLs.
956 rename-file 942 '(;; file-name-all-completions
957 make-directory 943 ;; file-name-completion
958 file-directory-p 944 ;; rename-file
959 directory-files 945 ;; make-directory
960 delete-file 946 ;; file-directory-p
961 delete-directory 947 ;; directory-files
962 file-attributes)) 948 ;; delete-file
949 ;; delete-directory
950 ;; file-attributes
951 ))
963 952
964 953
965;;; Version Control backend cruft 954;;; Version Control backend cruft