1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00
Commit Graph

145 Commits

Author SHA1 Message Date
Kenichi Handa
038f27a72e (select-safe-coding-system): If FROM is string, show it in *Warning*
buffer.
2000-10-13 00:43:30 +00:00
Dave Love
0812c1e828 (set-locale-environment): Doc fix. 2000-09-12 13:32:06 +00:00
Kenichi Handa
d0c40faabe (help-xref-mule-regexp-template):
Include the pattern for character set.
(leim): New group.
2000-09-07 02:38:07 +00:00
Kenichi Handa
464cc13084 (help-xref-mule-regexp-template): New variable.
(describe-input-method): Temporarily activate the specfied input
method to display the information.
(describe-language-environment): Hyperlinks to mule related items.
2000-08-29 05:37:48 +00:00
Kenichi Handa
0c47a7c83d (reset-language-environment): Set default-process-coding-system to
'(undecided . iso-latin-1), which makes process I/O almost consistent
with file I/O.  Call this function when mule-cmds.el[c] is loaded.
2000-08-24 02:10:05 +00:00
Eli Zaretskii
2f1fa038c8 (select-safe-coding-system): Make
the message text about selecting a safe coding system more clear.
2000-08-03 11:38:08 +00:00
Kenichi Handa
b5edd1d103 (find-coding-systems-region-subset-p): This function deleted.
(sort-coding-systems-predicate): New variable.
(sort-coding-systems): New function.
(find-coding-systems-region): Use
find-coding-systems-region-internal.
(find-coding-systems-string): Use find-coding-systems-region.
(find-coding-systems-for-charsets): Check
char-coding-system-table.
(select-safe-coding-system-accept-default-p): New variable.
(select-safe-coding-system): Mostly rewritten.  New argument
ACCEPT-DEFAULT-P.
(select-message-coding-system): Call select-safe-coding-system
with ACCEPT-DEFAULT-P arg.
(reset-language-environment): Reset default-sendmail-coding-system
to the default value iso-latin-1.
(set-language-environment): Don't set the obsolete variable
charset-origin-alist.
2000-07-27 06:09:25 +00:00
Kenichi Handa
1999efa21a (select-safe-coding-system): Fix typo in the comment. 2000-07-18 11:13:55 +00:00
Kenichi Handa
98c6d6edf3 (set-language-info-alist): Docstring fixed. 2000-06-21 07:35:25 +00:00
Dave Love
e56d790092 (select-safe-coding-system): If
DEFAULT-CODING-SYSTEM is not specified, also check the most
preferred coding-system if buffer-file-coding-system is
`undecided'.  From handa.
2000-06-08 15:54:26 +00:00
Stefan Monnier
2598a293ae Update calls to make-obsolete with a WHEN argument. 2000-06-01 05:07:32 +00:00
Kenichi Handa
bd95317329 (encode-coding-char): Make strings
multibyte before calling encode-coding-string.
2000-05-26 02:39:09 +00:00
Kenichi Handa
14333e317b (find-multibyte-characters): Never
exclude charsets eight-bit-control and eight-bit-graphic.
2000-05-20 00:11:06 +00:00
Kenichi Handa
8c9d55a949 (encode-coding-char): An ASCII character is always encodable. 2000-05-13 00:34:05 +00:00
Eli Zaretskii
9deed82f09 (set-language-info-alist): Call define-prefix-command with 3 arguments,
to make the map suitable for a menu.
2000-05-08 11:44:29 +00:00
Eli Zaretskii
d9c0a50ef0 (set-language-environment): Don't
concat an integer (dos-codepage), use format instead.
2000-05-02 11:55:50 +00:00
Dave Love
0d7c5bb952 (locale-translation-file-name):
Defvar to nil.
(set-locale-environment): Set it here (at runtime).
2000-04-25 23:16:28 +00:00
Kenichi Handa
5de75f53b1 (encoded-string-description): Use uppercase letters for hexadecimal
format.
2000-04-03 11:11:58 +00:00
Kenichi Handa
993b2a7dd4 (encoded-string-description):
Rewritten.   Try pretty description for ISO 2022 escape sequences
only if CODING-SYSTEM is based on ISO 2022.
2000-04-03 04:05:41 +00:00
Dave Love
cda74479bb Various menu changes.
(describe-specified-language-support): Handle `Default'.
(set-language-info): Purecopy `info'.
2000-04-01 11:54:49 +00:00
Kenichi Handa
9bfcd26931 (reset-language-environment): Include
coding-category-utf-8, coding-category-utf-16-be, and
coding-category-utf-16-le in the argument for set-coding-priority.
(reset-language-environment): Initialize coding-category-utf-8,
coding-category-utf-16-be, and coding-category-utf-16-le to nil.
2000-03-07 06:16:04 +00:00
Eli Zaretskii
538d88fb93 (mule-menu-keymap)
(describe-language-environment-map, set-coding-system-map)
(setup-language-environment-map): Convert to new (menu-item...
form, add help strings.  Change names of menu items for better
clarity.  "Mule" menu-bar item removed (it's now in the "Options"
submenu).
2000-02-17 11:10:31 +00:00
Kenichi Handa
5b8d2ff502 (encode-coding-char): Don't check
composite character.
1999-12-15 00:41:22 +00:00
Gerd Moellmann
5806e8a61d (default-input-method): Specify
that it should be set after current-language-environment.
1999-12-14 13:00:09 +00:00
Kenichi Handa
bf294e6edb (read-input-method-name): Handle the
case that the arg DEFAULT is symbol.
1999-10-26 13:01:20 +00:00
Paul Eggert
6ececc4d6e * (locale-language-names):
Use Latin-1 (not Latin-3) for Afrikaans, Galician.
Use Latin-5 (not Cyrillic-ISO) for Byelorussian, Bulgarian,
Macedonian, Russian, Ukrainian, Serbian (Cyrillic alphabet).
Use Latin-8 for Welsh.
Use Latin-1 for English if "en" is explicitly specified.
Use Latin-1 for Scots Gaelic, Tagalog.
Use Latin-1 (not Latin-4) for Greenlandic.
Use Latin-1 (not Latin-2) for Albanian.
(locale-preferred-coding-systems, locale-language-names):
Remove generic ISO 8859 locales; locale-charset-language-names now
does this.
(locale-charset-language-names): New variable.
(set-locale-environment): Use language name specified by
locale-charset-language-names if its charsets disagree with the
language name specified by locale-language-names.
1999-10-22 22:51:33 +00:00
Paul Eggert
40c81f74c3 * international/mule-cmds.el (global-map):
Do not use backquote, because that makes a bootstrapping
problem if you need to recompile all Lisp files using interpreted code.
* international/mule.el (charset-id, charset-bytes,
charset-dimension, charset-chars, charset-width,
charset-direction, charset-iso-final-char,
charset-iso-graphic-plane, charset-reverse-charset,
charset-short-name, charset-long-name, charset-description,
charset-plist): Likewise.

* international/mule-cmds.el
(set-display-table-and-terminal-coding-system): New function,
containing code migrated out of set-language-environment.
(set-language-environment, set-locale-environment): Use it.
(locale-translation-file-name): Moved here from startup.el.
(locale-language-names, locale-preferred-coding-systems):
New vars.
(locale-name-match, set-locale-environment): New functions.
1999-10-19 07:20:09 +00:00
Stefan Monnier
2e2246388b (select-safe-coding-system, leim-list-header): avoid the use of strings
that start with backslash newline since lread.c:read1 has a hack to turn
those strings into integer 0 during the loadup.el process.
1999-10-13 22:45:28 +00:00
Kenichi Handa
f2979bdbdc (describe-current-input-method):
Current-input-method is string.
(toggle-input-method): Docstring fixed.
1999-06-17 12:11:46 +00:00
Kenichi Handa
0e0a9ac30d (find-coding-systems-for-charsets):
Typo fixed; prefered->preferred.
1999-05-26 12:27:38 +00:00
Kenichi Handa
33d17698ff Change MULE to Mule in docstrings and menus. 1999-05-14 00:33:27 +00:00
Karl Heuer
0f835e871c (input-method-function): Add permanent-local property. 1999-04-12 18:25:26 +00:00
Karl Heuer
ebef6d9376 (current-language-environment): Doc fix. 1999-03-30 21:38:20 +00:00
Eli Zaretskii
4e2ac2d940 (set-language-environment): Fix
previous change: don't use dos-codepage when unbound.
1999-03-17 11:29:05 +00:00
Eli Zaretskii
ec241f58e0 (set-language-environment): Don't use
cpNNN-nonascii-translation-table if it is unbound.
1999-03-16 14:18:40 +00:00
Kenichi Handa
fcdc4d6764 (select-safe-coding-system): Be sure
to show a buffer being decoded.
1999-02-27 04:28:31 +00:00
Kenichi Handa
a127b764e2 (iso-2022-control-alist): New variable.
(encoded-code-description): New function.
(encoded-string-description): New function.
(encode-coding-char): New function.
1999-02-25 13:26:55 +00:00
Kenichi Handa
57a6f75751 (language-info-alist): Remove description about charset-origin-alist. 1999-02-12 07:48:52 +00:00
Dave Love
94d04df6d2 (current-language-environment):
Provide :link, :type (choices) and appropriate :get.
1999-01-27 20:22:42 +00:00
Richard M. Stallman
265519e3f7 (select-safe-coding-system): Hightlight at most 256 characters. 1999-01-19 03:07:53 +00:00
Kenichi Handa
00a069c647 (describe-language-environment):
Don't alter input-method-alist.
1999-01-14 01:20:35 +00:00
Eli Zaretskii
812cad8048 (prefer-coding-system): Call set-coding-priority, so that the internal
array of priorities is also updated.
1999-01-06 10:32:34 +00:00
Eli Zaretskii
26d8704095 (coding-system-change-eol-conversion,
coding-system-change-text-conversion): Define them here.  Remove the
autoload cookies.
1999-01-06 10:25:34 +00:00
Eli Zaretskii
6f9dc4fd9e (prefer-coding-system): Fix previous change. 1998-12-31 05:44:40 +00:00
Eli Zaretskii
bd3ac67e7b (prefer-coding-system): If the argument requires specific EOL conversion
type, make the default coding systems use that.
1998-12-30 17:21:44 +00:00
Eli Zaretskii
dcad02bc0c Use make-sparse-keymap instead of define-prefix-key when defining
MULE menu items.
1998-12-21 11:24:39 +00:00
Eli Zaretskii
03c35c8308 (set-language-environment): On MS-DOS
terminals, install DOS-specific nonascii-translation-table if the
language info doesn't specify one.  Pass the default eol-type to
set-language-environment-coding-systems.
(set-default-coding-systems): Copy the eol-type property for the
new default values of {buffer-file,process}-coding-system from the
old defaults.
(set-language-environment-coding-systems): Accept an optional
argument EOL-TYPE, and set the eol-type property of the default
coding systems accordingly.
(set-terminal-coding-system): Enable menu item on MS-DOS terminals.
(set-keyboard-coding-system): Likewise.
(set-default-coding-systems): Don't set
default-terminal-coding-system on MS-DOS to anything but nil.
(prefer-coding-system): Describe in the doc string that
default-terminal-coding-system is not changed on MS-DOS.
(set-language-environment): For MS-DOS, set standard syntax table
and display table for all characters with code above 127.
(standard-display-european-internal): For MS-DOS, pass all
characters with code above 127 directly to the terminal, and don't
remap characters 160 and 146 in the unibyte case.
1998-12-17 17:12:56 +00:00
Kenichi Handa
251d4f4bf9 (find-coding-systems-for-charsets):
Handle the case of unknown charset.
(find-multibyte-characters): If invalid multibyte characters are
found, return the corresponding strings instead of character
codes.
(find-multibyte-characters): Adjusted for the above change.
(select-safe-coding-system): For a unibyte buffer, always returns
DEFAULT-CODING-SYSTEM.
(get-charset-property): Fix previous change.  Make it a function.
(put-charset-property): Make it a function.
1998-12-15 04:35:38 +00:00
Andreas Schwab
48e411652a (select-message-coding-system): Doc
fix.
1998-10-30 10:56:15 +00:00
Kenichi Handa
1300d43f6c (get-charset-property): If CHARSET is
composition, return nil.
(put-charset-property): If CHARSET is composition, do nothing.
1998-10-21 11:50:56 +00:00