* Mode line documentation in Emacs manual fails.
@ 2008-12-08 12:49 Alan Mackenzie
2008-12-08 14:01 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Alan Mackenzie @ 2008-12-08 12:49 UTC (permalink / raw)
To: emacs-devel
Hi, Emacs!
Sorry to be so negative, but I see this on a mode line on a text-only
terminal:
-111:---F4 31n/diff-bug-dir.sh All L7 C0 (Shell-script[bash])----P202/810
What does the "-111:-" bit mean? OK, I could certainly work it out from
the manual, but this working out is arduous indeed. On manual page
"Mode Line":
CS describes the character set of the buffer (see Coding
Systems). If it is a dash (`-'), that indicates the default state of
affairs: no special character set handling, except for the end-of-line
translations described in the next paragraph. `=' means no conversion
whatsoever. Letters represent various nontrivial "coding systems"--for
example, `1' represents ISO Latin-1. On a text-only terminal, CS is
preceded by two additional characters that describe the coding system
for keyboard input and the coding system for terminal output.
Furthermore, if you are using an input method, CS is preceded by a
string that identifies the input method, which takes the form `I>',
`I+', or `I@' (see Input Methods).
"`1' represents ISO Latin-1". Is this the left `1', the middle `1', or
the right `1'?
"On a text-only terminal, CS is preceded by two additional characters
that describe the coding system for keyboard input and the coding system
for terminal output". This is surely wrong. These two additional
characters are part of CS, aren't they?
I think my greatest difficulty is picking out the CS field from the rest
of the mode line. The text is confused as to whether the ":" is part of
the CS field or not. "If it is a dash (`-') ...." is very squidgy,
because the field is (?sometimes?) preceded by a dash. Why is the
default "-" character the same as the content-free leader character?
"The CS string and the colon character after it describe the character
set .....". How does the colon character aid in this description?
I think there's too much woffle in this section, e.g. "Normally, Emacs
handles these settings intelligently, but it is sometimes useful to have
this information" doesn't seem to say anything much.
--
Alan Mackenzie (Nuremberg, Germany).
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Mode line documentation in Emacs manual fails.
2008-12-08 12:49 Mode line documentation in Emacs manual fails Alan Mackenzie
@ 2008-12-08 14:01 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2008-12-08 14:01 UTC (permalink / raw)
To: Alan Mackenzie; +Cc: emacs-devel
> Date: Mon, 8 Dec 2008 12:49:54 +0000
> From: Alan Mackenzie <acm@muc.de>
>
> Hi, Emacs!
>
> Sorry to be so negative, but I see this on a mode line on a text-only
> terminal:
>
> -111:---F4 31n/diff-bug-dir.sh All L7 C0 (Shell-script[bash])----P202/810
>
> What does the "-111:-" bit mean? OK, I could certainly work it out from
> the manual, but this working out is arduous indeed. On manual page
> "Mode Line":
>
> CS describes the character set of the buffer (see Coding
> Systems). If it is a dash (`-'), that indicates the default state of
> affairs: no special character set handling, except for the end-of-line
> translations described in the next paragraph. `=' means no conversion
> whatsoever. Letters represent various nontrivial "coding systems"--for
> example, `1' represents ISO Latin-1. On a text-only terminal, CS is
> preceded by two additional characters that describe the coding system
> for keyboard input and the coding system for terminal output.
> Furthermore, if you are using an input method, CS is preceded by a
> string that identifies the input method, which takes the form `I>',
> `I+', or `I@' (see Input Methods).
>
> "`1' represents ISO Latin-1". Is this the left `1', the middle `1', or
> the right `1'?
All of them, of course, since the ones are identical.
But this sentence talks about the rightmost one, of course (unless you
are willing to argue that ``preceded by'' is ambiguous because no one
said the text has left to right direction ;-).
> "On a text-only terminal, CS is preceded by two additional characters
> that describe the coding system for keyboard input and the coding system
> for terminal output". This is surely wrong. These two additional
> characters are part of CS, aren't they?
No, CS is a description only of the buffer's character set
(a.k.a. buffer-file-coding-system), and the manual spells that
correctly.
> I think my greatest difficulty is picking out the CS field from the rest
> of the mode line. The text is confused as to whether the ":" is part of
> the CS field or not. "If it is a dash (`-') ...." is very squidgy,
> because the field is (?sometimes?) preceded by a dash. Why is the
> default "-" character the same as the content-free leader character?
Because `-' is a gap-filling character, used where we have nothing
special to say.
> "The CS string and the colon character after it describe the character
> set .....". How does the colon character aid in this description?
It describes the EOL format, which is traditionally viewed as part of
the encoding (not just by Emacs).
> I think there's too much woffle in this section, e.g. "Normally, Emacs
> handles these settings intelligently, but it is sometimes useful to have
> this information" doesn't seem to say anything much.
It explains why we put such obscure information in the user manual.
Patches to improve this part of the manual are more than welcome.
By the way, is there something specific in this section that is
unclear? If so, please tell what that is.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-08 14:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-08 12:49 Mode line documentation in Emacs manual fails Alan Mackenzie
2008-12-08 14:01 ` Eli Zaretskii
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.