diff options
| author | Lars Ingebrigtsen | 2012-02-07 22:17:11 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-02-07 22:17:11 +0000 |
| commit | 7c4bbb6992b443b0ce569d111fc167ad753e912c (patch) | |
| tree | 4041ace40581d71bea3c2c63ac6f2927403a7462 | |
| parent | 5e0d957fe021bc921bfa4f7568f5501c43ca7fc5 (diff) | |
| download | emacs-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.
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/gnus.texi | 12 | ||||
| -rw-r--r-- | lisp/gnus/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/gnus/shr.el | 21 |
4 files changed, 34 insertions, 10 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index 6bb1e065d37..3458a8865fb 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-02-07 Lars Ingebrigtsen <larsi@gnus.org> | ||
| 2 | |||
| 3 | * gnus.texi (Mail Source Specifiers): Add a pop3 via an SSH tunnel | ||
| 4 | example (modified from an example by Michael Albinus). | ||
| 5 | |||
| 1 | 2012-01-30 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change) | 6 | 2012-01-30 Philipp Haselwarter <philipp.haselwarter@gmx.de> (tiny change) |
| 2 | 7 | ||
| 3 | * gnus.texi (Agent Basics): Fix outdated description of | 8 | * gnus.texi (Agent Basics): Fix outdated description of |
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index 1883975b7f6..865888a28e4 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -14751,6 +14751,18 @@ corresponding keywords. | |||
| 14751 | A script to be run before fetching the mail. The syntax is the same as | 14751 | A script to be run before fetching the mail. The syntax is the same as |
| 14752 | the @code{:program} keyword. This can also be a function to be run. | 14752 | the @code{:program} keyword. This can also be a function to be run. |
| 14753 | 14753 | ||
| 14754 | One popular way to use this is to set up an SSH tunnel to access the | ||
| 14755 | @acronym{POP} server. Here's an example: | ||
| 14756 | |||
| 14757 | @lisp | ||
| 14758 | (pop :server "127.0.0.1" | ||
| 14759 | :port 1234 | ||
| 14760 | :user "foo" | ||
| 14761 | :password "secret" | ||
| 14762 | :prescript | ||
| 14763 | "nohup ssh -f -L 1234:pop.server:110 remote.host sleep 3600 &") | ||
| 14764 | @end lisp | ||
| 14765 | |||
| 14754 | @item :postscript | 14766 | @item :postscript |
| 14755 | A script to be run after fetching the mail. The syntax is the same as | 14767 | A script to be run after fetching the mail. The syntax is the same as |
| 14756 | the @code{:program} keyword. This can also be a function to be run. | 14768 | the @code{:program} keyword. This can also be a function to be run. |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-02-07 Katsumi Yamaoka <yamaoka@jpl.org> | 7 | 2012-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. |