diff options
| author | Richard M. Stallman | 2002-07-21 20:24:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-07-21 20:24:38 +0000 |
| commit | 5b5b46b84153560bf0ae3335fde28c6a1dc8e247 (patch) | |
| tree | 167902a5a01015a8a3c7b0816cabb6ddd778cfd9 | |
| parent | 196a1cba666ecaad74e49d143489e3048605ab53 (diff) | |
| download | emacs-5b5b46b84153560bf0ae3335fde28c6a1dc8e247.tar.gz emacs-5b5b46b84153560bf0ae3335fde28c6a1dc8e247.zip | |
(ucs-quail-activate): Cope if buffer-file-coding-system is nil.
| -rw-r--r-- | lisp/international/ucs-tables.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/international/ucs-tables.el b/lisp/international/ucs-tables.el index e59e7b3872a..99307ae60ea 100644 --- a/lisp/international/ucs-tables.el +++ b/lisp/international/ucs-tables.el | |||
| @@ -2474,10 +2474,12 @@ Interactively, prompts for a hex string giving the code." | |||
| 2474 | (defun ucs-quail-activate () | 2474 | (defun ucs-quail-activate () |
| 2475 | "Set up an appropriate `translation-table-for-input' for current buffer. | 2475 | "Set up an appropriate `translation-table-for-input' for current buffer. |
| 2476 | Intended to be added to `quail-activate-hook'." | 2476 | Intended to be added to `quail-activate-hook'." |
| 2477 | (let ((cs (coding-system-base buffer-file-coding-system))) | 2477 | (let ((cs (and buffer-file-coding-system |
| 2478 | (coding-system-base buffer-file-coding-system)))) | ||
| 2478 | (if (eq cs 'undecided) | 2479 | (if (eq cs 'undecided) |
| 2479 | (setq cs (coding-system-base default-buffer-file-coding-system))) | 2480 | (setq cs (and default-buffer-file-coding-system |
| 2480 | (if (coding-system-get cs 'translation-table-for-input) | 2481 | (coding-system-base default-buffer-file-coding-system)))) |
| 2482 | (if (and cs (coding-system-get cs 'translation-table-for-input)) | ||
| 2481 | (set (make-variable-buffer-local 'translation-table-for-input) | 2483 | (set (make-variable-buffer-local 'translation-table-for-input) |
| 2482 | (coding-system-get cs 'translation-table-for-input))))) | 2484 | (coding-system-get cs 'translation-table-for-input))))) |
| 2483 | 2485 | ||