Mercurial > emacs
changeset 88834:33e7b82de8fc
(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.
author | Dave Love <fx@gnu.org> |
---|---|
date | Thu, 04 Jul 2002 23:04:39 +0000 |
parents | 329570b3e59d |
children | a6a099ae2ec2 |
files | lisp/international/mule-cmds.el |
diffstat | 1 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/international/mule-cmds.el Wed Jul 03 22:47:08 2002 +0000 +++ b/lisp/international/mule-cmds.el Thu Jul 04 23:04:39 2002 +0000 @@ -275,7 +275,7 @@ cmd (key-binding keyseq t)) (not (eq cmd 'universal-argument-other-key))) (let ((current-prefix-arg prefix-arg) - ;; Have to bind `last-command-char' here so that + ;; Have to bind `last-command-char' here so that ;; `digit-argument', for isntance, can compute the ;; prefix arg. (last-command-char (aref keyseq 0))) @@ -303,7 +303,7 @@ o coding system of a newly created buffer o default coding system for subprocess I/O This also sets the following values: - o default value used as file-name-coding-system for converting file names. + o default value used as `file-name-coding-system' for converting file names. o default value for the command `set-terminal-coding-system' (not on MSDOS) o default value for the command `set-keyboard-coding-system'." (check-coding-system coding-system) @@ -412,6 +412,7 @@ (defun find-coding-systems-region (from to) "Return a list of proper coding systems to encode a text between FROM and TO. +If FROM is a string, find coding systems in that instead of the buffer. All coding systems in the list can safely encode any multibyte characters in the text. @@ -727,9 +728,9 @@ is meant for, and how to use it. charset value is a list of the character sets used by this language environment. - sample-text value is one line of text, - written using those character sets, - appropriate for this language environment. + sample-text value is an expression which is evalled to generate + a line of text written using characters appropriate + for this language environment. setup-function value is a function to call to switch to this language environment. exit-function value is a function to call to leave this @@ -806,7 +807,7 @@ `language-info-alist' for the meanings of KEY and INFO. Optional arg PARENTS is a list of parent menu names; it specifies -where to put this language environment in the +where to put this language environment in the Describe Language Environment and Set Language Environment menus. For example, (\"European\") means to put this language environment in the European submenu in each of those two menus." @@ -873,7 +874,7 @@ name))) ;;; Multilingual input methods. -(defgroup leim nil +(defgroup leim nil "LEIM: Libraries of Emacs Input Methods." :group 'mule) @@ -1126,7 +1127,7 @@ default t)) default)) (unless default-input-method - (prog1 + (prog1 (setq default-input-method current-input-method) (when (interactive-p) (customize-mark-as-set 'default-input-method))))))) @@ -1153,7 +1154,7 @@ (activate-input-method input-method) (describe-current-input-method)) (activate-input-method current)) - (error + (error (activate-input-method current) (help-setup-xref (list #'describe-input-method input-method) (interactive-p)) @@ -1219,7 +1220,8 @@ the minibuffer. See also the variable `input-method-highlight-flag'." - :type '(choice (const t) (const nil) (const complex-only) (const default)) + :type '(choice (const :tag "Always" t) (const :tag "Never" nil) + (const complex-only) (const default)) :group 'mule) (defcustom input-method-highlight-flag t @@ -1324,7 +1326,7 @@ The default status is as follows: - The default value of buffer-file-coding-system is nil. + The default value of `buffer-file-coding-system' is nil. The default coding system for process I/O is nil. The default value for the command `set-terminal-coding-system' is nil. The default value for the command `set-keyboard-coding-system' is nil. @@ -1500,8 +1502,8 @@ (setq default-sendmail-coding-system default-coding) (apply 'set-coding-system-priority priority)))) -;; Print all arguments with `princ', then print "\n". (defsubst princ-list (&rest args) + "Print all arguments with `princ', then print \"\n\"." (while args (princ (car args)) (setq args (cdr args))) (princ "\n")) @@ -1868,10 +1870,8 @@ For example, the locale name \"ja_JP.EUC\" might name a locale for Japanese in Japan using the `japanese-iso-8bit' coding-system. -If LOCALE-NAME is nil, its value is looked up via `locale-codeset' -using nl_langinfo(3), if that function is available in the system's -library, otherwise it is simply taken from the environment variables -LC_ALL, LC_CTYPE and LANG \(the first one that is set). +If LOCALE-NAME is nil, its value is taken from the environment +variables LC_ALL, LC_CTYPE and LANG (the first one that is set). The locale names supported by your system can typically be found in a directory named `/usr/share/locale' or `/usr/lib/locale'. LOCALE-NAME @@ -1898,7 +1898,7 @@ (setq files (cdr files))) (car files))) - (let ((locale (or locale-name (locale-codeset)))) + (let ((locale locale-name)) (unless locale ;; Use the first of these three environment variables