diff options
| author | Katsumi Yamaoka | 2010-08-13 10:44:22 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-08-13 10:44:22 +0000 |
| commit | 62a83cc83da6cd4bcba5fd24597b2c279b9e9dbb (patch) | |
| tree | 94d8d21bff9d78d63feabfa723d442bb74a56428 | |
| parent | 771549612082c4b6a154850287ef7bafe5b563c8 (diff) | |
| download | emacs-62a83cc83da6cd4bcba5fd24597b2c279b9e9dbb.tar.gz emacs-62a83cc83da6cd4bcba5fd24597b2c279b9e9dbb.zip | |
Make saving and restoring of hidden threads work with overlays.
Patch applied by Ted Zlatanov.
* gnus-sum.el (gnus-hidden-threads-configuration)
(gnus-restore-hidden-threads-configuration): Update to deal with text
properties, rather than searching for a magic character.
| -rw-r--r-- | lisp/gnus/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/gnus/gnus-sum.el | 12 |
2 files changed, 17 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 1c8b9173480..ead4a7fe7e8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,16 @@ | |||
| 1 | 2010-07-30 Lawrence Mitchell <wence@gmx.li> | ||
| 2 | |||
| 3 | Make saving and restoring of hidden threads work with overlays. | ||
| 4 | Patch applied by Ted Zlatanov. | ||
| 5 | |||
| 6 | * gnus-sum.el (gnus-hidden-threads-configuration) | ||
| 7 | (gnus-restore-hidden-threads-configuration): Update to deal with text | ||
| 8 | properties, rather than searching for a magic character. | ||
| 9 | |||
| 1 | 2010-08-12 Teodor Zlatanov <tzz@lifelogs.com> | 10 | 2010-08-12 Teodor Zlatanov <tzz@lifelogs.com> |
| 2 | 11 | ||
| 12 | New gnus-sync.el library for synchronization of marks. | ||
| 13 | |||
| 3 | * gnus-sync.el: New library for synchronization of marks. | 14 | * gnus-sync.el: New library for synchronization of marks. |
| 4 | 15 | ||
| 5 | * gnus-util.el (gnus-grep-in-list): Moved from gnus-registry.el and | 16 | * gnus-util.el (gnus-grep-in-list): Moved from gnus-registry.el and |
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el index 93024e07280..53a247078c5 100644 --- a/lisp/gnus/gnus-sum.el +++ b/lisp/gnus/gnus-sum.el | |||
| @@ -3406,8 +3406,10 @@ marks of articles." | |||
| 3406 | (save-excursion | 3406 | (save-excursion |
| 3407 | (let (config) | 3407 | (let (config) |
| 3408 | (goto-char (point-min)) | 3408 | (goto-char (point-min)) |
| 3409 | (while (search-forward "\r" nil t) | 3409 | (while (not (eobp)) |
| 3410 | (push (1- (point)) config)) | 3410 | (when (eq (get-char-property (point-at-eol) 'invisible) 'gnus-sum) |
| 3411 | (push (save-excursion (forward-line 0) (point)) config)) | ||
| 3412 | (forward-line 1)) | ||
| 3411 | config))) | 3413 | config))) |
| 3412 | 3414 | ||
| 3413 | (defun gnus-restore-hidden-threads-configuration (config) | 3415 | (defun gnus-restore-hidden-threads-configuration (config) |
| @@ -3415,10 +3417,8 @@ marks of articles." | |||
| 3415 | (save-excursion | 3417 | (save-excursion |
| 3416 | (let (point (inhibit-read-only t)) | 3418 | (let (point (inhibit-read-only t)) |
| 3417 | (while (setq point (pop config)) | 3419 | (while (setq point (pop config)) |
| 3418 | (when (and (< point (point-max)) | 3420 | (goto-char point) |
| 3419 | (goto-char point) | 3421 | (gnus-summary-hide-thread))))) |
| 3420 | (eq (char-after) ?\n)) | ||
| 3421 | (subst-char-in-region point (1+ point) ?\n ?\r)))))) | ||
| 3422 | 3422 | ||
| 3423 | ;; Various summary mode internalish functions. | 3423 | ;; Various summary mode internalish functions. |
| 3424 | 3424 | ||