annotate lisp/obsolete/keyswap.el @ 64254:f2bb50c9b2dd

Update e-mail address.
author Lars Hansen <larsh@soem.dk>
date Tue, 12 Jul 2005 18:05:09 +0000
parents 18a818a2ee7c
children 5b1a238fcbb4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
60730
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
1 ;;; keyswap.el --- swap BS and DEL keys -*- no-byte-compile: t -*-
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
2
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
3 ;; Copyright (C) 1992 Free Software Foundation, Inc.
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
4
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
5 ;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
6 ;; Keywords: terminals
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
7
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
9
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
13 ;; any later version.
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
14
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
18 ;; GNU General Public License for more details.
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
19
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
64085
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 60730
diff changeset
22 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18a818a2ee7c Update FSF's address.
Lute Kamstra <lute@gnu.org>
parents: 60730
diff changeset
23 ;; Boston, MA 02110-1301, USA.
60730
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
24
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
25 ;;; Commentary:
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
26
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
27 ;; This package is meant to be called by other terminal packages.
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
28
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
29 ;;; Code:
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
30
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
31 (let ((the-table (make-string 128 0)))
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
32 (let ((i 0))
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
33 (while (< i 128)
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
34 (aset the-table i i)
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
35 (setq i (1+ i))))
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
36 ;; Swap ^H and DEL
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
37 (aset the-table ?\177 ?\^h)
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
38 (aset the-table ?\^h ?\177)
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
39 (setq keyboard-translate-table the-table))
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
40
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
41 ;;; arch-tag: 67cf7009-e23e-421c-9648-078e7277297c
81de78e2e146 Moved keyswap.el from term/ to obsolete/.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
42 ;;; keyswap.el ends here