Mercurial > emacs
annotate lisp/obsolete/iso-acc.el @ 94443:f41f8f74c3cb
(doc-view-new-window-function): Avoid using WINDOW
argument to get-char-property, in case the current buffer hasn't
been assigned to that window yet.
(doc-view-display): Default to selected window if the current
buffer hasn't been assigned to a window yet.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Mon, 28 Apr 2008 23:49:02 +0000 |
parents | ee22366f2a68 |
children | 43d30a1ea764 |
rev | line source |
---|---|
61018
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
1 ;;; iso-acc.el --- minor mode providing electric accent keys |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
2 |
64751
5b1a238fcbb4
Update years in copyright notice; nfc.
Thien-Thi Nguyen <ttn@gnuvola.org>
parents:
64085
diff
changeset
|
3 ;; Copyright (C) 1993, 1994, 1996, 2001, 2002, 2003, 2004, |
79715 | 4 ;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
61018
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
5 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
6 ;; Author: Johan Vromans |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
7 ;; Maintainer: FSF |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
8 ;; Keywords: i18n |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
9 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
10 ;; This file is part of GNU Emacs. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
11 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
12 ;; GNU Emacs is free software; you can redistribute it and/or modify |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
13 ;; it under the terms of the GNU General Public License as published by |
78228
1e016d63f292
Switch license to GPLv3 or later.
Glenn Morris <rgm@gnu.org>
parents:
75347
diff
changeset
|
14 ;; the Free Software Foundation; either version 3, or (at your option) |
61018
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
15 ;; any later version. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
16 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
17 ;; GNU Emacs is distributed in the hope that it will be useful, |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
20 ;; GNU General Public License for more details. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
21 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
22 ;; You should have received a copy of the GNU General Public License |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the |
64085 | 24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 ;; Boston, MA 02110-1301, USA. | |
61018
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
26 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
27 ;;; Commentary: |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
28 |
94000
ee22366f2a68
Add a comment giving version of obsolescence.
Glenn Morris <rgm@gnu.org>
parents:
79715
diff
changeset
|
29 ;; This file has been obsolete since Emacs 22.1. |
ee22366f2a68
Add a comment giving version of obsolescence.
Glenn Morris <rgm@gnu.org>
parents:
79715
diff
changeset
|
30 |
61018
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
31 ;; Function `iso-accents-mode' activates a minor mode in which |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
32 ;; typewriter "dead keys" are emulated. The purpose of this emulation |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
33 ;; is to provide a simple means for inserting accented characters |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
34 ;; according to the ISO-8859-1...3 character sets. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
35 ;; |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
36 ;; In `iso-accents-mode', pseudo accent characters are used to |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
37 ;; introduce accented keys. The pseudo-accent characters are: |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
38 ;; |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
39 ;; ' (minute) -> actue accent |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
40 ;; ` (backtick) -> grave accent |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
41 ;; " (second) -> diaeresis |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
42 ;; ^ (caret) -> circumflex |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
43 ;; ~ (tilde) -> tilde over the character |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
44 ;; / (slash) -> slash through the character. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
45 ;; Also: /A is A-with-ring and /E is AE ligature. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
46 ;; These two are enabled only if you set iso-accents-enable |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
47 ;; to include them: |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
48 ;; . (period) -> dot over the character (some languages only) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
49 ;; , (cedilla) -> cedilla under the character (some languages only) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
50 ;; |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
51 ;; The action taken depends on the key that follows the pseudo accent. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
52 ;; In general: |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
53 ;; |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
54 ;; pseudo-accent + appropriate letter -> accented letter |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
55 ;; pseudo-accent + space -> pseudo-accent (except comma and period) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
56 ;; pseudo-accent + pseudo-accent -> accent (if available) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
57 ;; pseudo-accent + other -> pseudo-accent + other |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
58 ;; |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
59 ;; If the pseudo-accent is followed by anything else than a |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
60 ;; self-insert-command, the dead-key code is terminated, the |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
61 ;; pseudo-accent inserted 'as is' and the bell is rung to signal this. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
62 ;; |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
63 ;; Function `iso-accents-mode' can be used to enable the iso accents |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
64 ;; minor mode, or disable it. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
65 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
66 ;; If you want only some of these characters to serve as accents, |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
67 ;; add a language to `iso-languages' which specifies the accent characters |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
68 ;; that you want, then select the language with `iso-accents-customize'. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
69 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
70 ;;; Code: |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
71 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
72 (provide 'iso-acc) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
73 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
74 (defgroup iso-acc nil |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
75 "Minor mode providing electric accent keys." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
76 :prefix "iso-accents-" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
77 :group 'i18n) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
78 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
79 (defcustom iso-accents-insert-offset nonascii-insert-offset |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
80 "*Offset added by ISO Accents mode to character codes 0200 and above." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
81 :type 'integer |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
82 :group 'iso-acc) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
83 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
84 (defvar iso-languages |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
85 '(("catalan" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
86 ;; Note this includes some extra characters used in Spanish, |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
87 ;; on the idea that someone who uses Catalan is likely to use Spanish |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
88 ;; as well. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
89 (?' (?A . ?\301) (?E . ?\311) (?I . ?\315) (?O . ?\323) (?U . ?\332) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
90 (?a . ?\341) (?e . ?\351) (?i . ?\355) (?o . ?\363) (?u . ?\372) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
91 (?\ . ?')) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
92 (?` (?A . ?\300) (?E . ?\310) (?O . ?\322) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
93 (?a . ?\340) (?e . ?\350) (?o . ?\362) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
94 (?\ . ?`)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
95 (?\" (?I . ?\317) (?U . ?\334) (?i . ?\357) (?u . ?\374) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
96 (?\ . ?\")) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
97 (?~ (?C . ?\307) (?N . ?\321) (?c . ?\347) (?n . ?\361) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
98 (?> . ?\273) (?< . ?\253) (?! . ?\241) (?? . ?\277) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
99 (?\ . ?\~))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
100 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
101 ("esperanto" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
102 (?^ (?H . ?\246) (?J . ?\254) (?h . ?\266) (?j . ?\274) (?C . ?\306) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
103 (?G . ?\330) (?S . ?\336) (?c . ?\346) (?g . ?\370) (?s . ?\376) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
104 (?^ . ?^) (?\ . ?^)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
105 (?~ (?U . ?\335) (?u . ?\375) (?\ . ?~))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
106 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
107 ("french" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
108 (?' (?E . ?\311) (?C . ?\307) (?e . ?\351) (?c . ?\347) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
109 (?\ . ?')) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
110 (?` (?A . ?\300) (?E . ?\310) (?U . ?\331) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
111 (?a . ?\340) (?e . ?\350) (?u . ?\371) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
112 (?\ . ?`)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
113 (?^ (?A . ?\302) (?E . ?\312) (?I . ?\316) (?O . ?\324) (?U . ?\333) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
114 (?a . ?\342) (?e . ?\352) (?i . ?\356) (?o . ?\364) (?u . ?\373) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
115 (?\ . ?^)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
116 (?\" (?E . ?\313) (?I . ?\317) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
117 (?e . ?\353) (?i . ?\357) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
118 (?\ . ?\")) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
119 (?~ (?< . ?\253) (?> . ?\273) (?C . ?\307) (?c . ?\347) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
120 (?\ . ?~)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
121 (?, (?C . ?\307) (?c . ?\347) (?\ . ?\,))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
122 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
123 ("german" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
124 (?\" (?A . ?\304) (?O . ?\326) (?U . ?\334) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
125 (?a . ?\344) (?o . ?\366) (?u . ?\374) (?s . ?\337) (?\ . ?\"))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
126 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
127 ("irish" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
128 (?' (?A . ?\301) (?E . ?\311) (?I . ?\315) (?O . ?\323) (?U . ?\332) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
129 (?a . ?\341) (?e . ?\351) (?i . ?\355) (?o . ?\363) (?u . ?\372) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
130 (?\ . ?'))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
131 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
132 ("portuguese" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
133 (?' (?A . ?\301) (?E . ?\311) (?I . ?\315) (?O . ?\323) (?U . ?\332) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
134 (?C . ?\307) (?a . ?\341) (?e . ?\351) (?i . ?\355) (?o . ?\363) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
135 (?u . ?\372) (?c . ?\347) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
136 (?\ . ?')) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
137 (?` (?A . ?\300) (?a . ?\340) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
138 (?\ . ?`)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
139 (?^ (?A . ?\302) (?E . ?\312) (?O . ?\324) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
140 (?a . ?\342) (?e . ?\352) (?o . ?\364) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
141 (?\ . ?^)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
142 (?\" (?U . ?\334) (?u . ?\374) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
143 (?\ . ?\")) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
144 (?~ (?A . ?\303) (?O . ?\325) (?a . ?\343) (?o . ?\365) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
145 (?C . ?\307) (?N . ?\321) (?c . ?\347) (?n . ?\361) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
146 (?\ . ?~)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
147 (?, (?c . ?\347) (?C . ?\307) (?, . ?,))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
148 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
149 ("spanish" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
150 (?' (?A . ?\301) (?E . ?\311) (?I . ?\315) (?O . ?\323) (?U . ?\332) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
151 (?a . ?\341) (?e . ?\351) (?i . ?\355) (?o . ?\363) (?u . ?\372) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
152 (?\ . ?')) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
153 (?\" (?U . ?\334) (?u . ?\374) (?\ . ?\")) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
154 (?\~ (?N . ?\321) (?n . ?\361) (?> . ?\273) (?< . ?\253) (?! . ?\241) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
155 (?? . ?\277) (?\ . ?\~))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
156 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
157 ("latin-1" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
158 (?' (?A . ?\301) (?E . ?\311) (?I . ?\315) (?O . ?\323) (?U . ?\332) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
159 (?Y . ?\335) (?a . ?\341) (?e . ?\351) (?i . ?\355) (?o . ?\363) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
160 (?u . ?\372) (?y . ?\375) (?' . ?\264) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
161 (?\ . ?')) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
162 (?` (?A . ?\300) (?E . ?\310) (?I . ?\314) (?O . ?\322) (?U . ?\331) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
163 (?a . ?\340) (?e . ?\350) (?i . ?\354) (?o . ?\362) (?u . ?\371) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
164 (?` . ?`) (?\ . ?`)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
165 (?^ (?A . ?\302) (?E . ?\312) (?I . ?\316) (?O . ?\324) (?U . ?\333) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
166 (?a . ?\342) (?e . ?\352) (?i . ?\356) (?o . ?\364) (?u . ?\373) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
167 (?^ . ?^) (?\ . ?^)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
168 (?\" (?A . ?\304) (?E . ?\313) (?I . ?\317) (?O . ?\326) (?U . ?\334) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
169 (?a . ?\344) (?e . ?\353) (?i . ?\357) (?o . ?\366) (?s . ?\337) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
170 (?u . ?\374) (?y . ?\377) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
171 (?\" . ?\250) (?\ . ?\")) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
172 (?~ (?A . ?\303) (?C . ?\307) (?D . ?\320) (?N . ?\321) (?O . ?\325) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
173 (?T . ?\336) (?a . ?\343) (?c . ?\347) (?d . ?\360) (?n . ?\361) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
174 (?o . ?\365) (?t . ?\376) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
175 (?> . ?\273) (?< . ?\253) (?! . ?\241) (?? . ?\277) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
176 (?\~ . ?\270) (?\ . ?~)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
177 (?/ (?A . ?\305) (?E . ?\306) (?O . ?\330) (?a . ?\345) (?e . ?\346) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
178 (?o . ?\370) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
179 (?/ . ?\260) (?\ . ?/))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
180 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
181 ("latin-2" latin-iso8859-2 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
182 (?' (?A . ?\301) (?C . ?\306) (?D . ?\320) (?E . ?\311) (?I . ?\315) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
183 (?L . ?\305) (?N . ?\321) (?O . ?\323) (?R . ?\300) (?S . ?\246) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
184 (?U . ?\332) (?Y . ?\335) (?Z . ?\254) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
185 (?a . ?\341) (?c . ?\346) (?d . ?\360) (?e . ?\351) (?i . ?\355) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
186 (?l . ?\345) (?n . ?\361) (?o . ?\363) (?r . ?\340) (?s . ?\266) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
187 (?u . ?\372) (?y . ?\375) (?z . ?\274) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
188 (?' . ?\264) (?\ . ?')) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
189 (?` (?A . ?\241) (?C . ?\307) (?E . ?\312) (?L . ?\243) (?S . ?\252) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
190 (?T . ?\336) (?Z . ?\257) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
191 (?a . ?\261) (?l . ?\263) (?c . ?\347) (?e . ?\352) (?s . ?\272) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
192 (?t . ?\376) (?z . ?\277) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
193 (?` . ?\252) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
194 (?. . ?\377) (?\ . ?`)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
195 (?^ (?A . ?\302) (?I . ?\316) (?O . ?\324) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
196 (?a . ?\342) (?i . ?\356) (?o . ?\364) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
197 (?^ . ?^) ; no special code? |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
198 (?\ . ?^)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
199 (?\" (?A . ?\304) (?E . ?\313) (?O . ?\326) (?U . ?\334) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
200 (?a . ?\344) (?e . ?\353) (?o . ?\366) (?s . ?\337) (?u . ?\374) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
201 (?\" . ?\250) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
202 (?\ . ?\")) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
203 (?~ (?A . ?\303) (?C . ?\310) (?D . ?\317) (?L . ?\245) (?N . ?\322) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
204 (?O . ?\325) (?R . ?\330) (?S . ?\251) (?T . ?\253) (?U . ?\333) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
205 (?Z . ?\256) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
206 (?a . ?\343) (?c . ?\350) (?d . ?\357) (?l . ?\265) (?n . ?\362) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
207 (?o . ?\365) (?r . ?\370) (?s . ?\271) (?t . ?\273) (?u . ?\373) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
208 (?z . ?\276) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
209 (?v . ?\242) ; v accent |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
210 (?\~ . ?\242) ; v accent |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
211 (?\. . ?\270) ; cedilla accent |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
212 (?\ . ?~))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
213 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
214 ("latin-3" latin-iso8859-3 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
215 (?' (?A . ?\301) (?E . ?\311) (?I . ?\315) (?O . ?\323) (?U . ?\332) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
216 (?a . ?\341) (?e . ?\351) (?i . ?\355) (?o . ?\363) (?u . ?\372) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
217 (?' . ?\264) (?\ . ?')) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
218 (?` (?A . ?\300) (?E . ?\310) (?I . ?\314) (?O . ?\322) (?U . ?\331) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
219 (?a . ?\340) (?e . ?\350) (?i . ?\354) (?o . ?\362) (?u . ?\371) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
220 (?` . ?`) (?\ . ?`)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
221 (?^ (?A . ?\302) (?C . ?\306) (?E . ?\312) (?G . ?\330) (?H . ?\246) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
222 (?I . ?\316) (?J . ?\254) (?O . ?\324) (?S . ?\336) (?U . ?\333) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
223 (?a . ?\342) (?c . ?\346) (?e . ?\352) (?g . ?\370) (?h . ?\266) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
224 (?i . ?\356) (?j . ?\274) (?o . ?\364) (?s . ?\376) (?u . ?\373) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
225 (?^ . ?^) (?\ . ?^)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
226 (?\" (?A . ?\304) (?E . ?\313) (?I . ?\317) (?O . ?\326) (?U . ?\334) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
227 (?a . ?\344) (?e . ?\353) (?i . ?\357) (?o . ?\366) (?u . ?\374) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
228 (?s . ?\337) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
229 (?\" . ?\250) (?\ . ?\")) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
230 (?~ (?A . ?\303) (?C . ?\307) (?D . ?\320) (?N . ?\321) (?O . ?\325) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
231 (?a . ?\343) (?c . ?\347) (?d . ?\360) (?n . ?\361) (?o . ?\365) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
232 (?$ . ?\245) (?S . ?\252) (?s . ?\272) (?G . ?\253) (?g . ?\273) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
233 (?U . ?\335) (?u . ?\375) (?` . ?\242) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
234 (?~ . ?\270) (?\ . ?~)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
235 (?/ (?C . ?\305) (?G . ?\325) (?H . ?\241) (?I . ?\251) (?Z . ?\257) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
236 (?c . ?\345) (?g . ?\365) (?h . ?\261) (?i . ?\271) (?z . ?\277) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
237 (?r . ?\256) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
238 (?. . ?\377) (?# . ?\243) (?$ . ?\244) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
239 (?/ . ?\260) (?\ . ?/)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
240 (?. (?C . ?\305) (?G . ?\325) (?I . ?\251) (?Z . ?\257) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
241 (?c . ?\345) (?g . ?\365) (?z . ?\277)))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
242 "List of language-specific customizations for the ISO Accents mode. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
243 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
244 Each element of the list is of the form |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
245 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
246 (LANGUAGE [CHARSET] |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
247 (PSEUDO-ACCENT MAPPINGS) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
248 (PSEUDO-ACCENT MAPPINGS) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
249 ...) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
250 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
251 LANGUAGE is a string naming the language. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
252 CHARSET (which may be omitted) is the symbol name |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
253 of the character set used in this language. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
254 If CHARSET is omitted, latin-iso8859-1 is the default. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
255 PSEUDO-ACCENT is a char specifying an accent key. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
256 MAPPINGS are cons cells of the form (CHAR . ISO-CHAR). |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
257 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
258 The net effect is that the key sequence PSEUDO-ACCENT CHAR is mapped |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
259 to ISO-CHAR on input.") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
260 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
261 (defvar iso-language nil |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
262 "Language for which ISO Accents mode is currently customized. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
263 Change it with the `iso-accents-customize' function.") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
264 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
265 (defvar iso-accents-list nil |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
266 "Association list for ISO accent combinations, for the chosen language.") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
267 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
268 (defcustom iso-accents-mode nil |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
269 "*Non-nil enables ISO Accents mode. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
270 Setting this variable makes it local to the current buffer. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
271 See the function `iso-accents-mode'." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
272 :type 'boolean |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
273 :group 'iso-acc) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
274 (make-variable-buffer-local 'iso-accents-mode) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
275 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
276 (defcustom iso-accents-enable '(?' ?` ?^ ?\" ?~ ?/) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
277 "*List of accent keys that become prefixes in ISO Accents mode. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
278 The default is (?' ?` ?^ ?\" ?~ ?/), which contains all the supported |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
279 accent keys. If you set this variable to a list in which some of those |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
280 characters are missing, the missing ones do not act as accents. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
281 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
282 Note that if you specify a language with `iso-accents-customize', |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
283 that can also turn off certain prefixes (whichever ones are not needed in |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
284 the language you choose)." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
285 :type '(repeat character) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
286 :group 'iso-acc) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
287 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
288 (defun iso-accents-accent-key (prompt) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
289 "Modify the following character by adding an accent to it." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
290 ;; Pick up the accent character. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
291 (if (and iso-accents-mode |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
292 (memq last-input-char iso-accents-enable)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
293 (iso-accents-compose prompt) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
294 (vector last-input-char))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
295 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
296 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
297 ;; The iso-accents-compose function is called deep inside Emacs' read |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
298 ;; key sequence machinery, so the call to read-event below actually |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
299 ;; recurses into that machinery. Doing that does not cause any |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
300 ;; problem on its own, but read-event will have marked the window's |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
301 ;; display matrix to be accurate -- which is broken by the subsequent |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
302 ;; call to delete-region. Therefore, we must call force-window-update |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
303 ;; after delete-region to explicitly clear the accurate state of the |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
304 ;; window's display matrix. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
305 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
306 (defun iso-accents-compose (prompt) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
307 (let* ((first-char last-input-char) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
308 (list (assq first-char iso-accents-list)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
309 ;; Wait for the second key and look up the combination. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
310 (second-char (if (or prompt |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
311 (not (eq (key-binding "a") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
312 'self-insert-command)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
313 ;; Not at start of a key sequence. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
314 (> (length (this-single-command-keys)) 1) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
315 ;; Called from anything but the command loop. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
316 this-command) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
317 (progn |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
318 (message "%s%c" |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
319 (or prompt "Compose with ") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
320 first-char) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
321 (read-event)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
322 (insert first-char) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
323 (prog1 (read-event) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
324 (delete-region (1- (point)) (point)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
325 ;; Display is no longer up-to-date. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
326 (force-window-update (selected-window))))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
327 (entry (cdr (assq second-char list)))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
328 (if entry |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
329 ;; Found it: return the mapped char |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
330 (vector |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
331 (if (and enable-multibyte-characters |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
332 (>= entry ?\200)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
333 (+ iso-accents-insert-offset entry) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
334 entry)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
335 ;; Otherwise, advance and schedule the second key for execution. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
336 (push second-char unread-command-events) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
337 (vector first-char)))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
338 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
339 ;; It is a matter of taste if you want the minor mode indicated |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
340 ;; in the mode line... |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
341 ;; If so, uncomment the next four lines. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
342 ;; (or (assq 'iso-accents-mode minor-mode-alist) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
343 ;; (setq minor-mode-alist |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
344 ;; (append minor-mode-alist |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
345 ;; '((iso-accents-mode " ISO-Acc"))))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
346 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
347 ;;;###autoload |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
348 (defun iso-accents-mode (&optional arg) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
349 "Toggle ISO Accents mode, in which accents modify the following letter. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
350 This permits easy insertion of accented characters according to ISO-8859-1. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
351 When Iso-accents mode is enabled, accent character keys |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
352 \(`, ', \", ^, / and ~) do not self-insert; instead, they modify the following |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
353 letter key so that it inserts an ISO accented letter. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
354 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
355 You can customize ISO Accents mode to a particular language |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
356 with the command `iso-accents-customize'. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
357 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
358 Special combinations: ~c gives a c with cedilla, |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
359 ~d gives an Icelandic eth (d with dash). |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
360 ~t gives an Icelandic thorn. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
361 \"s gives German sharp s. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
362 /a gives a with ring. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
363 /e gives an a-e ligature. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
364 ~< and ~> give guillemots. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
365 ~! gives an inverted exclamation mark. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
366 ~? gives an inverted question mark. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
367 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
368 With an argument, a positive argument enables ISO Accents mode, |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
369 and a negative argument disables it." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
370 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
371 (interactive "P") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
372 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
373 (if (if arg |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
374 ;; Negative arg means switch it off. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
375 (<= (prefix-numeric-value arg) 0) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
376 ;; No arg means toggle. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
377 iso-accents-mode) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
378 (setq iso-accents-mode nil) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
379 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
380 ;; Enable electric accents. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
381 (setq iso-accents-mode t))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
382 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
383 (defun iso-accents-customize (language) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
384 "Customize the ISO accents machinery for a particular language. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
385 It selects the customization based on the specifications in the |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
386 `iso-languages' variable." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
387 (interactive (list (completing-read "Language: " iso-languages nil t))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
388 (let ((table (cdr (assoc language iso-languages))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
389 all-accents tail) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
390 (if (not table) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
391 (error "Unknown language `%s'" language) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
392 (setq iso-accents-insert-offset (- (make-char (if (symbolp (car table)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
393 (car table) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
394 'latin-iso8859-1)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
395 128)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
396 (if (symbolp (car table)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
397 (setq table (cdr table))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
398 (setq iso-language language |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
399 iso-accents-list table) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
400 (if key-translation-map |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
401 (substitute-key-definition |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
402 'iso-accents-accent-key nil key-translation-map) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
403 (setq key-translation-map (make-sparse-keymap))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
404 ;; Set up translations for all the characters that are used as |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
405 ;; accent prefixes in this language. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
406 (setq tail iso-accents-list) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
407 (while tail |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
408 (define-key key-translation-map (vector (car (car tail))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
409 'iso-accents-accent-key) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
410 (setq tail (cdr tail)))))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
411 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
412 (defun iso-accentuate (start end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
413 "Convert two-character sequences in region into accented characters. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
414 Noninteractively, this operates on text from START to END. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
415 This uses the same conversion that ISO Accents mode uses for type-in." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
416 (interactive "r") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
417 (save-excursion |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
418 (save-restriction |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
419 (narrow-to-region start end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
420 (goto-char start) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
421 (forward-char 1) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
422 (let (entry) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
423 (while (< (point) end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
424 (if (and (memq (preceding-char) iso-accents-enable) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
425 (setq entry (cdr (assq (following-char) (assq (preceding-char) iso-accents-list))))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
426 (progn |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
427 (forward-char -1) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
428 (delete-char 2) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
429 (insert entry) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
430 (setq end (1- end))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
431 (forward-char 1))))))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
432 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
433 (defun iso-accent-rassoc-unit (value alist) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
434 (let (elt acc) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
435 (while (and alist (not elt)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
436 (setq acc (car (car alist)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
437 elt (car (rassq value (cdr (car alist)))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
438 alist (cdr alist))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
439 (if elt |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
440 (cons acc elt)))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
441 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
442 (defun iso-unaccentuate (start end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
443 "Convert accented characters in the region into two-character sequences. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
444 Noninteractively, this operates on text from START to END. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
445 This uses the opposite of the conversion done by ISO Accents mode for type-in." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
446 (interactive "r") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
447 (save-excursion |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
448 (save-restriction |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
449 (narrow-to-region start end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
450 (goto-char start) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
451 (let (entry) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
452 (while (< (point) end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
453 (if (and (> (following-char) 127) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
454 (setq entry (iso-accent-rassoc-unit (following-char) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
455 iso-accents-list))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
456 (progn |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
457 (delete-char 1) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
458 (insert (car entry) (cdr entry)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
459 (setq end (1+ end))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
460 (forward-char 1))))))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
461 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
462 (defun iso-deaccentuate (start end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
463 "Convert accented characters in the region into unaccented characters. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
464 Noninteractively, this operates on text from START to END." |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
465 (interactive "r") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
466 (save-excursion |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
467 (save-restriction |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
468 (narrow-to-region start end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
469 (goto-char start) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
470 (let (entry) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
471 (while (< (point) end) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
472 (if (and (> (following-char) 127) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
473 (setq entry (iso-accent-rassoc-unit (following-char) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
474 iso-accents-list))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
475 (progn |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
476 (delete-char 1) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
477 (insert (cdr entry))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
478 (forward-char 1))))))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
479 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
480 ;; Set up the default settings. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
481 (iso-accents-customize "latin-1") |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
482 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
483 ;; Use Iso-Accents mode in the minibuffer |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
484 ;; if it was in use in the previous buffer. |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
485 (defun iso-acc-minibuf-setup () |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
486 (setq iso-accents-mode |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
487 (save-excursion |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
488 (set-buffer (window-buffer minibuffer-scroll-window)) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
489 iso-accents-mode))) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
490 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
491 (add-hook 'minibuffer-setup-hook 'iso-acc-minibuf-setup) |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
492 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
493 ;; arch-tag: 149ff409-7c3e-4574-9b5d-ac038939c0a6 |
cd592d9f000b
Move iso-acc to the obsolete subdir.
Stefan Monnier <monnier@iro.umontreal.ca>
parents:
diff
changeset
|
494 ;;; iso-acc.el ends here |