all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, rswgnu@gmail.com
Cc: 28648@debbugs.gnu.org
Subject: bug#28648: Make mode-line number display consistent when both line and col numbers are shown.
Date: Fri, 29 Sep 2017 20:03:23 -0700 (PDT)	[thread overview]
Message-ID: <3556a36d-899e-4301-aa94-c25adf03c89a@default> (raw)
In-Reply-To: <83efqp5ktg.fsf@gnu.org>

Apologies (again) for not reading the thread.

FYI, my library `modeline-posn.el' modifies the default value of
`mode-line-position' to allow for some features and customizing.

(I'm guessing that whatever changes you're making to the vanilla
value will complicate things for me a bit, but that's life.)

You _might_ want to take a look at `modeline-posn.el', to see
if it or parts of it might help.

It has, for example, option `modelinepos-style', which lets
you show info about the size of the active region in the
mode-line-position part of the mode-line.  You can choose
any of these:

 * "_ ch, _ l" (or "_ rows, _ cols", if a rectangle is selected)

 * "_ chars"

 * "_ bytes"

 * the result of a custom format string and any args it expects

(There are some other features too, such as using a different
face on the region info when the current command is acting on
the active region.  For example, a command such as `query-replace'
acts differently when the region is active - when it is, the
face changes to avert you to this fact.)

The code is here, if you're interested:
https://www.emacswiki.org/emacs/download/modeline-posn.el

A description is here:
https://www.emacswiki.org/emacs/ModeLinePosition





  parent reply	other threads:[~2017-09-30  3:03 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-28 21:56 Make mode-line number display consistent when both line and col numbers are shown Robert Weiner
2017-09-29  7:02 ` Colin Baxter
2017-09-29  8:25   ` Jose Arroyo
2017-09-29  9:22     ` Colin Baxter
2017-09-29 13:26       ` Robert Weiner
2017-09-29 16:23         ` Robert Weiner
2017-09-29 17:35         ` John Wiegley
2017-09-29 18:16           ` Eli Zaretskii
2017-09-29 18:20             ` bug#28648: " Robert Weiner
2017-09-29 18:26             ` Richard Copley
2017-09-29 18:30               ` Kaushal Modi
2017-09-29 18:48                 ` Yuri Khan
2017-09-29 19:17                   ` Robert Weiner
2017-09-29 19:30                     ` Richard Copley
2017-09-29 19:31                   ` Stefan Monnier
2017-09-29 13:14     ` Robert Weiner
2017-09-29 17:06 ` Eli Zaretskii
2017-09-29 17:45   ` bug#28648: " Robert Weiner
2017-09-29 18:20     ` Eli Zaretskii
2017-09-29 18:48       ` Robert Weiner
2017-09-29 21:55         ` Richard Stallman
2017-09-29 17:49   ` John Wiegley
2017-09-29 18:17     ` bug#28648: " Robert Weiner
2017-09-29 19:15       ` Eli Zaretskii
2017-09-29 19:23         ` Robert Weiner
2017-09-29 20:08           ` Eli Zaretskii
2017-09-29 20:15             ` Robert Weiner
2017-09-30  3:03             ` Drew Adams [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-09-29 15:59 Robert Weiner

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3556a36d-899e-4301-aa94-c25adf03c89a@default \
    --to=drew.adams@oracle.com \
    --cc=28648@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=rswgnu@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.