Subject: bug#15622: eww: url-retrieve-internal: Wrong type argument: char-or-string-p, author

From: Glenn Morris <[email-masked]>
Date: Tue, 15 Oct 2013 16:50:23 -0400

Svend Sorensen wrote:

> eww-current-url is set to 'author when visiting a URL of a web page with no
> title. 

Actually I believe it is whenever it visits anything that is not of type
"text/html". This should fix it:

*** lisp/net/eww.el	2013-09-18 04:48:55 +0000
--- lisp/net/eww.el	2013-10-15 20:45:47 +0000
***************
*** 157,165 ****
  	   ((equal (car content-type) "text/html")
  	    (eww-display-html charset url))
  	   ((string-match "^image/" (car content-type))
! 	    (eww-display-image))
  	   (t
! 	    (eww-display-raw)))
  	  (setq eww-history-position 0)
  	  (cond
  	   (point
--- 157,167 ----
  	   ((equal (car content-type) "text/html")
  	    (eww-display-html charset url))
  	   ((string-match "^image/" (car content-type))
! 	    (eww-display-image)
! 	    (setq eww-current-url url))
  	   (t
! 	    (eww-display-raw)
! 	    (setq eww-current-url url)))
  	  (setq eww-history-position 0)
  	  (cond
  	   (point