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

saving to ~/foo and next history

When saving a page to ~/foo.html, the "N" next history item left is
file://~/foo.html which "N" gives "Reading failed".
I wonder if the push would use w3m-expand-file-name-as-url.

2017-01-04  Kevin Ryde  <user42_kevin@xxxxxxxxxxxx>

	* w3m-save.el (w3m-save-buffer): Use w3m-expand-file-name-as-url for
	w3m-history-push in case filename ~/foo etc.
--- w3m-save.el.~1.9.~	2016-09-10 12:46:04.858306078 +1000
+++ w3m-save.el	2017-01-04 09:46:58.481397597 +1100
@@ -227,7 +227,7 @@
 	 (cadar w3m-history)
-       (w3m-history-push (concat "file://" name)
+       (w3m-history-push (w3m-expand-file-name-as-url name)
 			 (list :title (or w3m-current-title "<no-title>")))))))
 (provide 'w3m-save)