diff options
| author | Stefan Monnier | 2002-03-17 20:50:48 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-03-17 20:50:48 +0000 |
| commit | 2154a29765fbd87edf495b1db960e8a90d1be9bc (patch) | |
| tree | b19dafde844443c71a68f1ca66e7f61c1da8d614 | |
| parent | 1f3d429d7346f26dfb686884546271784105f938 (diff) | |
| download | emacs-2154a29765fbd87edf495b1db960e8a90d1be9bc.tar.gz emacs-2154a29765fbd87edf495b1db960e8a90d1be9bc.zip | |
(ucs-unify-8859, ucs-fragment-8859): Use unify-8859-on-decoding-mode.
(unify-8859-on-decoding-mode): Also set translation-table-for-input.
(ucs-insert): Give an error if the unicode char can't be created.
| -rw-r--r-- | lisp/ChangeLog | 72 | ||||
| -rw-r--r-- | lisp/international/ucs-tables.el | 25 |
2 files changed, 65 insertions, 32 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c96fa75048c..fbaa35baefb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2002-03-17 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * international/ucs-tables.el (ucs-unify-8859, ucs-fragment-8859): | ||
| 4 | Use unify-8859-on-decoding-mode. | ||
| 5 | (unify-8859-on-decoding-mode): Also set translation-table-for-input. | ||
| 6 | (ucs-insert): Give an error if the unicode char can't be created. | ||
| 7 | |||
| 8 | * pcvs-parse.el (cvs-parse-table): Be a bit more lenient. | ||
| 9 | (cvs-parse-status): Handle the "used to have a conflict" marker. | ||
| 10 | |||
| 1 | 2002-03-17 Kim F. Storm <storm@cua.dk> | 11 | 2002-03-17 Kim F. Storm <storm@cua.dk> |
| 2 | 12 | ||
| 3 | The following changes are related to the enhanced network process | 13 | The following changes are related to the enhanced network process |
| @@ -5,12 +15,11 @@ | |||
| 5 | 15 | ||
| 6 | * simple.el: Update copyright. | 16 | * simple.el: Update copyright. |
| 7 | (clone-process): Use make-network-process to clone network | 17 | (clone-process): Use make-network-process to clone network |
| 8 | processes. Get command list via (process-contact ... t). | 18 | processes. Get command list via (process-contact ... t). |
| 9 | Use set-process-query-on-exit-flag and process-query-on-exit-flag | 19 | Use set-process-query-on-exit-flag and process-query-on-exit-flag |
| 10 | instead of process-kill-without-query. | 20 | instead of process-kill-without-query. |
| 11 | (open-network-stream): Replaces C-version from process.c. | 21 | (open-network-stream): Replaces C-version from process.c. |
| 12 | (open-network-stream-nowait, open-network-stream-server): New | 22 | (open-network-stream-nowait, open-network-stream-server): New funs. |
| 13 | functions. | ||
| 14 | (process-kill-without-query): Replaces C-version from process.c. | 23 | (process-kill-without-query): Replaces C-version from process.c. |
| 15 | 24 | ||
| 16 | * files.el: Update copyright. | 25 | * files.el: Update copyright. |
| @@ -50,6 +59,11 @@ | |||
| 50 | * bindings.el (mode-line-mule-info): In computing help-echo prop, | 59 | * bindings.el (mode-line-mule-info): In computing help-echo prop, |
| 51 | avoid using save-window-excursion. And compile the function. | 60 | avoid using save-window-excursion. And compile the function. |
| 52 | 61 | ||
| 62 | 2002-03-15 Stefan Monnier <monnier@cs.yale.edu> | ||
| 63 | |||
| 64 | * files.el (load-completion): New function. | ||
| 65 | (load-library): Use it. | ||
| 66 | |||
| 53 | 2002-03-15 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 67 | 2002-03-15 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 54 | 68 | ||
| 55 | * calendar/cal-french.el (calendar-goto-french-date): Fix prompt | 69 | * calendar/cal-french.el (calendar-goto-french-date): Fix prompt |
| @@ -57,8 +71,8 @@ | |||
| 57 | 71 | ||
| 58 | 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il> | 72 | 2002-03-15 Eli Zaretskii <eliz@is.elta.co.il> |
| 59 | 73 | ||
| 60 | * textmodes/po.el (po-find-file-coding-system-guts): Use | 74 | * textmodes/po.el (po-find-file-coding-system-guts): |
| 61 | with-temp-buffer instead of po-with-temp-buffer. | 75 | Use with-temp-buffer instead of po-with-temp-buffer. |
| 62 | 76 | ||
| 63 | * international/mule-conf.el (file-coding-system-alist): Add an | 77 | * international/mule-conf.el (file-coding-system-alist): Add an |
| 64 | association for PO files. | 78 | association for PO files. |
| @@ -77,9 +91,9 @@ | |||
| 77 | 2002-03-14 Richard M. Stallman <rms@gnu.org> | 91 | 2002-03-14 Richard M. Stallman <rms@gnu.org> |
| 78 | 92 | ||
| 79 | * textmodes/picture.el (picture-insert) | 93 | * textmodes/picture.el (picture-insert) |
| 80 | (picture-clear-column, picture-draw-rectangle): | 94 | (picture-clear-column, picture-draw-rectangle): |
| 81 | Use move-to-column, not move-to-column-force. | 95 | Use move-to-column, not move-to-column-force. |
| 82 | 96 | ||
| 83 | * dired.el (dired-readin): Clear out undo list. | 97 | * dired.el (dired-readin): Clear out undo list. |
| 84 | (dired-fun-in-all-buffers): Definition moved from dired-aux.el. | 98 | (dired-fun-in-all-buffers): Definition moved from dired-aux.el. |
| 85 | (dired-delete-entry): New function. | 99 | (dired-delete-entry): New function. |
| @@ -87,12 +101,12 @@ | |||
| 87 | and dired-delete-entry, to update this buffer (and others). | 101 | and dired-delete-entry, to update this buffer (and others). |
| 88 | 102 | ||
| 89 | * dired-aux.el (dired-fun-in-all-buffers): Moved to dired.el. | 103 | * dired-aux.el (dired-fun-in-all-buffers): Moved to dired.el. |
| 90 | 104 | ||
| 91 | * facemenu.el (facemenu-add-new-face): | 105 | * facemenu.el (facemenu-add-new-face): |
| 92 | Pass region args to facemenu-set-face, when there is a region. | 106 | Pass region args to facemenu-set-face, when there is a region. |
| 93 | (facemenu-set-foreground, facemenu-set-background) | 107 | (facemenu-set-foreground, facemenu-set-background) |
| 94 | (facemenu-add-face): Doc fixes. | 108 | (facemenu-add-face): Doc fixes. |
| 95 | 109 | ||
| 96 | * progmodes/cperl-mode.el (cperl-outline-regexp): Move definition up. | 110 | * progmodes/cperl-mode.el (cperl-outline-regexp): Move definition up. |
| 97 | 111 | ||
| 98 | 2002-03-14 Miles Bader <miles@gnu.org> | 112 | 2002-03-14 Miles Bader <miles@gnu.org> |
| @@ -105,10 +119,30 @@ | |||
| 105 | (rlogin): Don't install the `rlogin-carriage-filter' filter, as | 119 | (rlogin): Don't install the `rlogin-carriage-filter' filter, as |
| 106 | comint removes carriage returns itself now. | 120 | comint removes carriage returns itself now. |
| 107 | 121 | ||
| 108 | * rfn-eshadow.el (rfn-eshadow-update-overlay): Bind | 122 | * rfn-eshadow.el (rfn-eshadow-update-overlay): |
| 109 | `inhibit-point-motion-hooks' to t while messing around, to avoid | 123 | Bind `inhibit-point-motion-hooks' to t while messing around, to avoid |
| 110 | getting hosed by our own intangible property. | 124 | getting hosed by our own intangible property. |
| 111 | 125 | ||
| 126 | 2002-03-13 Stefan Monnier <monnier@cs.yale.edu> | ||
| 127 | |||
| 128 | * progmodes/fortran.el (fortran-mode): Set comment-padding to "$$$". | ||
| 129 | Add fortran-comment-line-start-skip to comment-start-skip. | ||
| 130 | (fortran-comment-indent): Keep whole-line comments in column 0. | ||
| 131 | (fortran-find-comment-start-skip): New arg `all'. | ||
| 132 | If ALL is nil, make sure we only match comment-start-skip if we | ||
| 133 | can't match fortran-comment-line-start-skip. | ||
| 134 | Fix bug that made it return t but without moving point when | ||
| 135 | matching '!'! (a false-comment followed by a real comment). | ||
| 136 | (fortran-indent-comment): Use new `all' argument above. | ||
| 137 | Be careful not to add an incorrect comment-starter like "C" | ||
| 138 | in comment-column. | ||
| 139 | (fortran-split-line): When splitting a comment, reuse the comment | ||
| 140 | starter from the current line rather than fortran-comment-line-start. | ||
| 141 | (fortran-indent-line, fortran-auto-fill): Simplify thanks to the | ||
| 142 | cleaner behavior of fortran-find-comment-start-skip. | ||
| 143 | (fortran-fill): Don't be confused by ! inside a comment. | ||
| 144 | (fortran-break-line): Minor cleanup and simplification. | ||
| 145 | |||
| 112 | 2002-03-13 Francesco Potorti` <pot@gnu.org> | 146 | 2002-03-13 Francesco Potorti` <pot@gnu.org> |
| 113 | 147 | ||
| 114 | * progmodes/etags.el (tag-exact-file-name-match-p) | 148 | * progmodes/etags.el (tag-exact-file-name-match-p) |
| @@ -132,10 +166,9 @@ | |||
| 132 | 2002-03-12 Gerd Moellmann <gerd@gnu.org> | 166 | 2002-03-12 Gerd Moellmann <gerd@gnu.org> |
| 133 | 167 | ||
| 134 | * emacs-lisp/cl-indent.el (lisp-loop-keyword-indentation) | 168 | * emacs-lisp/cl-indent.el (lisp-loop-keyword-indentation) |
| 135 | (lisp-loop-forms-indentation, lisp-simple-loop-indentation): New | 169 | (lisp-loop-forms-indentation, lisp-simple-loop-indentation): |
| 136 | user options. | 170 | New user options. |
| 137 | (extended-loop-p, common-lisp-loop-part-indentation): New | 171 | (extended-loop-p, common-lisp-loop-part-indentation): New functions. |
| 138 | functions. | ||
| 139 | (common-lisp-indent-function-1): Renamed from | 172 | (common-lisp-indent-function-1): Renamed from |
| 140 | common-lisp-indent-function. | 173 | common-lisp-indent-function. |
| 141 | (common-lisp-indent-function): Handle loop forms specially. | 174 | (common-lisp-indent-function): Handle loop forms specially. |
| @@ -145,9 +178,9 @@ | |||
| 145 | 2002-03-12 Francesco Potorti` <pot@gnu.org> | 178 | 2002-03-12 Francesco Potorti` <pot@gnu.org> |
| 146 | 179 | ||
| 147 | * progmodes/etags.el (tag-exact-file-name-match-p) | 180 | * progmodes/etags.el (tag-exact-file-name-match-p) |
| 148 | (tag-file-name-match-p, tag-partial-file-name-match-p): Assume | 181 | (tag-file-name-match-p, tag-partial-file-name-match-p): |
| 149 | that the header of a tags section has either a number or nothing | 182 | Assume that the header of a tags section has either a number |
| 150 | after the last comma. | 183 | or nothing after the last comma. |
| 151 | 184 | ||
| 152 | 2002-03-11 Richard M. Stallman <rms@gnu.org> | 185 | 2002-03-11 Richard M. Stallman <rms@gnu.org> |
| 153 | 186 | ||
| @@ -228,8 +261,7 @@ | |||
| 228 | (mpuz-trivial-face, mpuz-text-face, mpuz-solve-when-trivial) | 261 | (mpuz-trivial-face, mpuz-text-face, mpuz-solve-when-trivial) |
| 229 | (mpuz-allow-double-multiplicator): New options for nicer look and | 262 | (mpuz-allow-double-multiplicator): New options for nicer look and |
| 230 | new features. | 263 | new features. |
| 231 | (mpuz-put-number-on-board, mpuz-paint-number, mpuz-solve): New | 264 | (mpuz-put-number-on-board, mpuz-paint-number, mpuz-solve): New funs. |
| 232 | functions. | ||
| 233 | (mpuz-check-all-solved, mpuz-random-puzzle) | 265 | (mpuz-check-all-solved, mpuz-random-puzzle) |
| 234 | (mpuz-paint-statistics, mpuz-paint-digit, mpuz-close-game) | 266 | (mpuz-paint-statistics, mpuz-paint-digit, mpuz-close-game) |
| 235 | (mpuz-show-solution): Functions streamlined and removed french | 267 | (mpuz-show-solution): Functions streamlined and removed french |
diff --git a/lisp/international/ucs-tables.el b/lisp/international/ucs-tables.el index 81f059e9ac2..245d624e214 100644 --- a/lisp/international/ucs-tables.el +++ b/lisp/international/ucs-tables.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; ucs-tables.el --- translation to, from and via Unicode -*- coding: iso-2022-7bit -*- | 1 | ;;; ucs-tables.el --- translation to, from and via Unicode -*- coding: iso-2022-7bit -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 2001 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 2001, 2002 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Dave Love <fx@gnu.org> | 5 | ;; Author: Dave Love <fx@gnu.org> |
| 6 | ;; Keywords: i18n | 6 | ;; Keywords: i18n |
| @@ -25,7 +25,7 @@ | |||
| 25 | ;;; Commentary: | 25 | ;;; Commentary: |
| 26 | 26 | ||
| 27 | ;; This file provides tables mapping between Unicode numbers and | 27 | ;; This file provides tables mapping between Unicode numbers and |
| 28 | ;; emacs-mule characters from the iso-8859 charsets (and others). It | 28 | ;; emacs-mule characters from the iso8859 charsets (and others). It |
| 29 | ;; also provides some auxiliary functions. | 29 | ;; also provides some auxiliary functions. |
| 30 | 30 | ||
| 31 | ;; These tables are used to construct other mappings between the Mule | 31 | ;; These tables are used to construct other mappings between the Mule |
| @@ -1159,8 +1159,7 @@ everything on input operations." | |||
| 1159 | (interactive "P") | 1159 | (interactive "P") |
| 1160 | (unless encode-only | 1160 | (unless encode-only |
| 1161 | ;; Unify 8859 on decoding. (Non-CCL coding systems only.) | 1161 | ;; Unify 8859 on decoding. (Non-CCL coding systems only.) |
| 1162 | (set-char-table-parent standard-translation-table-for-decode | 1162 | (unify-8859-on-decoding-mode 1)) |
| 1163 | ucs-mule-8859-to-mule-unicode)) | ||
| 1164 | ;; Adjust the 8859 coding systems to fragment the unified characters | 1163 | ;; Adjust the 8859 coding systems to fragment the unified characters |
| 1165 | ;; on encoding. | 1164 | ;; on encoding. |
| 1166 | (dolist (n '(1 2 3 4 5 7 8 9 14 15)) | 1165 | (dolist (n '(1 2 3 4 5 7 8 9 14 15)) |
| @@ -1236,7 +1235,7 @@ unification on input operations." | |||
| 1236 | ;; Maybe fix decoding. | 1235 | ;; Maybe fix decoding. |
| 1237 | (unless encode-only | 1236 | (unless encode-only |
| 1238 | ;; Unify 8859 on decoding. (Non-CCL coding systems only.) | 1237 | ;; Unify 8859 on decoding. (Non-CCL coding systems only.) |
| 1239 | (set-char-table-parent standard-translation-table-for-decode nil)) | 1238 | (unify-8859-on-decoding-mode -1)) |
| 1240 | ;; Fix encoding. For each charset, remove the entries in | 1239 | ;; Fix encoding. For each charset, remove the entries in |
| 1241 | ;; `char-coding-system-table' added to its safe-chars table (as its | 1240 | ;; `char-coding-system-table' added to its safe-chars table (as its |
| 1242 | ;; parent). | 1241 | ;; parent). |
| @@ -1295,24 +1294,26 @@ built-in ISO 8859 charsets are unified by mapping them into the | |||
| 1295 | `iso-latin-1' and `mule-unicode-0100-24ff' charsets. | 1294 | `iso-latin-1' and `mule-unicode-0100-24ff' charsets. |
| 1296 | 1295 | ||
| 1297 | This sets the parent of `standard-translation-table-for-decode'. | 1296 | This sets the parent of `standard-translation-table-for-decode'. |
| 1297 | Also sets `translation-table-for-input' globally, so that Quail input | ||
| 1298 | methods produce unified characters. | ||
| 1298 | 1299 | ||
| 1299 | See also command `unify-8859-on-encoding-mode'." | 1300 | See also command `unify-8859-on-encoding-mode'." |
| 1300 | :group 'mule | 1301 | :group 'mule |
| 1301 | :global t | 1302 | :global t |
| 1302 | :version 21.3 ; who knows...? | 1303 | :version 21.3 ; who knows...? |
| 1303 | :init-value nil | 1304 | :init-value nil |
| 1304 | (if unify-8859-on-decoding-mode | 1305 | (let ((table (if unify-8859-on-decoding-mode ucs-mule-8859-to-mule-unicode))) |
| 1305 | (set-char-table-parent standard-translation-table-for-decode | 1306 | (set-char-table-parent standard-translation-table-for-decode table) |
| 1306 | ucs-mule-8859-to-mule-unicode) | 1307 | (setq-default translation-table-for-input table))) |
| 1307 | (set-char-table-parent standard-translation-table-for-decode nil))) | ||
| 1308 | 1308 | ||
| 1309 | (defun ucs-insert (arg) | 1309 | (defun ucs-insert (arg) |
| 1310 | "Insert the Emacs character representation of the given Unicode. | 1310 | "Insert the Emacs character representation of the given Unicode. |
| 1311 | Interactively, prompts for a hex string giving the code." | 1311 | Interactively, prompts for a hex string giving the code." |
| 1312 | (interactive "sUnicode (hex): ") | 1312 | (interactive "sUnicode (hex): ") |
| 1313 | (insert (decode-char 'ucs (if (integerp arg) | 1313 | (insert (or (decode-char 'ucs (if (integerp arg) |
| 1314 | arg | 1314 | arg |
| 1315 | (string-to-number arg 16))))) | 1315 | (string-to-number arg 16))) |
| 1316 | (error "Unknown Unicode character")))) | ||
| 1316 | 1317 | ||
| 1317 | ;;; Dealing with non-8859 character sets. | 1318 | ;;; Dealing with non-8859 character sets. |
| 1318 | 1319 | ||