diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/net/newst-backend.el | 16 | ||||
| -rw-r--r-- | lisp/net/newst-treeview.el | 4 |
3 files changed, 25 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 375dd080b0f..9f233cdaadf 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2014-12-01 Ulf Jasper <ulf.jasper@web.de> | ||
| 2 | |||
| 3 | * net/newst-treeview.el (newsticker--treeview-item-show): Check | ||
| 4 | window liveliness before measuring its width. | ||
| 5 | |||
| 6 | * net/newst-backend.el (newsticker--get-news-by-url-callback): | ||
| 7 | Pass correct status to `newsticker--sentinel-work'. | ||
| 8 | (newsticker--sentinel-work): Use "newsticker--download-error" as | ||
| 9 | guid in order to prevent multiple "Could not download..." | ||
| 10 | messages. Fixes bug#19166. | ||
| 11 | |||
| 1 | 2014-12-01 Ivan Shmakov <ivan@siamics.net> | 12 | 2014-12-01 Ivan Shmakov <ivan@siamics.net> |
| 2 | 13 | ||
| 3 | * net/eww.el (eww-render): Call `eww-after-render-hook' in the | 14 | * net/eww.el (eww-render): Call `eww-after-render-hook' in the |
diff --git a/lisp/net/newst-backend.el b/lisp/net/newst-backend.el index 31ebc7ac583..de5c23ca4c9 100644 --- a/lisp/net/newst-backend.el +++ b/lisp/net/newst-backend.el | |||
| @@ -745,10 +745,14 @@ from." | |||
| 745 | (insert result) | 745 | (insert result) |
| 746 | ;; remove MIME header | 746 | ;; remove MIME header |
| 747 | (goto-char (point-min)) | 747 | (goto-char (point-min)) |
| 748 | (search-forward "\n\n") | 748 | (search-forward "\n\n" nil t) |
| 749 | (delete-region (point-min) (point)) | 749 | (delete-region (point-min) (point)) |
| 750 | ;; read the rss/atom contents | 750 | ;; read the rss/atom contents |
| 751 | (newsticker--sentinel-work nil t feed-name "url-retrieve" (current-buffer)) | 751 | (newsticker--sentinel-work nil |
| 752 | (or (not status) | ||
| 753 | (not (eq (car status) :error))) | ||
| 754 | feed-name "url-retrieve" | ||
| 755 | (current-buffer)) | ||
| 752 | (when status | 756 | (when status |
| 753 | (let ((status-type (car status)) | 757 | (let ((status-type (car status)) |
| 754 | (status-details (cdr status))) | 758 | (status-details (cdr status))) |
| @@ -831,7 +835,8 @@ Argument COMMAND is the command of the retrieval process. | |||
| 831 | Argument BUFFER is the buffer of the retrieval process." | 835 | Argument BUFFER is the buffer of the retrieval process." |
| 832 | (let ((time (current-time)) | 836 | (let ((time (current-time)) |
| 833 | (name-symbol (intern feed-name)) | 837 | (name-symbol (intern feed-name)) |
| 834 | (something-was-added nil)) | 838 | (something-was-added nil) |
| 839 | (ct (current-time))) | ||
| 835 | ;; catch known errors (zombie processes, rubbish-xml etc. | 840 | ;; catch known errors (zombie processes, rubbish-xml etc. |
| 836 | ;; if an error occurs the news feed is not updated! | 841 | ;; if an error occurs the news feed is not updated! |
| 837 | (catch 'oops | 842 | (catch 'oops |
| @@ -848,9 +853,10 @@ Argument BUFFER is the buffer of the retrieval process." | |||
| 848 | (format-time-string "%A, %H:%M") | 853 | (format-time-string "%A, %H:%M") |
| 849 | feed-name event command) | 854 | feed-name event command) |
| 850 | "" | 855 | "" |
| 851 | (current-time) | 856 | ct |
| 852 | 'new | 857 | 'new |
| 853 | 0 nil)) | 858 | 0 '((guid nil "newsticker--download-error")) |
| 859 | ct)) | ||
| 854 | (message "%s: Error while retrieving news from %s" | 860 | (message "%s: Error while retrieving news from %s" |
| 855 | (format-time-string "%A, %H:%M") | 861 | (format-time-string "%A, %H:%M") |
| 856 | feed-name) | 862 | feed-name) |
diff --git a/lisp/net/newst-treeview.el b/lisp/net/newst-treeview.el index 30015f499ef..0b159234dfa 100644 --- a/lisp/net/newst-treeview.el +++ b/lisp/net/newst-treeview.el | |||
| @@ -717,7 +717,9 @@ for the button." | |||
| 717 | (remove-overlays) | 717 | (remove-overlays) |
| 718 | 718 | ||
| 719 | (when (and item feed-name-symbol) | 719 | (when (and item feed-name-symbol) |
| 720 | (let ((wwidth (1- (window-width (newsticker--treeview-item-window))))) | 720 | (let ((wwidth (1- (if (window-live-p (newsticker--treeview-item-window)) |
| 721 | (window-width (newsticker--treeview-item-window)) | ||
| 722 | fill-column)))) | ||
| 721 | (if newsticker-use-full-width | 723 | (if newsticker-use-full-width |
| 722 | (set (make-local-variable 'fill-column) wwidth)) | 724 | (set (make-local-variable 'fill-column) wwidth)) |
| 723 | (set (make-local-variable 'fill-column) (min fill-column | 725 | (set (make-local-variable 'fill-column) (min fill-column |