aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorLars Ingebrigtsen2012-02-07 22:17:11 +0000
committerKatsumi Yamaoka2012-02-07 22:17:11 +0000
commit7c4bbb6992b443b0ce569d111fc167ad753e912c (patch)
tree4041ace40581d71bea3c2c63ac6f2927403a7462 /lisp
parent5e0d957fe021bc921bfa4f7568f5501c43ca7fc5 (diff)
downloademacs-7c4bbb6992b443b0ce569d111fc167ad753e912c.tar.gz
emacs-7c4bbb6992b443b0ce569d111fc167ad753e912c.zip
Merge changes made in No Gnus
gnus.texi (Mail Source Specifiers): Add a pop3 via an SSH tunnel example (modified from an example by Michael Albinus). shr.el (shr-remove-trailing-whitespace): Don't strip whitespace from lines that are narrower than the window width. Otherwise background "blocks" will look less readable.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog6
-rw-r--r--lisp/gnus/shr.el21
2 files changed, 17 insertions, 10 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 7c83b9d99de..827ccc730db 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,9 @@
12012-02-07 Lars Ingebrigtsen <larsi@gnus.org>
2
3 * shr.el (shr-remove-trailing-whitespace): Don't strip whitespace from
4 lines that are narrower than the window width. Otherwise background
5 "blocks" will look less readable.
6
12012-02-07 Katsumi Yamaoka <yamaoka@jpl.org> 72012-02-07 Katsumi Yamaoka <yamaoka@jpl.org>
2 8
3 * gnus-sum.el (gnus-summary-show-thread): Revert last two changes. 9 * gnus-sum.el (gnus-summary-show-thread): Revert last two changes.
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index deaef1d3f25..7af8e31f792 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -153,16 +153,17 @@ DOM should be a parse tree as generated by
153 (shr-remove-trailing-whitespace start (point)))) 153 (shr-remove-trailing-whitespace start (point))))
154 154
155(defun shr-remove-trailing-whitespace (start end) 155(defun shr-remove-trailing-whitespace (start end)
156 (save-restriction 156 (let ((width (window-width)))
157 (narrow-to-region start end) 157 (save-restriction
158 (delete-trailing-whitespace) 158 (narrow-to-region start end)
159 (goto-char start) 159 (goto-char start)
160 (while (not (eobp)) 160 (while (not (eobp))
161 (end-of-line) 161 (end-of-line)
162 (dolist (overlay (overlays-at (point))) 162 (when (> (current-column) width)
163 (when (overlay-get overlay 'before-string) 163 (dolist (overlay (overlays-at (point)))
164 (overlay-put overlay 'before-string nil))) 164 (when (overlay-get overlay 'before-string)
165 (forward-line 1)))) 165 (overlay-put overlay 'before-string nil))))
166 (forward-line 1)))))
166 167
167(defun shr-copy-url () 168(defun shr-copy-url ()
168 "Copy the URL under point to the kill ring. 169 "Copy the URL under point to the kill ring.