diff options
Diffstat (limited to 'lisp/url/url-util.el')
| -rw-r--r-- | lisp/url/url-util.el | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lisp/url/url-util.el b/lisp/url/url-util.el index 6dd7a9c2aac..0a7e7e205e0 100644 --- a/lisp/url/url-util.el +++ b/lisp/url/url-util.el | |||
| @@ -569,31 +569,6 @@ Has a preference for looking backward when not directly on a symbol." | |||
| 569 | (setq url nil)) | 569 | (setq url nil)) |
| 570 | url))) | 570 | url))) |
| 571 | 571 | ||
| 572 | (defun url-generate-unique-filename (&optional fmt) | ||
| 573 | "Generate a unique filename in `url-temporary-directory'." | ||
| 574 | (declare (obsolete make-temp-file "23.1")) | ||
| 575 | ;; This variable is obsolete, but so is this function. | ||
| 576 | (let ((tempdir (with-no-warnings url-temporary-directory))) | ||
| 577 | (if (not fmt) | ||
| 578 | (let ((base (format "url-tmp.%d" (user-real-uid))) | ||
| 579 | (fname "") | ||
| 580 | (x 0)) | ||
| 581 | (setq fname (format "%s%d" base x)) | ||
| 582 | (while (file-exists-p | ||
| 583 | (expand-file-name fname tempdir)) | ||
| 584 | (setq x (1+ x) | ||
| 585 | fname (concat base (int-to-string x)))) | ||
| 586 | (expand-file-name fname tempdir)) | ||
| 587 | (let ((base (concat "url" (int-to-string (user-real-uid)))) | ||
| 588 | (fname "") | ||
| 589 | (x 0)) | ||
| 590 | (setq fname (format fmt (concat base (int-to-string x)))) | ||
| 591 | (while (file-exists-p | ||
| 592 | (expand-file-name fname tempdir)) | ||
| 593 | (setq x (1+ x) | ||
| 594 | fname (format fmt (concat base (int-to-string x))))) | ||
| 595 | (expand-file-name fname tempdir))))) | ||
| 596 | |||
| 597 | (defun url-extract-mime-headers () | 572 | (defun url-extract-mime-headers () |
| 598 | "Set `url-current-mime-headers' in current buffer." | 573 | "Set `url-current-mime-headers' in current buffer." |
| 599 | (save-excursion | 574 | (save-excursion |