unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Moving mode-line-position before global-mode-string in mode-line-format.
@ 2002-07-25 16:21 Alfred M. Szmidt
  2002-07-25 18:58 ` Robert J. Chassell
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Alfred M. Szmidt @ 2002-07-25 16:21 UTC (permalink / raw)


Hi,

What do people think about moving mode-line-position before
global-mode-string in mode-line-format?

global-mode-string can become quite long if there are several modes
running, and this makes the nice and very useful mode-line-position
scroll of to the far right (where it becomes invisible, and useless).

Example, from this:
  -=:**  *mail*            (Message MML Fly Abbrev)--L35--Top------------------
To this:
  -=:**  *mail*          L35--Top--(Message MML Fly Abbrev)--------------------
Or something along those lines...

Cheers,
-- 
Alfred M. Szmidt

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-25 16:21 Moving mode-line-position before global-mode-string in mode-line-format Alfred M. Szmidt
@ 2002-07-25 18:58 ` Robert J. Chassell
  2002-07-25 19:09 ` Miles Bader
  2002-07-26 15:36 ` Richard Stallman
  2 siblings, 0 replies; 10+ messages in thread
From: Robert J. Chassell @ 2002-07-25 18:58 UTC (permalink / raw)
  Cc: emacs-devel

   What do people think about moving mode-line-position before
   global-mode-string in mode-line-format?

Yes, I have done this for some years and like it.  It is a big
improvement.  My current mode line looks like this:


    --:**  *mail*      /home/bob    Line 15  (Mail MC-w Abbrev Fill)  All


(Although it does not particularly matter in a *mail* buffer, I always
include the default-directory in my mode line; otherwise, I get lost
among buffers that are visiting files.  Right now I have 68 buffers,
of which of which 52 are visiting files.  I spell out the word `Line'
because of a personal dislike for the plain `L', even though the plain
`L' does save screen space.)

-- 
    Robert J. Chassell                  bob@rattlesnake.com
    Rattlesnake Enterprises             http://www.rattlesnake.com

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-25 16:21 Moving mode-line-position before global-mode-string in mode-line-format Alfred M. Szmidt
  2002-07-25 18:58 ` Robert J. Chassell
@ 2002-07-25 19:09 ` Miles Bader
  2002-07-26  4:40   ` Karl Eichwalder
  2002-07-26 15:36 ` Richard Stallman
  2 siblings, 1 reply; 10+ messages in thread
From: Miles Bader @ 2002-07-25 19:09 UTC (permalink / raw)
  Cc: emacs-devel

On Thu, Jul 25, 2002 at 06:21:05PM +0200, Alfred M. Szmidt wrote:
> What do people think about moving mode-line-position before
> global-mode-string in mode-line-format?

No.

I find the mode information far more important than the line number (the
latter is very rarely useful).

-Miles
-- 
P.S.  All information contained in the above letter is false,
      for reasons of military security.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-25 19:09 ` Miles Bader
@ 2002-07-26  4:40   ` Karl Eichwalder
  2002-07-26 17:19     ` Alfred M. Szmidt
  2002-07-26 19:12     ` Simon Josefsson
  0 siblings, 2 replies; 10+ messages in thread
From: Karl Eichwalder @ 2002-07-26  4:40 UTC (permalink / raw)
  Cc: Alfred M. Szmidt, emacs-devel

Miles Bader <miles@gnu.org> writes:

> No.

Yes, I lke Alfred's proposal.

> I find the mode information far more important than the line number
> (the latter is very rarely useful).

Why?  Line number and percentage info is often important to me.  The
mode info I simply take for granted.

CVS version info does not belong into the mode info parenthesis.  Move
the CVS version info in front of the "L".

-- 
ke@suse.de (work) / keichwa@gmx.net (home):              |
http://www.suse.de/~ke/                                  |      ,__o
Free Translation Project:                                |    _-\_<,
http://www.iro.umontreal.ca/contrib/po/HTML/             |   (*)/'(*)

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-25 16:21 Moving mode-line-position before global-mode-string in mode-line-format Alfred M. Szmidt
  2002-07-25 18:58 ` Robert J. Chassell
  2002-07-25 19:09 ` Miles Bader
@ 2002-07-26 15:36 ` Richard Stallman
  2002-07-26 15:59   ` Alfred M. Szmidt
  2 siblings, 1 reply; 10+ messages in thread
From: Richard Stallman @ 2002-07-26 15:36 UTC (permalink / raw)
  Cc: emacs-devel

    global-mode-string can become quite long if there are several modes
    running, and this makes the nice and very useful mode-line-position
    scroll of to the far right (where it becomes invisible, and useless).

This might be a good idea.  I think it would call for some other small
redesign so as to make it look good.  Does anyone want to give it a
try?

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-26 15:36 ` Richard Stallman
@ 2002-07-26 15:59   ` Alfred M. Szmidt
  2002-07-27 18:53     ` Richard Stallman
  0 siblings, 1 reply; 10+ messages in thread
From: Alfred M. Szmidt @ 2002-07-26 15:59 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman <rms@gnu.org> writes:
>     global-mode-string can become quite long if there are several modes
>     running, and this makes the nice and very useful mode-line-position
>     scroll of to the far right (where it becomes invisible, and useless).
> 
> This might be a good idea.  I think it would call for some other small
> redesign so as to make it look good.  Does anyone want to give it a
> try?

What about something like this?  I think that it looks quite good.
Are there any other files that need to be modified?

It looks something like this:
--:%*  *vc-diff*     L0 Bot    (Diff from bindings.el)------------------------

--- bindings.el.~1.104.~	2002-07-23 19:51:15.000000000 +0200
+++ bindings.el	2002-07-26 17:53:25.000000000 +0200
@@ -248,10 +248,10 @@
      'mode-line-frame-identification
      'mode-line-buffer-identification
      (propertize "   " 'help-echo help-echo)
+     'mode-line-position
      'global-mode-string
      'mode-line-modes
      `(which-func-mode ("" which-func-format ,dashes))
-     'mode-line-position
      (propertize "-%-" 'help-echo help-echo)))
 
   (setq-default mode-line-modes
@@ -266,8 +266,8 @@
      (propertize ")%]--" 'help-echo help-echo)))
 
   (setq-default mode-line-position
-    `((line-number-mode (,(propertize "L%l" 'help-echo help-echo) ,dashes))
-      (column-number-mode (,(propertize "C%c" 'help-echo help-echo) ,dashes))
+    `((line-number-mode (,(propertize "L%l" 'help-echo help-echo) " "))
+      (column-number-mode (,(propertize "C%c" 'help-echo help-echo) " "))
       (-3 . ,(propertize "%p" 'help-echo help-echo)))))
 
 (defvar mode-line-buffer-identification-keymap nil "\


-- 
Alfred M. Szmidt

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-26  4:40   ` Karl Eichwalder
@ 2002-07-26 17:19     ` Alfred M. Szmidt
  2002-07-27 18:53       ` Richard Stallman
  2002-07-26 19:12     ` Simon Josefsson
  1 sibling, 1 reply; 10+ messages in thread
From: Alfred M. Szmidt @ 2002-07-26 17:19 UTC (permalink / raw)
  Cc: Miles Bader, emacs-devel

Karl Eichwalder <keichwa@gmx.net> writes:
> CVS version info does not belong into the mode info parenthesis.  Move
> the CVS version info in front of the "L".

Why not just before the major mode?  Like this: ... (CVS:1.04 Emacs-Lisp)
That way it won't scroll of to the far right of the universe. :)

Cheers,
-- 
Alfred M. Szmidt

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-26  4:40   ` Karl Eichwalder
  2002-07-26 17:19     ` Alfred M. Szmidt
@ 2002-07-26 19:12     ` Simon Josefsson
  1 sibling, 0 replies; 10+ messages in thread
From: Simon Josefsson @ 2002-07-26 19:12 UTC (permalink / raw)
  Cc: Miles Bader, Alfred M. Szmidt, emacs-devel

Karl Eichwalder <keichwa@gmx.net> writes:

>> I find the mode information far more important than the line number
>> (the latter is very rarely useful).
>
> Why?  Line number and percentage info is often important to me.  The
> mode info I simply take for granted.

Same here, the mode follows from what I'm doing in the buffer, and the
filename.  I rarely even look at the CVS minor mode indicator, I know
that I'm editing files under VC, and if I need to look at the revision
info, I usually need C-x v l or something similar anyway.

On a side note, the mode line indicators when using Gnus is utterly
useless, I know I'm using Gnus by looking at the buffer.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-26 17:19     ` Alfred M. Szmidt
@ 2002-07-27 18:53       ` Richard Stallman
  0 siblings, 0 replies; 10+ messages in thread
From: Richard Stallman @ 2002-07-27 18:53 UTC (permalink / raw)
  Cc: keichwa, miles, emacs-devel

    > CVS version info does not belong into the mode info parenthesis.  Move
    > the CVS version info in front of the "L".

    Why not just before the major mode?  Like this: ... (CVS:1.04 Emacs-Lisp)
    That way it won't scroll of to the far right of the universe. :)

This would mean putting VC info into the mode line in a special place,
rather than treating it as a minor mode.  I'm not against it.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Moving mode-line-position before global-mode-string in mode-line-format.
  2002-07-26 15:59   ` Alfred M. Szmidt
@ 2002-07-27 18:53     ` Richard Stallman
  0 siblings, 0 replies; 10+ messages in thread
From: Richard Stallman @ 2002-07-27 18:53 UTC (permalink / raw)
  Cc: emacs-devel

Thanks for the patch.  I will try it out and maybe install it.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2002-07-27 18:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-25 16:21 Moving mode-line-position before global-mode-string in mode-line-format Alfred M. Szmidt
2002-07-25 18:58 ` Robert J. Chassell
2002-07-25 19:09 ` Miles Bader
2002-07-26  4:40   ` Karl Eichwalder
2002-07-26 17:19     ` Alfred M. Szmidt
2002-07-27 18:53       ` Richard Stallman
2002-07-26 19:12     ` Simon Josefsson
2002-07-26 15:36 ` Richard Stallman
2002-07-26 15:59   ` Alfred M. Szmidt
2002-07-27 18:53     ` Richard Stallman

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).