emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 013bb20 1/2: Use a separate history for the eww pro


From: Lars Ingebrigtsen
Subject: [Emacs-diffs] master 013bb20 1/2: Use a separate history for the eww prompt
Date: Fri, 13 Apr 2018 09:42:59 -0400 (EDT)

branch: master
commit 013bb2097e7b269d0ff0fc0e0482e6d8de849620
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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.
---
 lisp/net/eww.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 3f1a1ae..cb7390f 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -218,6 +218,7 @@ See also `eww-form-checkbox-selected-symbol'."
 (defvar eww-data nil)
 (defvar eww-history nil)
 (defvar eww-history-position 0)
+(defvar eww-prompt-history nil)
 
 (defvar eww-local-regex "localhost"
   "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'."
          (prompt (concat "Enter URL or keywords"
                          (if uris (format " (default %s)" (car uris)) "")
                          ": ")))
-     (list (read-string prompt nil nil uris))))
+     (list (read-string prompt nil 'eww-prompt-history uris))))
   (setq url (eww--dwim-expand-url url))
   (pop-to-buffer-same-window
    (if (eq major-mode 'eww-mode)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]