* `size-indication-mode' tweak
@ 2006-09-14 17:09 Drew Adams
2006-09-15 3:14 ` Richard Stallman
2006-09-17 19:27 ` Juri Linkov
0 siblings, 2 replies; 3+ messages in thread
From: Drew Adams @ 2006-09-14 17:09 UTC (permalink / raw)
After the release:
How about considering this minor tweak to `size-indication-mode'?
The doc string would also need to be updated accordingly.
The idea is this: Whenever the region is active in transient-mark mode, the
size indication shows the size of the region, not the size of the buffer.
The implementation change is trivial - just use this for the
`size-indication-mode' part of `mode-line-position':
(size-indication-mode
(8 ,(propertize
(if (and transient-mark-mode mark-active)
(format " %d chars" (abs (- (mark t) (point))))
" of %I")
'face (and transient-mark-mode mark-active 'region)
'help-echo help-echo)))
where help-echo is bound as usual.
FYI - This library does that, as well as highlighting the column number when
the current column is greater than a given limit (option):
(http://www.emacswiki.org/cgi-bin/wiki/modeline-posn.el)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `size-indication-mode' tweak
2006-09-14 17:09 `size-indication-mode' tweak Drew Adams
@ 2006-09-15 3:14 ` Richard Stallman
2006-09-17 19:27 ` Juri Linkov
1 sibling, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2006-09-15 3:14 UTC (permalink / raw)
Cc: emacs-devel
The idea is this: Whenever the region is active in transient-mark mode, the
size indication shows the size of the region, not the size of the buffer.
It might be a good idea, but let's not think about it now.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: `size-indication-mode' tweak
2006-09-14 17:09 `size-indication-mode' tweak Drew Adams
2006-09-15 3:14 ` Richard Stallman
@ 2006-09-17 19:27 ` Juri Linkov
1 sibling, 0 replies; 3+ messages in thread
From: Juri Linkov @ 2006-09-17 19:27 UTC (permalink / raw)
Cc: emacs-devel
> After the release:
>
> How about considering this minor tweak to `size-indication-mode'?
> The doc string would also need to be updated accordingly.
>
> The idea is this: Whenever the region is active in transient-mark mode, the
> size indication shows the size of the region, not the size of the buffer.
BTW, sometimes I need to see the number of bytes in the region
in addition to the number of characters after typing M-=
`count-lines-region'. This way I can see how many bytes this region
will occupy when saved on disk.
The same information could be displayed in the mode line using some new
customization for `size-indication-mode' after the release.
--
Juri Linkov
http://www.jurta.org/emacs/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-17 19:27 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-14 17:09 `size-indication-mode' tweak Drew Adams
2006-09-15 3:14 ` Richard Stallman
2006-09-17 19:27 ` Juri Linkov
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.