diff options
| author | Dave Love | 2002-07-04 23:05:18 +0000 |
|---|---|---|
| committer | Dave Love | 2002-07-04 23:05:18 +0000 |
| commit | a4cc68f6fce065e44c7c9668f6ec7f0b26acd688 (patch) | |
| tree | 27120768d099dad7c64b18e70e1743299e0a78da | |
| parent | cf8ba5800c7d37746186b3ee05c5c70bb67ea356 (diff) | |
| download | emacs-a4cc68f6fce065e44c7c9668f6ec7f0b26acd688.tar.gz emacs-a4cc68f6fce065e44c7c9668f6ec7f0b26acd688.zip | |
(find-coding-systems-region)
(language-info-alist, reset-language-environment, princ-list): Doc
fix.
(input-method-verbose-flag): Fix :type.
(set-locale-environment): Revert last change.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 34 |
2 files changed, 25 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 997953acb7e..915ce3862dc 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2002-07-05 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * international/mule-cmds.el (find-coding-systems-region) | ||
| 4 | (language-info-alist, reset-language-environment, princ-list): Doc | ||
| 5 | fix. | ||
| 6 | (input-method-verbose-flag): Fix :type. | ||
| 7 | (set-locale-environment): Revert last change. | ||
| 8 | |||
| 1 | 2002-07-03 Dave Love <fx@gnu.org> | 9 | 2002-07-03 Dave Love <fx@gnu.org> |
| 2 | 10 | ||
| 3 | * international/mule.el (set-char-table-default): Make obsolete. | 11 | * international/mule.el (set-char-table-default): Make obsolete. |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index fd2342c09be..06b6678b151 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -275,7 +275,7 @@ wrong, use this command again to toggle back to the right mode." | |||
| 275 | cmd (key-binding keyseq t)) | 275 | cmd (key-binding keyseq t)) |
| 276 | (not (eq cmd 'universal-argument-other-key))) | 276 | (not (eq cmd 'universal-argument-other-key))) |
| 277 | (let ((current-prefix-arg prefix-arg) | 277 | (let ((current-prefix-arg prefix-arg) |
| 278 | ;; Have to bind `last-command-char' here so that | 278 | ;; Have to bind `last-command-char' here so that |
| 279 | ;; `digit-argument', for isntance, can compute the | 279 | ;; `digit-argument', for isntance, can compute the |
| 280 | ;; prefix arg. | 280 | ;; prefix arg. |
| 281 | (last-command-char (aref keyseq 0))) | 281 | (last-command-char (aref keyseq 0))) |
| @@ -303,7 +303,7 @@ This sets the following coding systems: | |||
| 303 | o coding system of a newly created buffer | 303 | o coding system of a newly created buffer |
| 304 | o default coding system for subprocess I/O | 304 | o default coding system for subprocess I/O |
| 305 | This also sets the following values: | 305 | This also sets the following values: |
| 306 | o default value used as file-name-coding-system for converting file names. | 306 | o default value used as `file-name-coding-system' for converting file names. |
| 307 | o default value for the command `set-terminal-coding-system' (not on MSDOS) | 307 | o default value for the command `set-terminal-coding-system' (not on MSDOS) |
| 308 | o default value for the command `set-keyboard-coding-system'." | 308 | o default value for the command `set-keyboard-coding-system'." |
| 309 | (check-coding-system coding-system) | 309 | (check-coding-system coding-system) |
| @@ -412,6 +412,7 @@ non-nil, it is used to sort CODINGS in the different way than above." | |||
| 412 | 412 | ||
| 413 | (defun find-coding-systems-region (from to) | 413 | (defun find-coding-systems-region (from to) |
| 414 | "Return a list of proper coding systems to encode a text between FROM and TO. | 414 | "Return a list of proper coding systems to encode a text between FROM and TO. |
| 415 | If FROM is a string, find coding systems in that instead of the buffer. | ||
| 415 | All coding systems in the list can safely encode any multibyte characters | 416 | All coding systems in the list can safely encode any multibyte characters |
| 416 | in the text. | 417 | in the text. |
| 417 | 418 | ||
| @@ -727,9 +728,9 @@ Meaningful values for KEY include | |||
| 727 | is meant for, and how to use it. | 728 | is meant for, and how to use it. |
| 728 | charset value is a list of the character sets used by this | 729 | charset value is a list of the character sets used by this |
| 729 | language environment. | 730 | language environment. |
| 730 | sample-text value is one line of text, | 731 | sample-text value is an expression which is evalled to generate |
| 731 | written using those character sets, | 732 | a line of text written using characters appropriate |
| 732 | appropriate for this language environment. | 733 | for this language environment. |
| 733 | setup-function value is a function to call to switch to this | 734 | setup-function value is a function to call to switch to this |
| 734 | language environment. | 735 | language environment. |
| 735 | exit-function value is a function to call to leave this | 736 | exit-function value is a function to call to leave this |
| @@ -806,7 +807,7 @@ ALIST is an alist of KEY and INFO values. See the documentation of | |||
| 806 | `language-info-alist' for the meanings of KEY and INFO. | 807 | `language-info-alist' for the meanings of KEY and INFO. |
| 807 | 808 | ||
| 808 | Optional arg PARENTS is a list of parent menu names; it specifies | 809 | Optional arg PARENTS is a list of parent menu names; it specifies |
| 809 | where to put this language environment in the | 810 | where to put this language environment in the |
| 810 | Describe Language Environment and Set Language Environment menus. | 811 | Describe Language Environment and Set Language Environment menus. |
| 811 | For example, (\"European\") means to put this language environment | 812 | For example, (\"European\") means to put this language environment |
| 812 | in the European submenu in each of those two menus." | 813 | in the European submenu in each of those two menus." |
| @@ -873,7 +874,7 @@ This returns a language environment name as a string." | |||
| 873 | name))) | 874 | name))) |
| 874 | 875 | ||
| 875 | ;;; Multilingual input methods. | 876 | ;;; Multilingual input methods. |
| 876 | (defgroup leim nil | 877 | (defgroup leim nil |
| 877 | "LEIM: Libraries of Emacs Input Methods." | 878 | "LEIM: Libraries of Emacs Input Methods." |
| 878 | :group 'mule) | 879 | :group 'mule) |
| 879 | 880 | ||
| @@ -1126,7 +1127,7 @@ and enable that one. The default is the most recent input method specified | |||
| 1126 | default t)) | 1127 | default t)) |
| 1127 | default)) | 1128 | default)) |
| 1128 | (unless default-input-method | 1129 | (unless default-input-method |
| 1129 | (prog1 | 1130 | (prog1 |
| 1130 | (setq default-input-method current-input-method) | 1131 | (setq default-input-method current-input-method) |
| 1131 | (when (interactive-p) | 1132 | (when (interactive-p) |
| 1132 | (customize-mark-as-set 'default-input-method))))))) | 1133 | (customize-mark-as-set 'default-input-method))))))) |
| @@ -1153,7 +1154,7 @@ and enable that one. The default is the most recent input method specified | |||
| 1153 | (activate-input-method input-method) | 1154 | (activate-input-method input-method) |
| 1154 | (describe-current-input-method)) | 1155 | (describe-current-input-method)) |
| 1155 | (activate-input-method current)) | 1156 | (activate-input-method current)) |
| 1156 | (error | 1157 | (error |
| 1157 | (activate-input-method current) | 1158 | (activate-input-method current) |
| 1158 | (help-setup-xref (list #'describe-input-method input-method) | 1159 | (help-setup-xref (list #'describe-input-method input-method) |
| 1159 | (interactive-p)) | 1160 | (interactive-p)) |
| @@ -1219,7 +1220,8 @@ guidance, but simple input methods give it only when you are not in | |||
| 1219 | the minibuffer. | 1220 | the minibuffer. |
| 1220 | 1221 | ||
| 1221 | See also the variable `input-method-highlight-flag'." | 1222 | See also the variable `input-method-highlight-flag'." |
| 1222 | :type '(choice (const t) (const nil) (const complex-only) (const default)) | 1223 | :type '(choice (const :tag "Always" t) (const :tag "Never" nil) |
| 1224 | (const complex-only) (const default)) | ||
| 1223 | :group 'mule) | 1225 | :group 'mule) |
| 1224 | 1226 | ||
| 1225 | (defcustom input-method-highlight-flag t | 1227 | (defcustom input-method-highlight-flag t |
| @@ -1324,7 +1326,7 @@ to using the function `set-language-environment'." | |||
| 1324 | 1326 | ||
| 1325 | The default status is as follows: | 1327 | The default status is as follows: |
| 1326 | 1328 | ||
| 1327 | The default value of buffer-file-coding-system is nil. | 1329 | The default value of `buffer-file-coding-system' is nil. |
| 1328 | The default coding system for process I/O is nil. | 1330 | The default coding system for process I/O is nil. |
| 1329 | The default value for the command `set-terminal-coding-system' is nil. | 1331 | The default value for the command `set-terminal-coding-system' is nil. |
| 1330 | The default value for the command `set-keyboard-coding-system' is nil. | 1332 | The default value for the command `set-keyboard-coding-system' is nil. |
| @@ -1500,8 +1502,8 @@ of buffer-file-coding-system set by this function." | |||
| 1500 | (setq default-sendmail-coding-system default-coding) | 1502 | (setq default-sendmail-coding-system default-coding) |
| 1501 | (apply 'set-coding-system-priority priority)))) | 1503 | (apply 'set-coding-system-priority priority)))) |
| 1502 | 1504 | ||
| 1503 | ;; Print all arguments with `princ', then print "\n". | ||
| 1504 | (defsubst princ-list (&rest args) | 1505 | (defsubst princ-list (&rest args) |
| 1506 | "Print all arguments with `princ', then print \"\n\"." | ||
| 1505 | (while args (princ (car args)) (setq args (cdr args))) | 1507 | (while args (princ (car args)) (setq args (cdr args))) |
| 1506 | (princ "\n")) | 1508 | (princ "\n")) |
| 1507 | 1509 | ||
| @@ -1868,10 +1870,8 @@ XX is a country, and CODE specifies a character set and coding system. | |||
| 1868 | For example, the locale name \"ja_JP.EUC\" might name a locale | 1870 | For example, the locale name \"ja_JP.EUC\" might name a locale |
| 1869 | for Japanese in Japan using the `japanese-iso-8bit' coding-system. | 1871 | for Japanese in Japan using the `japanese-iso-8bit' coding-system. |
| 1870 | 1872 | ||
| 1871 | If LOCALE-NAME is nil, its value is looked up via `locale-codeset' | 1873 | If LOCALE-NAME is nil, its value is taken from the environment |
| 1872 | using nl_langinfo(3), if that function is available in the system's | 1874 | variables LC_ALL, LC_CTYPE and LANG (the first one that is set). |
| 1873 | library, otherwise it is simply taken from the environment variables | ||
| 1874 | LC_ALL, LC_CTYPE and LANG \(the first one that is set). | ||
| 1875 | 1875 | ||
| 1876 | The locale names supported by your system can typically be found in a | 1876 | The locale names supported by your system can typically be found in a |
| 1877 | directory named `/usr/share/locale' or `/usr/lib/locale'. LOCALE-NAME | 1877 | directory named `/usr/share/locale' or `/usr/lib/locale'. LOCALE-NAME |
| @@ -1898,7 +1898,7 @@ See also `locale-charset-language-names', `locale-language-names', | |||
| 1898 | (setq files (cdr files))) | 1898 | (setq files (cdr files))) |
| 1899 | (car files))) | 1899 | (car files))) |
| 1900 | 1900 | ||
| 1901 | (let ((locale (or locale-name (locale-codeset)))) | 1901 | (let ((locale locale-name)) |
| 1902 | 1902 | ||
| 1903 | (unless locale | 1903 | (unless locale |
| 1904 | ;; Use the first of these three environment variables | 1904 | ;; Use the first of these three environment variables |