FUEL: confirmation prompt for cleaning browsing history seem overkill

modern-harvey2
Björn Lindqvist 2017-06-26 14:51:11 +02:00
parent af940cbb24
commit 81446d7948
1 changed files with 4 additions and 5 deletions

View File

@ -297,11 +297,10 @@ With prefix, the current page is deleted from history."
(defun fuel-help-clean-history ()
"Clean up the help browser cache of visited pages."
(interactive)
(when (y-or-n-p "Clean browsing history? ")
(fuel-help--cache-clear)
(setq fuel-help--history (fuel-help--make-history))
(fuel-help-refresh))
(message ""))
(fuel-help-refresh)
(message "Browsing history cleaned"))
(defun fuel-help-edit ()
"Edit the current article or word help."