Make first mode-line dash an empty space on graphical terminals (Bug#7295).
authorChong Yidong <cyd@stupidchicken.com>
Sat, 28 May 2011 23:43:11 +0000 (19:43 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 28 May 2011 23:43:11 +0000 (19:43 -0400)
* lisp/bindings.el (help-echo): Make the initial non-indicator dash
empty on graphical terminals.

lisp/ChangeLog
lisp/bindings.el

index f6e5241..ee03aec 100644 (file)
@@ -12,6 +12,9 @@
 
 2011-05-28  Chong Yidong  <cyd@stupidchicken.com>
 
+       * bindings.el (help-echo): Make the initial non-indicator dash
+       empty on graphical terminals (Bug#7295).
+
        * files.el (auto-mode-alist): Move config rule after the
        in-stripping one (Bug#8547).
 
index 63c83ad..ffc7979 100644 (file)
@@ -321,7 +321,9 @@ mouse-3: Remove current window from display")
        (standard-mode-line-format
        (list
         "%e"
-        (propertize "-" 'help-echo help-echo)
+        `(:eval (if (display-graphic-p)
+                    ,(propertize " " 'help-echo help-echo)
+                  ,(propertize "-" 'help-echo help-echo)))
         'mode-line-mule-info
         'mode-line-client
         'mode-line-modified