unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* keyboard-translate-table
@ 2005-02-27  0:33 Richard Stallman
  2005-02-27  2:08 ` keyboard-translate-table Stefan Monnier
  2005-02-28 21:29 ` keyboard-translate-table Lars Hansen
  0 siblings, 2 replies; 7+ messages in thread
From: Richard Stallman @ 2005-02-27  0:33 UTC (permalink / raw)


The example of keyboard-translate-table relates to terminal flow
control, which I believe is essentially obsolete.  Can anyone think
of a non-obsolete use for keyboard-translate-table, to put in
the example?

Or is keyboard-translate-table itself obsolete nowadays?

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

* Re: keyboard-translate-table
  2005-02-27  0:33 keyboard-translate-table Richard Stallman
@ 2005-02-27  2:08 ` Stefan Monnier
  2005-02-27 20:41   ` keyboard-translate-table Richard Stallman
  2005-03-01 14:31   ` keyboard-translate-table Evil Boris
  2005-02-28 21:29 ` keyboard-translate-table Lars Hansen
  1 sibling, 2 replies; 7+ messages in thread
From: Stefan Monnier @ 2005-02-27  2:08 UTC (permalink / raw)
  Cc: emacs-devel

> The example of keyboard-translate-table relates to terminal flow
> control, which I believe is essentially obsolete.  Can anyone think
> of a non-obsolete use for keyboard-translate-table, to put in
> the example?

It's used in normal-erase-is-backspace-mode (when running on a tty).

> Or is keyboard-translate-table itself obsolete nowadays?

It's also used for flow-ctrl.el, which is not in lisp/obsolete.
Are you suggesting we move flow-ctrl.el to lisp/obsolete?


        Stefan

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

* Re: keyboard-translate-table
  2005-02-27  2:08 ` keyboard-translate-table Stefan Monnier
@ 2005-02-27 20:41   ` Richard Stallman
  2005-03-01 14:31   ` keyboard-translate-table Evil Boris
  1 sibling, 0 replies; 7+ messages in thread
From: Richard Stallman @ 2005-02-27 20:41 UTC (permalink / raw)
  Cc: emacs-devel

      Can anyone think
    > of a non-obsolete use for keyboard-translate-table, to put in
    > the example?

    It's used in normal-erase-is-backspace-mode (when running on a tty).

Could you write an example based on normal-erase-is-backspace-mode?

    It's also used for flow-ctrl.el, which is not in lisp/obsolete.
    Are you suggesting we move flow-ctrl.el to lisp/obsolete?

That would be appropriate if flow control itself is obsolete.

Is anyone still using terminals that need flow control?

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

* Re: keyboard-translate-table
  2005-02-27  0:33 keyboard-translate-table Richard Stallman
  2005-02-27  2:08 ` keyboard-translate-table Stefan Monnier
@ 2005-02-28 21:29 ` Lars Hansen
  1 sibling, 0 replies; 7+ messages in thread
From: Lars Hansen @ 2005-02-28 21:29 UTC (permalink / raw)
  Cc: emacs-devel

Richard Stallman wrote:
> Can anyone think of a non-obsolete use for keyboard-translate-table,
 > to put in the example?

If you want C-x, C-c and C-v do cut, copy and paste without the IMHO 
confusing overloading done by CUA-mode, you can simply do

(keyboard-translate ?\C-x 'control-x)
(keyboard-translate ?\C-c 'control-c)
(global-set-key [(control-x)] 'kill-region)
(global-set-key [(control-c)] 'kill-ring-save)
(global-set-key [(control v)] 'yank)

The standard Emacs C-x and C-c commands are still available, you just 
have to type S-C-x and S-C-c.

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

* Re: keyboard-translate-table
  2005-02-27  2:08 ` keyboard-translate-table Stefan Monnier
  2005-02-27 20:41   ` keyboard-translate-table Richard Stallman
@ 2005-03-01 14:31   ` Evil Boris
  2005-03-03  2:27     ` keyboard-translate-table Richard Stallman
  1 sibling, 1 reply; 7+ messages in thread
From: Evil Boris @ 2005-03-01 14:31 UTC (permalink / raw)



Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> The example of keyboard-translate-table relates to terminal flow
>> control, which I believe is essentially obsolete.  Can anyone think
>> of a non-obsolete use for keyboard-translate-table, to put in
>> the example?
>
> It's used in normal-erase-is-backspace-mode (when running on a tty).
>
>> Or is keyboard-translate-table itself obsolete nowadays?
>
> It's also used for flow-ctrl.el, which is not in lisp/obsolete.
> Are you suggesting we move flow-ctrl.el to lisp/obsolete?

I also found it used in term/keyswap.el.  Is that obsolete too?  I
have been meaning to complain about that code, as it seems to
unconditionally swap ^h and DEL, and provide no way of undoing it (of
course one can just set keyboard-translate-table to nil manually).  In
addition, it seems to assume that keyboard-translate-table is not used
beofre it's loaded---it simply overwrites it.  Is this superceded by
normal-erase-is-backspace-mode?  Should it be declared obsolete?

--B

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

* Re: keyboard-translate-table
  2005-03-01 14:31   ` keyboard-translate-table Evil Boris
@ 2005-03-03  2:27     ` Richard Stallman
  2005-03-03  3:42       ` keyboard-translate-table Evil Boris
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Stallman @ 2005-03-03  2:27 UTC (permalink / raw)
  Cc: emacs-devel

term/keyswap.el is clearly obsolete; we have much better ways to
handle that issue nowadays.

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

* Re: keyboard-translate-table
  2005-03-03  2:27     ` keyboard-translate-table Richard Stallman
@ 2005-03-03  3:42       ` Evil Boris
  0 siblings, 0 replies; 7+ messages in thread
From: Evil Boris @ 2005-03-03  3:42 UTC (permalink / raw)



Richard Stallman <rms@gnu.org> writes:

> term/keyswap.el is clearly obsolete; we have much better ways to
> handle that issue nowadays.

So shouldn't it be moved/removed/marked as such?

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

end of thread, other threads:[~2005-03-03  3:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-27  0:33 keyboard-translate-table Richard Stallman
2005-02-27  2:08 ` keyboard-translate-table Stefan Monnier
2005-02-27 20:41   ` keyboard-translate-table Richard Stallman
2005-03-01 14:31   ` keyboard-translate-table Evil Boris
2005-03-03  2:27     ` keyboard-translate-table Richard Stallman
2005-03-03  3:42       ` keyboard-translate-table Evil Boris
2005-02-28 21:29 ` keyboard-translate-table Lars Hansen

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