mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-26 10:49:33 +00:00
(url-history-list): Var deleted.
(url-history-save-interval): Simplify. (url-history-setup-save-timer): Simplify.
This commit is contained in:
parent
67afa80d62
commit
8553120c70
@ -1,3 +1,9 @@
|
|||||||
|
2005-12-04 Klaus Straubinger <KSNetz@Arcor.DE> (tiny change)
|
||||||
|
|
||||||
|
* url-history.el (url-history-list): Var deleted.
|
||||||
|
(url-history-save-interval): Simplify.
|
||||||
|
(url-history-setup-save-timer): Simplify.
|
||||||
|
|
||||||
2005-12-01 Kim F. Storm <storm@cua.dk>
|
2005-12-01 Kim F. Storm <storm@cua.dk>
|
||||||
|
|
||||||
* url-history.el (url-history-track): Fix last change.
|
* url-history.el (url-history-track): Fix last change.
|
||||||
|
@ -63,14 +63,10 @@ is parsed at startup and used to provide URL completion."
|
|||||||
Default is 1 hour. Note that if you change this variable outside of
|
Default is 1 hour. Note that if you change this variable outside of
|
||||||
the `customize' interface after `url-do-setup' has been run, you need
|
the `customize' interface after `url-do-setup' has been run, you need
|
||||||
to run the `url-history-setup-save-timer' function manually."
|
to run the `url-history-setup-save-timer' function manually."
|
||||||
:set (function (lambda (var val)
|
:set #'(lambda (var val)
|
||||||
(set-default var val)
|
(set-default var val)
|
||||||
(and (featurep 'url)
|
(if (bound-and-true-p url-setup-done)
|
||||||
(fboundp 'url-history-setup-save-timer)
|
(url-history-setup-save-timer)))
|
||||||
(let ((def (symbol-function
|
|
||||||
'url-history-setup-save-timer)))
|
|
||||||
(not (and (listp def) (eq 'autoload (car def)))))
|
|
||||||
(url-history-setup-save-timer))))
|
|
||||||
:type 'integer
|
:type 'integer
|
||||||
:group 'url-history)
|
:group 'url-history)
|
||||||
|
|
||||||
@ -92,20 +88,12 @@ to run the `url-history-setup-save-timer' function manually."
|
|||||||
"Reset the history list timer."
|
"Reset the history list timer."
|
||||||
(interactive)
|
(interactive)
|
||||||
(ignore-errors
|
(ignore-errors
|
||||||
(cond ((fboundp 'cancel-timer) (cancel-timer url-history-timer))
|
(cancel-timer url-history-timer))
|
||||||
((fboundp 'delete-itimer) (delete-itimer url-history-timer))))
|
|
||||||
(setq url-history-timer nil)
|
(setq url-history-timer nil)
|
||||||
(if (and (eq url-history-track t) url-history-save-interval)
|
(if (and (eq url-history-track t) url-history-save-interval)
|
||||||
(setq url-history-timer
|
(setq url-history-timer (run-at-time url-history-save-interval
|
||||||
(cond
|
|
||||||
((fboundp 'run-at-time)
|
|
||||||
(run-at-time url-history-save-interval
|
|
||||||
url-history-save-interval
|
url-history-save-interval
|
||||||
'url-history-save-history))
|
'url-history-save-history))))
|
||||||
((fboundp 'start-itimer)
|
|
||||||
(start-itimer "url-history-saver" 'url-history-save-history
|
|
||||||
url-history-save-interval
|
|
||||||
url-history-save-interval))))))
|
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun url-history-parse-history (&optional fname)
|
(defun url-history-parse-history (&optional fname)
|
||||||
|
Loading…
Reference in New Issue
Block a user