[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r101064: Make saving and restoring of
From: |
Katsumi Yamaoka |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r101064: Make saving and restoring of hidden threads work with overlays. |
Date: |
Fri, 13 Aug 2010 10:44:22 +0000 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 101064
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Fri 2010-08-13 10:44:22 +0000
message:
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.
modified:
lisp/gnus/ChangeLog
lisp/gnus/gnus-sum.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog 2010-08-13 10:39:16 +0000
+++ b/lisp/gnus/ChangeLog 2010-08-13 10:44:22 +0000
@@ -1,5 +1,16 @@
+2010-07-30 Lawrence Mitchell <address@hidden>
+
+ 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.
+
2010-08-12 Teodor Zlatanov <address@hidden>
+ New gnus-sync.el library for synchronization of marks.
+
* gnus-sync.el: New library for synchronization of marks.
* gnus-util.el (gnus-grep-in-list): Moved from gnus-registry.el and
=== modified file 'lisp/gnus/gnus-sum.el'
--- a/lisp/gnus/gnus-sum.el 2010-07-20 01:19:04 +0000
+++ b/lisp/gnus/gnus-sum.el 2010-08-13 10:44:22 +0000
@@ -3406,8 +3406,10 @@
(save-excursion
(let (config)
(goto-char (point-min))
- (while (search-forward "\r" nil t)
- (push (1- (point)) config))
+ (while (not (eobp))
+ (when (eq (get-char-property (point-at-eol) 'invisible) 'gnus-sum)
+ (push (save-excursion (forward-line 0) (point)) config))
+ (forward-line 1))
config)))
(defun gnus-restore-hidden-threads-configuration (config)
@@ -3415,10 +3417,8 @@
(save-excursion
(let (point (inhibit-read-only t))
(while (setq point (pop config))
- (when (and (< point (point-max))
- (goto-char point)
- (eq (char-after) ?\n))
- (subst-char-in-region point (1+ point) ?\n ?\r))))))
+ (goto-char point)
+ (gnus-summary-hide-thread)))))
;; Various summary mode internalish functions.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r101064: Make saving and restoring of hidden threads work with overlays.,
Katsumi Yamaoka <=