From: Julien Danjou <julien@danjou.info>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Dashes in mode-line
Date: Tue, 19 Oct 2010 16:59:59 +0200 [thread overview]
Message-ID: <87bp6q1b4g.fsf@keller.adm.naquadah.org> (raw)
In-Reply-To: <E1P8BwF-00065F-Ov@fencepost.gnu.org> (Eli Zaretskii's message of "Tue, 19 Oct 2010 09:09:11 -0400")
[-- Attachment #1: Type: text/plain, Size: 188 bytes --]
On Tue, Oct 19 2010, Eli Zaretskii wrote:
> Using window-system is not right here, because the DOS port defines a
> non-nil value, but uses a text terminal.
Fine, new version attached.
[-- Attachment #2: 0001-bindings-remove-dashes-in-mode-line.patch --]
[-- Type: text/x-diff, Size: 3651 bytes --]
From 52ffac3b023140720b76c0e4b20c681c0754e26c Mon Sep 17 00:00:00 2001
From: Julien Danjou <julien@danjou.info>
Date: Mon, 18 Oct 2010 15:33:31 +0200
Subject: [PATCH] bindings: remove dashes in mode-line
Signed-off-by: Julien Danjou <julien@danjou.info>
---
etc/tutorials/TUTORIAL | 12 ++++++------
lisp/ChangeLog | 4 ++++
lisp/bindings.el | 11 ++++++-----
3 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/etc/tutorials/TUTORIAL b/etc/tutorials/TUTORIAL
index 1d80f4e..f566df9 100644
--- a/etc/tutorials/TUTORIAL
+++ b/etc/tutorials/TUTORIAL
@@ -498,12 +498,12 @@ you save, Emacs leaves the original file under a changed name in case
you later decide that your changes were a mistake.
If you look near the bottom of the screen you will see a line that
-begins and ends with dashes, and starts with "--:--- TUTORIAL" or
-something like that. This part of the screen normally shows the name
-of the file that you are visiting. Right now, you are visiting a file
-called "TUTORIAL" which is your personal scratch copy of the Emacs
-tutorial. When you find a file with Emacs, that file's name will
-appear in that precise spot.
+begins with dashes, and starts with "--:--- TUTORIAL" or something
+like that. This part of the screen normally shows the name of the
+file that you are visiting. Right now, you are visiting a file called
+"TUTORIAL" which is your personal scratch copy of the Emacs tutorial.
+When you find a file with Emacs, that file's name will appear in that
+precise spot.
One special thing about the command for finding a file is that you
have to say what file name you want. We say the command "reads an
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0e20ffd..2316a22 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
+2010-10-18 Julien Danjou <julien@danjou.info>
+
+ * bindings.el: Replaces dashes by spaces in default `mode-line-format'.
+
2010-10-17 Agustín Martín <agustin.martin@hispalinux.es>
* textmodes/ispell.el (ispell-aspell-find-dictionary): Fix
diff --git a/lisp/bindings.el b/lisp/bindings.el
index d19db2c..753e8a5 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -318,7 +318,7 @@ Keymap to display on column and line numbers.")
mouse-2: Make current window occupy the whole frame\n\
mouse-3: Remove current window from display")
(recursive-edit-help-echo "Recursive edit, type C-M-c to get out")
- (dashes (propertize "--" 'help-echo help-echo))
+ (spaces (propertize " " 'help-echo help-echo))
(standard-mode-line-format
(list
"%e"
@@ -334,9 +334,10 @@ mouse-3: Remove current window from display")
'(vc-mode vc-mode)
(propertize " " 'help-echo help-echo)
'mode-line-modes
- `(which-func-mode ("" which-func-format ,dashes))
- `(global-mode-string ("" global-mode-string ,dashes))
- (propertize "-%-" 'help-echo help-echo)))
+ `(which-func-mode ("" which-func-format ,spaces))
+ `(global-mode-string ("" global-mode-string ,spaces))
+ `(:eval (when (or (not window-system) (eq window-system 'pc))
+ ,(propertize "-%-" 'help-echo help-echo)))))
(standard-mode-line-modes
(list
(propertize "%[" 'help-echo recursive-edit-help-echo)
@@ -362,7 +363,7 @@ mouse-3: Toggle minor modes"
'mouse-2 #'mode-line-widen))
(propertize ")" 'help-echo help-echo)
(propertize "%]" 'help-echo recursive-edit-help-echo)
- (propertize "--" 'help-echo help-echo)))
+ spaces))
(standard-mode-line-position
`((-3 ,(propertize
--
1.7.2.3
[-- Attachment #3: Type: text/plain, Size: 81 bytes --]
--
Julien Danjou
// ᐰ <julien@danjou.info> http://julien.danjou.info
next prev parent reply other threads:[~2010-10-19 14:59 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-18 13:36 Dashes in mode-line Julien Danjou
2010-10-18 14:52 ` Eli Zaretskii
2010-10-19 10:32 ` Julien Danjou
2010-10-19 13:09 ` Eli Zaretskii
2010-10-19 14:59 ` Julien Danjou [this message]
2010-10-19 19:21 ` Chong Yidong
2010-10-19 15:51 ` Jason Rumney
2010-10-19 18:30 ` Eli Zaretskii
2010-10-20 13:05 ` Misleading `window-system' docstring (was Re: Dashes in mode-line) Štěpán Němec
2010-10-20 18:20 ` Misleading `window-system' docstring Eli Zaretskii
2010-10-20 18:32 ` Chong Yidong
2010-10-21 0:58 ` Stefan Monnier
2010-10-22 10:38 ` Eli Zaretskii
2010-10-19 12:29 ` Dashes in mode-line Deniz Dogan
2010-10-19 13:08 ` Eli Zaretskii
2010-10-19 13:49 ` Deniz Dogan
2010-10-19 14:31 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bp6q1b4g.fsf@keller.adm.naquadah.org \
--to=julien@danjou.info \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).