dot/gnus.el: Use fancy tree drawing if using window-system output.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 9 Nov 2009 14:45:36 +0000 (14:45 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 9 Nov 2009 15:10:53 +0000 (15:10 +0000)
There's no terminal coding system for window systems, because there's
no terminal; but Emacs can still show Unicode characters, so we should
use them.

dot/gnus.el

index d3ca4f6..f7b6560 100644 (file)
@@ -41,7 +41,8 @@
       gnus-sum-thread-tree-false-root ">"
       gnus-sum-thread-tree-single-indent "="
       gnus-sum-thread-tree-indent "  ")
-(if (eq (coding-system-get (terminal-coding-system) 'mime-charset) 'utf-8)
+(if (memq (coding-system-get (terminal-coding-system) 'mime-charset)
+         '(nil utf-8))
     (setq gnus-sum-thread-tree-leaf-with-other "├─>"
          gnus-sum-thread-tree-vertical        "│ "
          gnus-sum-thread-tree-single-leaf     "╰─>")