aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2006-01-05 22:07:30 +0000
committerStefan Monnier2006-01-05 22:07:30 +0000
commitce0c92e1f319ea55cdc414b3972836138ce39731 (patch)
tree5ed51f901ae065ed98bb7aa9cb7a9aab259d9336
parentbef9f82ccf659ad83c81b21f92976150c4a09647 (diff)
downloademacs-ce0c92e1f319ea55cdc414b3972836138ce39731.tar.gz
emacs-ce0c92e1f319ea55cdc414b3972836138ce39731.zip
(url-history-parse-history): Don't complain if the file is missing.
(url-history-setup-save-timer, url-history-parse-history) (url-history-save-history): Remove autoload cookies. They're only called from url.el which requires url-history anyway.
-rw-r--r--lisp/url/url-history.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/url/url-history.el b/lisp/url/url-history.el
index 3bb7145b451..8ed9f1d8171 100644
--- a/lisp/url/url-history.el
+++ b/lisp/url/url-history.el
@@ -1,7 +1,7 @@
1;;; url-history.el --- Global history tracking for URL package 1;;; url-history.el --- Global history tracking for URL package
2 2
3;; Copyright (C) 1996, 1997, 1998, 1999, 2004, 3;; Copyright (C) 1996, 1997, 1998, 1999, 2004,
4;; 2005 Free Software Foundation, Inc. 4;; 2005, 2006 Free Software Foundation, Inc.
5 5
6;; Keywords: comm, data, processes, hypermedia 6;; Keywords: comm, data, processes, hypermedia
7 7
@@ -80,7 +80,6 @@ to run the `url-history-setup-save-timer' function manually."
80 80
81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 81;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
82 82
83;;;###autoload
84(defun url-history-setup-save-timer () 83(defun url-history-setup-save-timer ()
85 "Reset the history list timer." 84 "Reset the history list timer."
86 (interactive) 85 (interactive)
@@ -92,14 +91,15 @@ to run the `url-history-setup-save-timer' function manually."
92 url-history-save-interval 91 url-history-save-interval
93 'url-history-save-history)))) 92 'url-history-save-history))))
94 93
95;;;###autoload
96(defun url-history-parse-history (&optional fname) 94(defun url-history-parse-history (&optional fname)
97 "Parse a history file stored in FNAME." 95 "Parse a history file stored in FNAME."
98 ;; Parse out the mosaic global history file for completions, etc. 96 ;; Parse out the mosaic global history file for completions, etc.
99 (or fname (setq fname (expand-file-name url-history-file))) 97 (or fname (setq fname (expand-file-name url-history-file)))
100 (cond 98 (cond
101 ((not (file-exists-p fname)) 99 ((not (file-exists-p fname))
102 (message "%s does not exist." fname)) 100 ;; It's completely normal for this file not to exist, so don't complain.
101 ;; (message "%s does not exist." fname)
102 )
103 ((not (file-readable-p fname)) 103 ((not (file-readable-p fname))
104 (message "%s is unreadable." fname)) 104 (message "%s is unreadable." fname))
105 (t 105 (t
@@ -113,7 +113,6 @@ to run the `url-history-setup-save-timer' function manually."
113 (setq url-history-changed-since-last-save t) 113 (setq url-history-changed-since-last-save t)
114 (puthash (if (vectorp url) (url-recreate-url url) url) time url-history-hash-table)) 114 (puthash (if (vectorp url) (url-recreate-url url) url) time url-history-hash-table))
115 115
116;;;###autoload
117(defun url-history-save-history (&optional fname) 116(defun url-history-save-history (&optional fname)
118 "Write the global history file into `url-history-file'. 117 "Write the global history file into `url-history-file'.
119The type of data written is determined by what is in the file to begin 118The type of data written is determined by what is in the file to begin