dot/gnus.el: Add dummy root for loose threads.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 3 May 2018 12:32:06 +0000 (13:32 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 3 May 2018 12:51:53 +0000 (13:51 +0100)
Gnus has a long-standing bug with `%B'-ish tree views and loose threads:
subsequent article trees are attached to the last article in the
previous tree, rather than to the original root, resulting in the tree
display marching off the right-hand side of the screen.

This doesn't seem to happen with the `dummy' strategy, which introduces
somewhat ugly false root nodes, but is otherwise fine.

dot/gnus.el

index 2aa71d3..6c6f4c5 100644 (file)
@@ -36,7 +36,9 @@
 
 ;; Display a slrn-like tree view in the summary window.
 (setq gnus-use-trees nil)
-(setq gnus-summary-line-format "%U%R%z%4L %(%[%-16,16f%]%): %B %s\n")
+(setq gnus-summary-make-false-root 'dummy)
+(setq gnus-summary-line-format "%U%R%z%4L %(%[%-16,16f%]%): %B %s\n"
+      gnus-summary-dummy-line-format "        %(%[----------------%]%): * %S\n")
 (setq gnus-sum-thread-tree-root ">"
       gnus-sum-thread-tree-false-root ">"
       gnus-sum-thread-tree-single-indent "="