[gnus git] branch master updated: m0-7-91-gd451a71 =1= Don't bug out on zero-length links

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  d451a71645d7923064c843d234ce4162c7b82acf (commit)
      from  b1c0e287664751697a118a8e7fc28c0b8d0e1a98 (commit)


- Log -----------------------------------------------------------------
commit d451a71645d7923064c843d234ce4162c7b82acf
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Sun Jun 16 17:49:06 2013 +0200

    Don't bug out on zero-length links
    
    * eww.el (eww-tag-textarea): Use `text' instead of `editable-field'.
    
    * shr.el (shr-expand-url): Don't bug out on zero-length links.

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b08c4ff..e38e175 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
 2013-06-16  Lars Magne Ingebrigtsen  <[email protected]>
 
+	* eww.el (eww-tag-textarea): Use `text' instead of `editable-field'.
+
+	* shr.el (shr-expand-url): Don't bug out on zero-length links.
+
 	* eww.el (eww-tag-textarea): Support <textarea>.
 
 2013-06-16  Rüdiger Sonderfeld  <[email protected]>
diff --git a/lisp/eww.el b/lisp/eww.el
index f99e5be..cca59f9 100644
--- a/lisp/eww.el
+++ b/lisp/eww.el
@@ -301,7 +301,7 @@
 (defun eww-tag-textarea (cont)
   (let* ((start (point))
 	 (widget
-	  (list 'editable-field
+	  (list 'text
 		:size (string-to-number
 		       (or (cdr (assq :cols cont))
 			   "40"))
diff --git a/lisp/shr.el b/lisp/shr.el
index fae1742..f2e2b57 100644
--- a/lisp/shr.el
+++ b/lisp/shr.el
@@ -513,6 +513,8 @@ size, and full-buffer size."
 	    (shr-parse-base base)
 	  ;; Bound by the parser.
 	  shr-base))
+  (when (zerop (length url))
+    (setq url nil))
   (cond ((or (not url)
 	     (not base)
 	     (string-match "\\`[a-z]*:" url))

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog |    4 ++++
 lisp/eww.el    |    2 +-
 lisp/shr.el    |    2 ++
 3 files changed, 7 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.