unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
@ 2021-10-09  7:58 Eli Zaretskii
  2021-10-09  8:06 ` Stefan Kangas
  2021-10-10  0:09 ` [External] : " Drew Adams
  0 siblings, 2 replies; 16+ messages in thread
From: Eli Zaretskii @ 2021-10-09  7:58 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: emacs-devel

Stefan,

This change is incorrect: the "All/Top/Bot/NN%" part is NOT "buffer
position".  If you have a suggestion for better description than "Size
indication mode", please tell; otherwise, let's leave the original
description intact.



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  7:58 emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip Eli Zaretskii
@ 2021-10-09  8:06 ` Stefan Kangas
  2021-10-09  8:28   ` Stefan Kangas
  2021-10-10  0:09 ` [External] : " Drew Adams
  1 sibling, 1 reply; 16+ messages in thread
From: Stefan Kangas @ 2021-10-09  8:06 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Emacs developers

Eli Zaretskii <eliz@gnu.org> writes:

> This change is incorrect: the "All/Top/Bot/NN%" part is NOT "buffer
> position".  If you have a suggestion for better description than "Size
> indication mode", please tell; otherwise, let's leave the original
> description intact.

The original was even more incorrect, as it had nothing to do with
"Size indication mode".  Let me think about an alternative.



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  8:06 ` Stefan Kangas
@ 2021-10-09  8:28   ` Stefan Kangas
  2021-10-09  8:34     ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Stefan Kangas @ 2021-10-09  8:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Emacs developers

Stefan Kangas <stefan@marxist.se> writes:

> Eli Zaretskii <eliz@gnu.org> writes:
>
> > This change is incorrect: the "All/Top/Bot/NN%" part is NOT "buffer
> > position".  If you have a suggestion for better description than "Size
> > indication mode", please tell; otherwise, let's leave the original
> > description intact.
>
> The original was even more incorrect, as it had nothing to do with
> "Size indication mode".  Let me think about an alternative.

The info node "(emacs) Mode Line" says "POS tells you whether there is
additional text above the top of the window, or below the bottom."
The info node "(emacs) Optional Mode Line" says "The buffer percentage
POS indicates the percentage of the buffer above the top of the
window."

In the doc string for mode-line-format we have:

  %p -- print percent of buffer above top of window, or Top, Bot or All.
  %P -- print percent of buffer above bottom of window, perhaps plus Top,
        or print Bottom or All.

I could not find any other documentation of this feature.  Did I miss something?

I guess "Percent of buffer above top of window, or Top, Bot or All" is
pretty hopeless as far as a user-facing description goes.  In
particular, it doesn't say what any of it means.

Based on the documentation I could find, I can only suggest "Buffer
Percentage Position" or, if you prefer, "Buffer Percentage POS", the
latter of which exactly matches the description of this in the info
node "(emacs) Optional Mode Line".  But I'm not sure that this is
better than "Buffer Position".



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  8:28   ` Stefan Kangas
@ 2021-10-09  8:34     ` Eli Zaretskii
  2021-10-09  8:52       ` Andreas Schwab
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2021-10-09  8:34 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: emacs-devel

> From: Stefan Kangas <stefan@marxist.se>
> Date: Sat, 9 Oct 2021 10:28:01 +0200
> Cc: Emacs developers <emacs-devel@gnu.org>
> 
> In the doc string for mode-line-format we have:
> 
>   %p -- print percent of buffer above top of window, or Top, Bot or All.
>   %P -- print percent of buffer above bottom of window, perhaps plus Top,
>         or print Bottom or All.
> 
> I could not find any other documentation of this feature.  Did I miss something?
> 
> I guess "Percent of buffer above top of window, or Top, Bot or All" is
> pretty hopeless as far as a user-facing description goes.  In
> particular, it doesn't say what any of it means.
> 
> Based on the documentation I could find, I can only suggest "Buffer
> Percentage Position" or, if you prefer, "Buffer Percentage POS", the
> latter of which exactly matches the description of this in the info
> node "(emacs) Optional Mode Line".  But I'm not sure that this is
> better than "Buffer Position".

How about "Buffer text percentage"?



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  8:34     ` Eli Zaretskii
@ 2021-10-09  8:52       ` Andreas Schwab
  2021-10-09  9:30         ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Andreas Schwab @ 2021-10-09  8:52 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Stefan Kangas, emacs-devel

How about "Viewport Position"?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  8:52       ` Andreas Schwab
@ 2021-10-09  9:30         ` Eli Zaretskii
  2021-10-09  9:54           ` Omar Polo
  2021-10-09 11:33           ` Andreas Schwab
  0 siblings, 2 replies; 16+ messages in thread
From: Eli Zaretskii @ 2021-10-09  9:30 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: stefan, emacs-devel

> From: Andreas Schwab <schwab@linux-m68k.org>
> Cc: Stefan Kangas <stefan@marxist.se>,  emacs-devel@gnu.org
> Date: Sat, 09 Oct 2021 10:52:22 +0200
> 
> How about "Viewport Position"?

I think we should include "percentage" there, since more often than
not this is what we display.  "Position" alone is generally a simple
number, not expressed in percents.



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  9:30         ` Eli Zaretskii
@ 2021-10-09  9:54           ` Omar Polo
  2021-10-13  3:33             ` Stefan Kangas
  2021-10-09 11:33           ` Andreas Schwab
  1 sibling, 1 reply; 16+ messages in thread
From: Omar Polo @ 2021-10-09  9:54 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: stefan, Andreas Schwab, emacs-devel


Eli Zaretskii <eliz@gnu.org> writes:

>> From: Andreas Schwab <schwab@linux-m68k.org>
>> Cc: Stefan Kangas <stefan@marxist.se>,  emacs-devel@gnu.org
>> Date: Sat, 09 Oct 2021 10:52:22 +0200
>> 
>> How about "Viewport Position"?
>
> I think we should include "percentage" there, since more often than
> not this is what we display.  "Position" alone is generally a simple
> number, not expressed in percents.

just wondering, "scroll percentage" or "scroll position" was considered?

It seems simpler and more intuitive than the "whether there is
additional text above the top of the window, or below the bottom" and
"percentage of the buffer above the top of the window" formula used in
the manual.



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  9:30         ` Eli Zaretskii
  2021-10-09  9:54           ` Omar Polo
@ 2021-10-09 11:33           ` Andreas Schwab
  1 sibling, 0 replies; 16+ messages in thread
From: Andreas Schwab @ 2021-10-09 11:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: stefan, emacs-devel

On Okt 09 2021, Eli Zaretskii wrote:

>> From: Andreas Schwab <schwab@linux-m68k.org>
>> Cc: Stefan Kangas <stefan@marxist.se>,  emacs-devel@gnu.org
>> Date: Sat, 09 Oct 2021 10:52:22 +0200
>> 
>> How about "Viewport Position"?
>
> I think we should include "percentage" there, since more often than
> not this is what we display.  "Position" alone is generally a simple
> number, not expressed in percents.

The position ends in %, so it is clear that it is a percentage.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."



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

* RE: [External] : Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  7:58 emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip Eli Zaretskii
  2021-10-09  8:06 ` Stefan Kangas
@ 2021-10-10  0:09 ` Drew Adams
  1 sibling, 0 replies; 16+ messages in thread
From: Drew Adams @ 2021-10-10  0:09 UTC (permalink / raw)
  To: Eli Zaretskii, Stefan Kangas; +Cc: emacs-devel@gnu.org

> This change is incorrect: the "All/Top/Bot/NN%" part is NOT "buffer
> position".  If you have a suggestion for better description than "Size
> indication mode", please tell; otherwise, let's leave the original
> description intact.

IMO: 

It should be "size", and it should not say more than that.
In particular, we should not mention "percentage".

It's about showing something about the size of buffer
text.  (We already dynamically adjust the size to
reflect a buffer restriction.)
___

FWIW, in my library `modeline-posn.el', I've extended
this to optionally provide different size indications.

You can optionally show the size of the active region.
In addition to the # of lines & columns, you can
optionally show the # of words & chars in the region.

If the region is a rectangle, in addition to the # of
rows & columns you can optionally show the # of words
& chars.  (And in this case the count includes only
words that are entirely inside the rectangle.)

All of this is about "size".  (The library enhances
variable`mode-line-position', so "position" is in the
name, but it and that variable are more correctly
about size.)

https://www.emacswiki.org/emacs/ModeLinePosition



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-09  9:54           ` Omar Polo
@ 2021-10-13  3:33             ` Stefan Kangas
  2021-10-13 12:32               ` Eli Zaretskii
  0 siblings, 1 reply; 16+ messages in thread
From: Stefan Kangas @ 2021-10-13  3:33 UTC (permalink / raw)
  To: Omar Polo, Eli Zaretskii; +Cc: Andreas Schwab, emacs-devel

So far, we have these suggestions:

    "Buffer Percentage Position"
    "Buffer Percentage POS"
    "Buffer text percentage"
    "Viewport Position"
    "Scroll percentage"
    "Scroll position"

Regarding position/percentage, Eli said that it could be good to include
as this is more common, but Andreas points out that it should be clear
already since it ends in %.  So it's not really clear that one argument
is obviously better than the other; on the one hand the risk is not very
high for misunderstandings, on the other we don't need to go out of our
way to avoid repetitions too much in tooltips (we already repeat
ourselves a lot in them).

Having thought about the various alternatives for a bit, my suggestion
is this:

    "Window Scroll Position"

It seems to capture that this is more about the window ("viewport" is
accurate but not a term we normally use) than about the buffer itself.
Buffer position seems to suggest that this has to do with the position
of point, which we already have the column/line number display for.

It will also avoid the problem that someone sees "Top" or "Bot", but the
tooltip incorrectly says that it is a "Percentage".

Does this sound like an acceptable conclusion to this discussion?



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-13  3:33             ` Stefan Kangas
@ 2021-10-13 12:32               ` Eli Zaretskii
  2021-10-13 12:56                 ` Stefan Kangas
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2021-10-13 12:32 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: schwab, op, emacs-devel

> From: Stefan Kangas <stefan@marxist.se>
> Date: Tue, 12 Oct 2021 20:33:43 -0700
> Cc: Andreas Schwab <schwab@linux-m68k.org>, emacs-devel@gnu.org
> 
> Having thought about the various alternatives for a bit, my suggestion
> is this:
> 
>     "Window Scroll Position"
> 
> It seems to capture that this is more about the window ("viewport" is
> accurate but not a term we normally use) than about the buffer itself.
> Buffer position seems to suggest that this has to do with the position
> of point, which we already have the column/line number display for.
> 
> It will also avoid the problem that someone sees "Top" or "Bot", but the
> tooltip incorrectly says that it is a "Percentage".
> 
> Does this sound like an acceptable conclusion to this discussion?

No, because "position" in Emacs is too tightly coupled with a simple
number that is a buffer position.  Just look at our usage of that term
in the documentation.



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-13 12:32               ` Eli Zaretskii
@ 2021-10-13 12:56                 ` Stefan Kangas
  2021-10-13 12:58                   ` Stefan Kangas
  2021-10-13 13:30                   ` Eli Zaretskii
  0 siblings, 2 replies; 16+ messages in thread
From: Stefan Kangas @ 2021-10-13 12:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Andreas Schwab, Omar Polo, Emacs developers

Eli Zaretskii <eliz@gnu.org> writes:

> No, because "position" in Emacs is too tightly coupled with a simple
> number that is a buffer position.  Just look at our usage of that term
> in the documentation.

So which of the proposed alternatives, or variation thereof, do you
prefer instead?



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-13 12:56                 ` Stefan Kangas
@ 2021-10-13 12:58                   ` Stefan Kangas
  2021-10-13 13:31                     ` Eli Zaretskii
  2021-10-13 13:30                   ` Eli Zaretskii
  1 sibling, 1 reply; 16+ messages in thread
From: Stefan Kangas @ 2021-10-13 12:58 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: Andreas Schwab, Omar Polo, Emacs developers

Stefan Kangas <stefan@marxist.se> writes:

> So which of the proposed alternatives, or variation thereof, do you
> prefer instead?

Is "Window Scroll Percentage" acceptable?



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-13 12:56                 ` Stefan Kangas
  2021-10-13 12:58                   ` Stefan Kangas
@ 2021-10-13 13:30                   ` Eli Zaretskii
  1 sibling, 0 replies; 16+ messages in thread
From: Eli Zaretskii @ 2021-10-13 13:30 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: schwab, op, emacs-devel

> From: Stefan Kangas <stefan@marxist.se>
> Date: Wed, 13 Oct 2021 14:56:13 +0200
> Cc: Omar Polo <op@omarpolo.com>, Andreas Schwab <schwab@linux-m68k.org>, 
> 	Emacs developers <emacs-devel@gnu.org>
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > No, because "position" in Emacs is too tightly coupled with a simple
> > number that is a buffer position.  Just look at our usage of that term
> > in the documentation.
> 
> So which of the proposed alternatives, or variation thereof, do you
> prefer instead?

The first one" Buffer Percentage Position".  "Viewport Percentage
Position" is also fine, although it wasn't really in your list.




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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-13 12:58                   ` Stefan Kangas
@ 2021-10-13 13:31                     ` Eli Zaretskii
  2021-10-13 22:28                       ` Stefan Kangas
  0 siblings, 1 reply; 16+ messages in thread
From: Eli Zaretskii @ 2021-10-13 13:31 UTC (permalink / raw)
  To: Stefan Kangas; +Cc: schwab, op, emacs-devel

> From: Stefan Kangas <stefan@marxist.se>
> Date: Wed, 13 Oct 2021 14:58:57 +0200
> Cc: Omar Polo <op@omarpolo.com>, Andreas Schwab <schwab@linux-m68k.org>, 
> 	Emacs developers <emacs-devel@gnu.org>
> 
> Stefan Kangas <stefan@marxist.se> writes:
> 
> > So which of the proposed alternatives, or variation thereof, do you
> > prefer instead?
> 
> Is "Window Scroll Percentage" acceptable?

Yes, I think so.



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

* Re: emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip.
  2021-10-13 13:31                     ` Eli Zaretskii
@ 2021-10-13 22:28                       ` Stefan Kangas
  0 siblings, 0 replies; 16+ messages in thread
From: Stefan Kangas @ 2021-10-13 22:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: schwab, op, emacs-devel

Eli Zaretskii <eliz@gnu.org> writes:

>> Is "Window Scroll Percentage" acceptable?
>
> Yes, I think so.

Thanks, I pushed that change to emacs-28 (commit 44ce50b0df).



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

end of thread, other threads:[~2021-10-13 22:28 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-09  7:58 emacs-28 47cbd10: * lisp/bindings.el (mode-line-position): Improve tooltip Eli Zaretskii
2021-10-09  8:06 ` Stefan Kangas
2021-10-09  8:28   ` Stefan Kangas
2021-10-09  8:34     ` Eli Zaretskii
2021-10-09  8:52       ` Andreas Schwab
2021-10-09  9:30         ` Eli Zaretskii
2021-10-09  9:54           ` Omar Polo
2021-10-13  3:33             ` Stefan Kangas
2021-10-13 12:32               ` Eli Zaretskii
2021-10-13 12:56                 ` Stefan Kangas
2021-10-13 12:58                   ` Stefan Kangas
2021-10-13 13:31                     ` Eli Zaretskii
2021-10-13 22:28                       ` Stefan Kangas
2021-10-13 13:30                   ` Eli Zaretskii
2021-10-09 11:33           ` Andreas Schwab
2021-10-10  0:09 ` [External] : " Drew Adams

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