diff options
| author | Dave Love | 2003-01-03 20:16:56 +0000 |
|---|---|---|
| committer | Dave Love | 2003-01-03 20:16:56 +0000 |
| commit | b439e72aa87d4e3491ecdebc0c1aebbe0f48c9c1 (patch) | |
| tree | c4447b6f168bc3e020ce417f08c655fd9ef85fa6 | |
| parent | 13d472b8713781b30efecf43a3ffd9c657cff850 (diff) | |
| download | emacs-b439e72aa87d4e3491ecdebc0c1aebbe0f48c9c1.tar.gz emacs-b439e72aa87d4e3491ecdebc0c1aebbe0f48c9c1.zip | |
(sort-coding-systems): Adjust
priority of utf-16 and x-ctext.
| -rw-r--r-- | lisp/ChangeLog | 21 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 13 |
2 files changed, 32 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d17bda43850..b3ed666b25d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,24 @@ | |||
| 1 | 2003-01-03 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * international/mule-cmds.el (sort-coding-systems): Adjust | ||
| 4 | priority of utf-16 and x-ctext. | ||
| 5 | |||
| 6 | * international/utf-8.el (utf-translate-cjk): Call | ||
| 7 | optimize-char-coding-system-table. | ||
| 8 | |||
| 9 | * international/ucs-tables.el (ucs-unify-8859, ucs-fragment-8859): | ||
| 10 | Call optimize-char-coding-system-table. | ||
| 11 | |||
| 12 | * international/mule.el (register-char-codings): Don't call | ||
| 13 | optimize-char-coding-system-table here. | ||
| 14 | (keyboard-coding-system): Doc fix. Update :version. | ||
| 15 | |||
| 16 | * textmodes/nroff-mode.el (nroff-mode-hook): Customize. | ||
| 17 | (nroff-imenu-expression): New. | ||
| 18 | (nroff-mode): Use it. | ||
| 19 | |||
| 20 | * autoinsert.el (auto-insert-alist): Add man page skeleton. | ||
| 21 | |||
| 1 | 2003-01-03 Andre Spiegel <spiegel@gnu.org> | 22 | 2003-01-03 Andre Spiegel <spiegel@gnu.org> |
| 2 | 23 | ||
| 3 | * vc-rcs.el (vc-rcs-revert): Unlock only if the user does have | 24 | * vc-rcs.el (vc-rcs-revert): Unlock only if the user does have |
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index d5b7663c5f9..c70fa7a43a5 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -425,9 +425,18 @@ non-nil, it is used to sort CODINGS in the different way than above." | |||
| 425 | (let ((base (coding-system-base x))) | 425 | (let ((base (coding-system-base x))) |
| 426 | (+ (if (eq base most-preferred) 64 0) | 426 | (+ (if (eq base most-preferred) 64 0) |
| 427 | (let ((mime (coding-system-get base 'mime-charset))) | 427 | (let ((mime (coding-system-get base 'mime-charset))) |
| 428 | ;; Prefer coding systems corresponding to a | ||
| 429 | ;; MIME charset. | ||
| 428 | (if mime | 430 | (if mime |
| 429 | (if (string-match "^x-" (symbol-name mime)) | 431 | ;; Lower utf-16 priority so that we |
| 430 | 16 32) | 432 | ;; normally prefer utf-8 to it, and put |
| 433 | ;; x-ctext below that. | ||
| 434 | (cond ((or (eq base 'mule-utf-16-le) | ||
| 435 | (eq base 'mule-utf-16-be)) | ||
| 436 | 16) | ||
| 437 | ((string-match "^x-" (symbol-name mime)) | ||
| 438 | 8) | ||
| 439 | (t 32)) | ||
| 431 | 0)) | 440 | 0)) |
| 432 | (if (memq base lang-preferred) 8 0) | 441 | (if (memq base lang-preferred) 8 0) |
| 433 | (if (string-match "-with-esc$" (symbol-name base)) | 442 | (if (string-match "-with-esc$" (symbol-name base)) |