aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2018-04-13 15:22:30 +0200
committerLars Ingebrigtsen2018-04-13 15:42:53 +0200
commit013bb2097e7b269d0ff0fc0e0482e6d8de849620 (patch)
tree1fd6f0239ea8d275cdb6e4efe0ad5cec625dbae1
parent1f31c1348c4ddec31664e78f8cf4b9514d2a32c6 (diff)
downloademacs-013bb2097e7b269d0ff0fc0e0482e6d8de849620.tar.gz
emacs-013bb2097e7b269d0ff0fc0e0482e6d8de849620.zip
Use a separate history for the eww prompt
* lisp/net/eww.el (eww-prompt-history): A separate history variable for the interactive eww prompt. (eww): Use it.
-rw-r--r--lisp/net/eww.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 3f1a1aeae3e..cb7390f4724 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -218,6 +218,7 @@ See also `eww-form-checkbox-selected-symbol'."
218(defvar eww-data nil) 218(defvar eww-data nil)
219(defvar eww-history nil) 219(defvar eww-history nil)
220(defvar eww-history-position 0) 220(defvar eww-history-position 0)
221(defvar eww-prompt-history nil)
221 222
222(defvar eww-local-regex "localhost" 223(defvar eww-local-regex "localhost"
223 "When this regex is found in the URL, it's not a keyword but an address.") 224 "When this regex is found in the URL, it's not a keyword but an address.")
@@ -250,7 +251,7 @@ word(s) will be searched for via `eww-search-prefix'."
250 (prompt (concat "Enter URL or keywords" 251 (prompt (concat "Enter URL or keywords"
251 (if uris (format " (default %s)" (car uris)) "") 252 (if uris (format " (default %s)" (car uris)) "")
252 ": "))) 253 ": ")))
253 (list (read-string prompt nil nil uris)))) 254 (list (read-string prompt nil 'eww-prompt-history uris))))
254 (setq url (eww--dwim-expand-url url)) 255 (setq url (eww--dwim-expand-url url))
255 (pop-to-buffer-same-window 256 (pop-to-buffer-same-window
256 (if (eq major-mode 'eww-mode) 257 (if (eq major-mode 'eww-mode)