diff options
| -rw-r--r-- | lisp/net/newsticker.el | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/lisp/net/newsticker.el b/lisp/net/newsticker.el index ff4e6a311e0..c667fba2bca 100644 --- a/lisp/net/newsticker.el +++ b/lisp/net/newsticker.el | |||
| @@ -10,7 +10,7 @@ | |||
| 10 | ;; Created: 17. June 2003 | 10 | ;; Created: 17. June 2003 |
| 11 | ;; Keywords: News, RSS, Atom | 11 | ;; Keywords: News, RSS, Atom |
| 12 | ;; Time-stamp: "29. Januar 2007, 21:05:09 (ulf)" | 12 | ;; Time-stamp: "29. Januar 2007, 21:05:09 (ulf)" |
| 13 | ;; CVS-Version: $Id: newsticker.el,v 1.154 2007/01/29 20:05:35 u11 Exp $ | 13 | ;; CVS-Version: $Id: newsticker.el,v 1.13 2007/02/02 14:29:50 eliz Exp $ |
| 14 | 14 | ||
| 15 | ;; ====================================================================== | 15 | ;; ====================================================================== |
| 16 | 16 | ||
| @@ -4355,7 +4355,7 @@ The mode-line is changed accordingly." | |||
| 4355 | (force-mode-line-update 0)))) | 4355 | (force-mode-line-update 0)))) |
| 4356 | 4356 | ||
| 4357 | (defun newsticker--buffer-redraw () | 4357 | (defun newsticker--buffer-redraw () |
| 4358 | "Sometimes (CVS) Emacs forgets to update the window..." | 4358 | "Redraw the newsticker window." |
| 4359 | (if (fboundp 'force-window-update) | 4359 | (if (fboundp 'force-window-update) |
| 4360 | (force-window-update (current-buffer)) | 4360 | (force-window-update (current-buffer)) |
| 4361 | (redraw-frame (selected-frame))) | 4361 | (redraw-frame (selected-frame))) |
| @@ -4836,17 +4836,8 @@ The face is chosen according the values of NT-FACE and AGE." | |||
| 4836 | (put-text-property pos1 (max pos1 pos2) 'face face)))) | 4836 | (put-text-property pos1 (max pos1 pos2) 'face face)))) |
| 4837 | 4837 | ||
| 4838 | (defun newsticker--insert-image (img string) | 4838 | (defun newsticker--insert-image (img string) |
| 4839 | "Insert IMG with STRING at point. | 4839 | "Insert IMG with STRING at point." |
| 4840 | This is a work-around for a strange behavior of Emacs versions before | 4840 | (insert-image img string)) |
| 4841 | 21.3.50. Images inserted with `insert-image' vanished after doing | ||
| 4842 | `fill-region'." | ||
| 4843 | ;; This should work: | ||
| 4844 | ;;(insert-image img string) | ||
| 4845 | ;; but it does not. Therefore we do this, which should be equivalent! | ||
| 4846 | (let ((pos (point))) | ||
| 4847 | ;;(insert string) | ||
| 4848 | (insert ":-)") | ||
| 4849 | (add-text-properties pos (point) (list 'display img)))) | ||
| 4850 | 4841 | ||
| 4851 | ;; ====================================================================== | 4842 | ;; ====================================================================== |
| 4852 | ;;; HTML rendering | 4843 | ;;; HTML rendering |