unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* across terminals
@ 2002-04-24 13:01 PPAATT
  2002-04-25  6:06 ` Richard Stallman
  0 siblings, 1 reply; 13+ messages in thread
From: PPAATT @ 2002-04-24 13:01 UTC (permalink / raw)
  Cc: emacs-devel, Kai.Grossjohann

> Date: 4/20/02 11:28:15 AM MDT
> From: rms@gnu.org (Richard Stallman)
...
> Since such characters are not available
> on all terminals, ...
> People won't want to use these keys
> in major modes or minor modes
> meant for general use.

I remain mystified by this concise statement,
but I've thought up a new way to interpret it ...

A quick glance thru:

        http://www.google.com/search?q=iso+646+vs+ascii

in particular:

        http://www.cs.tut.fi/~jkorpela/chars.html#646
        http://pdc.ro.nu/teletext.html

suggests that keyboards designed by ISO 646 folk
might have keys labelled with the "invariant set" of
printable US Ascii minus the thirteen chars
# $ @ [ \ ] ^ _ ` { | } ~
(i.e.  x  23 24  40  5B 5C 5D 5E 5F 60  7B 7C 7D 7E). 

So across Europe & relations maybe we face
"not available on all terminals" issues
in the default Emacs keymap with the "C-c letter"
concept we have been elucidating in our thread
titled "bindings reserved for users" but then also with:

set-mark-command is on C-@, C-SPC
key ESC is on C-[
abort-recursive-edit is on C-]
toggle-input-method is on C-\
undo C-_, C-/

ispell-word M-$
mark-word is on M-@
delete-horizontal-space is on M-\
delete-indentation is on M-^
tmm-menubar is on M-`
backward-paragraph is on C-up, M-{
shell-command-on-region is on M-|
forward-paragraph is on C-down, M-}
not-modified is on M-~

Fun to see how many of these we have
(and have not) already bound to alternate
key sequences, not to mention mouse actions etc.

I remember in particular that C-h t help-with-tutorial
bemoans the difficulty of finding locally how to undo,
hence we have C-x u advertised-undo (also known as
the undo that C-h w undo does Not advertise).

Pat LaVarre

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

* Re: across terminals
  2002-04-24 13:01 PPAATT
@ 2002-04-25  6:06 ` Richard Stallman
  2002-04-25 11:20   ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Richard Stallman @ 2002-04-25  6:06 UTC (permalink / raw)
  Cc: emacs-devel, Kai.Grossjohann

I have never seen a terminal that did not have these characters:
  # $ @ [ \ ] ^ _ ` { | } ~

If they do exist, they must be rare, so I don't think
they should be a major factor in our decisions.

If a large number of such terminals do exist, please
let me know.

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

* Re: across terminals
  2002-04-25  6:06 ` Richard Stallman
@ 2002-04-25 11:20   ` Eli Zaretskii
  2002-04-25 11:31     ` Stephen J. Turnbull
                       ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Eli Zaretskii @ 2002-04-25 11:20 UTC (permalink / raw)
  Cc: PPAATT, emacs-devel, Kai.Grossjohann


On Thu, 25 Apr 2002, Richard Stallman wrote:

> I have never seen a terminal that did not have these characters:
>   # $ @ [ \ ] ^ _ ` { | } ~
> 
> If they do exist, they must be rare

Unfortunately, this isn't true: many national keyboards in Europe don't 
have keys for some of those ( {, |, and } seem to be most prone to 
this).  You need to press some AltGr-key combination to get them.  IIRC,
\ and _ have some issues on Japanese keyboards.

I remember that someone told me SIGQUIT was a pain in some European 
country (Germany?) because you need a combination of keys to produce \.

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

* Re: across terminals
  2002-04-25 11:20   ` Eli Zaretskii
@ 2002-04-25 11:31     ` Stephen J. Turnbull
  2002-04-26  1:32       ` Miles Bader
  2002-04-25 20:45     ` Paul Eggert
  2002-04-26  3:18     ` Richard Stallman
  2 siblings, 1 reply; 13+ messages in thread
From: Stephen J. Turnbull @ 2002-04-25 11:31 UTC (permalink / raw)
  Cc: Richard Stallman, PPAATT, emacs-devel, Kai.Grossjohann

>>>>> "Eli" == Eli Zaretskii <eliz@is.elta.co.il> writes:

    Eli> IIRC, \ and _ have some issues on Japanese keyboards.

Yes, although the list is \ (the code point maps to YEN SYMBOL), ~
(OVERBAR), and | (BROKEN BAR = U+00A6).

There's another problem that I've occasionally encountered, is that my
muscle memory knows where "the key that invokes eval-expression" is in
a way that isn't entirely linked to "where : is".  Non-US keyboards
tend to move punctuation around a lot.

-- 
Institute of Policy and Planning Sciences     http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
 My nostalgia for Icon makes me forget about any of the bad things.  I don't
have much nostalgia for Perl, so its faults I remember.  Scott Gilbert c.l.py

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

* Re: across terminals
  2002-04-25 11:20   ` Eli Zaretskii
  2002-04-25 11:31     ` Stephen J. Turnbull
@ 2002-04-25 20:45     ` Paul Eggert
  2002-04-26  3:18     ` Richard Stallman
  2 siblings, 0 replies; 13+ messages in thread
From: Paul Eggert @ 2002-04-25 20:45 UTC (permalink / raw)


> From: Eli Zaretskii <eliz@is.elta.co.il>
> Date: Thu, 25 Apr 2002 14:20:46 +0300 (IDT)
> 
> > I have never seen a terminal that did not have these characters:
> >   # $ @ [ \ ] ^ _ ` { | } ~
> > If they do exist, they must be rare
> 
> Unfortunately, this isn't true: many national keyboards in Europe don't 
> have keys for some of those ( {, |, and } seem to be most prone to 
> this).  You need to press some AltGr-key combination to get them.

Yes.  For example, according to
<http://www.246.ne.jp/~joe/info/latin1.htm>, the only printable
characters common to all the Western European IBM 106 keyboards are
the ASCII letters, digits, and the following:

  ! " % & ' ( ) * + , - . / : ; _

The following printable ASCII characters are absent from at least one
keyboard in that list:

  # $ <= > ? @ [ \ ] ^ ` { | } ~

> IIRC, \ and _ have some issues on Japanese keyboards.

We do have a few Japanese keyboards here, and characters like \ are
not a real problem with them.  Japanese users are well aware that the
Yen-sign character is actually an alias for \, so they know that if
the documentation says "Please type C-\" that they should actually
type Control-(yen-sign).  Some Japanese keyboards have both a yen-sign
and a backslash on the key, to indicate the alias.

> I remember that someone told me SIGQUIT was a pain in some European 
> country (Germany?) because you need a combination of keys to produce \.

Yes, and it works the other way sometimes too.  For example, it's a
pain to type a NUL on Unix US English Sun type 5 keyboard
(Control-Shift-2), but it's easier on a Japanese Information Standard
English IBM 106 keyboard (Control-@).

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

* Re: across terminals
  2002-04-25 11:31     ` Stephen J. Turnbull
@ 2002-04-26  1:32       ` Miles Bader
  0 siblings, 0 replies; 13+ messages in thread
From: Miles Bader @ 2002-04-26  1:32 UTC (permalink / raw)
  Cc: Eli Zaretskii, Richard Stallman, PPAATT, emacs-devel,
	Kai.Grossjohann

"Stephen J. Turnbull" <stephen@xemacs.org> writes:
> There's another problem that I've occasionally encountered, is that my
> muscle memory knows where "the key that invokes eval-expression" is in
> a way that isn't entirely linked to "where : is".

For eval-expression at least, the answer is obvious:  rebind it to
M-ESC, where god intended that it be.  :-|

-Miles
-- 
"I distrust a research person who is always obviously busy on a task."
   --Robert Frosch, VP, GM Research

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

* Re: across terminals
  2002-04-25 11:20   ` Eli Zaretskii
  2002-04-25 11:31     ` Stephen J. Turnbull
  2002-04-25 20:45     ` Paul Eggert
@ 2002-04-26  3:18     ` Richard Stallman
  2 siblings, 0 replies; 13+ messages in thread
From: Richard Stallman @ 2002-04-26  3:18 UTC (permalink / raw)
  Cc: PPAATT, emacs-devel, Kai.Grossjohann

    > I have never seen a terminal that did not have these characters:
    >   # $ @ [ \ ] ^ _ ` { | } ~

    Unfortunately, this isn't true: many national keyboards in Europe don't 
    have keys for some of those ( {, |, and } seem to be most prone to 
    this).  You need to press some AltGr-key combination to get them.

I thought the issue was whether the terminal has these characters.
Whether they use AltGr is another question (not particularly relevant
here, I think).

I stand by what I said.  Let's consider this issue closed
and NOT SPEND MORE TIME on it, OK?

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

* Re: across terminals
@ 2002-04-26 13:51 PPAATT
  2002-04-26 14:18 ` Stefan Monnier
  2002-04-26 14:25 ` Kai Großjohann
  0 siblings, 2 replies; 13+ messages in thread
From: PPAATT @ 2002-04-26 13:51 UTC (permalink / raw)
  Cc: emacs-devel, Kai.Grossjohann, eliz

> From: rms@gnu.org (Richard Stallman)
> Let's consider this issue closed
> and NOT SPEND MORE TIME on it, OK?

This we could do by fiat, sure boss.

> I stand by what I said.

I'm new here I know, but certainly I am
as yet failing to make sense of what you said.

Do you mean to withdraw or otherwise modify
what you did not repeat?  That is ...

> Date: 4/20/02 11:28:15 AM MDT
> From: rms@gnu.org (Richard Stallman)
...
> Since such characters are not available on all terminals, ...
> People won't want to use these keys in major modes
> or minor modes meant for general use.

Looks to me like Emacs folk actually do
commonly bind rare keys for general use?

Agreed?  No?  Yes?  Not exactly?

Are we just now telling me now this was inadvertent?

When we say "available on all terminals"
we mean the only terminals that count
are those designed for the people of Massachusetts?

> # $ @ [ \ ] ^ _ ` { | } ~
...
> I thought the issue was
> whether the terminal has these characters.
...
> Whether they use AltGr ... not ... relevant ...

This English I still think I don't understand,
sorry.  The non-US keyboards I see don't have
these labels on keys.

Saying that these terminals have these
chars is as silly as saying a US IBM PC
keyboard has all of the chars coded 0 to 255
because "everyone knows" you can hold down
the Alt key and type out the code in decimal
on the numeric keypad.

By that theory, the US IBM PC keyboard has
the letter ñ on it, perhaps at Alt 1 6 4,
so C-c ñ should count among the C-c letter keys.

But this you began by explicitly denying.

> > The non-US keyboards I see
> > don't have these labels on keys.

Is my (sharply limited) sample not representative?

> Since such characters are not available on all terminals, ...
> People won't want to use these keys in major modes
> or minor modes meant for general use.

What can this mean ... presuming you maintain it is true?

(((This would matter less, except that RMS said it, so maybe
here lies a key to understanding why Emacs can say
things like "overwrite-mode is on insert" and "C-c C-h is
undefined" while meaning something rather different than the
newbie might think.)))

Pat LaVarre



Subj:    Re: across terminals
Date:   4/25/02 9:18:55 PM Mountain Daylight Time
From:   rms@gnu.org (Richard Stallman)
Reply-to:   rms@gnu.org
To: eliz@is.elta.co.il
CC: PPAATT@aol.com, emacs-devel@gnu.org, Kai.Grossjohann@CS.Uni-Dortmund.DE

> > I have never seen a terminal that did not have
> > these characters:
> >   # $ @ [ \ ] ^ _ ` { | } ~

> Unfortunately, this isn't true: many national
> keyboards in Europe don't have keys for some
> of those ( {, |, and } seem to be most prone
> to this).  You need to press some AltGr-key
> combination to get them.

I thought the issue was whether the terminal
has these characters.  Whether they use AltGr
is another question (not particularly
relevant here, I think).

I stand by what I said.  Let's consider this
issue closed and NOT SPEND MORE TIME on it, OK?

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

* Re: across terminals
  2002-04-26 13:51 PPAATT
@ 2002-04-26 14:18 ` Stefan Monnier
  2002-04-26 16:37   ` Eli Zaretskii
  2002-04-26 14:25 ` Kai Großjohann
  1 sibling, 1 reply; 13+ messages in thread
From: Stefan Monnier @ 2002-04-26 14:18 UTC (permalink / raw)
  Cc: rms, emacs-devel, Kai.Grossjohann, eliz

> > From: rms@gnu.org (Richard Stallman)
> > Let's consider this issue closed
> > and NOT SPEND MORE TIME on it, OK?
> 
> This we could do by fiat, sure boss.
> 
> > I stand by what I said.
> 
> I'm new here I know, but certainly I am
> as yet failing to make sense of what you said.
> 
> Do you mean to withdraw or otherwise modify
> what you did not repeat?  That is ...
> 
> > Date: 4/20/02 11:28:15 AM MDT
> > From: rms@gnu.org (Richard Stallman)
> ...
> > Since such characters are not available on all terminals, ...
> > People won't want to use these keys in major modes
> > or minor modes meant for general use.
> 
> Looks to me like Emacs folk actually do
> commonly bind rare keys for general use?

The experience until now is that non-ASCII letters are never used
by major modes or minor modes, so we don't need to decide whether they
should be reserved for the user or not.

And note that we are talking about letters, not about characters.
`e' with an acute accent is a letter, `]' is not.

I think the only problem with the manual's description is that
the casual reader might confuse the notion of letter and character.


	Stefan

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

* Re: across terminals
  2002-04-26 13:51 PPAATT
  2002-04-26 14:18 ` Stefan Monnier
@ 2002-04-26 14:25 ` Kai Großjohann
  1 sibling, 0 replies; 13+ messages in thread
From: Kai Großjohann @ 2002-04-26 14:25 UTC (permalink / raw)
  Cc: rms, emacs-devel, eliz

PPAATT@aol.com writes:

>> From: rms@gnu.org (Richard Stallman)
>> Let's consider this issue closed
>> and NOT SPEND MORE TIME on it, OK?
>
> This we could do by fiat, sure boss.

If I were you, I'd just bind C-c <X> where <X> is a non-ascii
character.  Then you read the NEWS files for each new Emacs, in the
unlikely event that future versions will bind such keys.

kai
-- 
Silence is foo!

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

* Re: across terminals
@ 2002-04-26 15:44 PPAATT
  2002-04-26 16:47 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: PPAATT @ 2002-04-26 15:44 UTC (permalink / raw)
  Cc: rms, emacs-devel, eliz

> Subj:  Re: across terminals
> Date: 4/26/02 8:26:19 AM Mountain Daylight Time
> From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
...
> If I were you, I'd just bind C-c <X> where <X> is a non-ascii
> character.  Then [ perhaps via C-h n view-emacs-news]
> you read the NEWS files for each new Emacs, in the
> unlikely event that future versions will bind such keys.

Eh?

If the GNU Emacs developers do mean to support binding shifted uses of keys 
that conventionally self-insert chars outside of US-Ascii ... then I should 
consider all of those key sequences reserved for the user?  Not just C-c x 
but also C-x, where by x we mean the unshifted but not-US-Ascii key?

Or I should consider all of these keys reserved for Emacs?

Or else by "what occurs commonly works well; what occurs less commonly works 
less well", when I see the doc not discuss this issue I should clue in and 
work harder to imitate an American at the keyboard?

Pat LaVarre

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

* Re: across terminals
  2002-04-26 14:18 ` Stefan Monnier
@ 2002-04-26 16:37   ` Eli Zaretskii
  0 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2002-04-26 16:37 UTC (permalink / raw)
  Cc: PPAATT, rms, emacs-devel, Kai.Grossjohann

> From: "Stefan Monnier" <monnier+gnu/emacs@RUM.cs.yale.edu>
> Date: Fri, 26 Apr 2002 10:18:55 -0400
> 
> I think the only problem with the manual's description is that
> the casual reader might confuse the notion of letter and character.

Indeed.  So perhaps we should add a sentence or a footnote there to
prevent this confusion.

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

* Re: across terminals
  2002-04-26 15:44 across terminals PPAATT
@ 2002-04-26 16:47 ` Eli Zaretskii
  0 siblings, 0 replies; 13+ messages in thread
From: Eli Zaretskii @ 2002-04-26 16:47 UTC (permalink / raw)
  Cc: emacs-devel

> From: PPAATT@aol.com
> Date: Fri, 26 Apr 2002 11:44:16 EDT
> 
> If the GNU Emacs developers do mean to support binding shifted uses of keys 
> that conventionally self-insert chars outside of US-Ascii ... then I should 
> consider all of those key sequences reserved for the user?  Not just C-c x 
> but also C-x, where by x we mean the unshifted but not-US-Ascii key?
> 
> Or I should consider all of these keys reserved for Emacs?
> 
> Or else by "what occurs commonly works well; what occurs less commonly works 
> less well", when I see the doc not discuss this issue I should clue in and 
> work harder to imitate an American at the keyboard?

None of the above.  Just find the keys that aren't bound in any of the
modes you frequently use, and use them for your own bindings.  As
Stefan told you, users do that all the time.  I'm quite sure most of
the developers do that as well; I certainly do.  If later you bump
into some feature that conflicts with one of your bindings, change it.
That's all there is to it, really.

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

end of thread, other threads:[~2002-04-26 16:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-26 15:44 across terminals PPAATT
2002-04-26 16:47 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2002-04-26 13:51 PPAATT
2002-04-26 14:18 ` Stefan Monnier
2002-04-26 16:37   ` Eli Zaretskii
2002-04-26 14:25 ` Kai Großjohann
2002-04-24 13:01 PPAATT
2002-04-25  6:06 ` Richard Stallman
2002-04-25 11:20   ` Eli Zaretskii
2002-04-25 11:31     ` Stephen J. Turnbull
2002-04-26  1:32       ` Miles Bader
2002-04-25 20:45     ` Paul Eggert
2002-04-26  3:18     ` 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).