diff options
| author | Stefan Monnier | 2002-09-19 04:58:46 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-09-19 04:58:46 +0000 |
| commit | 3da91622f43bd4f62edfcc0c3e9aeba44e6912a0 (patch) | |
| tree | 2eb6b097cefee245f24eb25ae2fa80246a870164 | |
| parent | e006b3cd93b56b93ec65e884a8c19efc7b3e0dbe (diff) | |
| download | emacs-3da91622f43bd4f62edfcc0c3e9aeba44e6912a0.tar.gz emacs-3da91622f43bd4f62edfcc0c3e9aeba44e6912a0.zip | |
(unify-8859-on-encoding-mode): Set init value to t to reflect reality.
(ucs-minibuffer-setup): Use minibuffer-selected-window.
| -rw-r--r-- | lisp/international/ucs-tables.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/international/ucs-tables.el b/lisp/international/ucs-tables.el index a56daa83511..15c9e1b52e9 100644 --- a/lisp/international/ucs-tables.el +++ b/lisp/international/ucs-tables.el | |||
| @@ -1254,7 +1254,7 @@ input method to search for e-acute in a Latin-1 buffer. | |||
| 1254 | See also command `unify-8859-on-decoding-mode'." | 1254 | See also command `unify-8859-on-decoding-mode'." |
| 1255 | :group 'mule | 1255 | :group 'mule |
| 1256 | :global t | 1256 | :global t |
| 1257 | :init-value nil | 1257 | :init-value t |
| 1258 | (if unify-8859-on-encoding-mode | 1258 | (if unify-8859-on-encoding-mode |
| 1259 | (ucs-unify-8859 t) | 1259 | (ucs-unify-8859 t) |
| 1260 | (ucs-fragment-8859 t))) | 1260 | (ucs-fragment-8859 t))) |
| @@ -2482,10 +2482,11 @@ Intended to be added to `quail-activate-hook'." | |||
| 2482 | ;; the above to work in it. | 2482 | ;; the above to work in it. |
| 2483 | (defun ucs-minibuffer-setup () | 2483 | (defun ucs-minibuffer-setup () |
| 2484 | "Set up an appropriate `buffer-file-coding-system' for current buffer. | 2484 | "Set up an appropriate `buffer-file-coding-system' for current buffer. |
| 2485 | Does so by inheriting it from the cadr of the current buffer list. | ||
| 2486 | Intended to be added to `minibuffer-setup-hook'." | 2485 | Intended to be added to `minibuffer-setup-hook'." |
| 2487 | (set (make-local-variable 'buffer-file-coding-system) | 2486 | (set (make-local-variable 'buffer-file-coding-system) |
| 2488 | (with-current-buffer (cadr (buffer-list)) | 2487 | (with-current-buffer (let ((win (minibuffer-selected-window))) |
| 2488 | (if (window-live-p win) (window-buffer win) | ||
| 2489 | (cadr (buffer-list)))) | ||
| 2489 | buffer-file-coding-system))) | 2490 | buffer-file-coding-system))) |
| 2490 | 2491 | ||
| 2491 | ;; Modified to allow display of arbitrary characters with an | 2492 | ;; Modified to allow display of arbitrary characters with an |