diff options
| -rw-r--r-- | lisp/ChangeLog | 15 | ||||
| -rw-r--r-- | lisp/international/mule.el | 85 | ||||
| -rw-r--r-- | lisp/textmodes/artist.el | 6 |
3 files changed, 59 insertions, 47 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a9f5e15987a..a38f10e71e7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,18 @@ | |||
| 1 | 2008-11-12 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * international/mule.el (autoload-coding-system, with-category-table) | ||
| 4 | (ctext-non-standard-encodings-alist): Fix typos in docstrings. | ||
| 5 | (coding-system-equal, set-buffer-process-coding-system): Doc fixes. | ||
| 6 | (set-buffer-file-coding-system, revert-buffer-with-coding-system) | ||
| 7 | (set-file-name-coding-system, ctext-pre-write-conversion) | ||
| 8 | (auto-coding-functions, find-auto-coding, modify-coding-system-alist): | ||
| 9 | Reflow docstrings. | ||
| 10 | (charset-list, set-coding-priority): Remove redundant obsolescence info. | ||
| 11 | (charset-id, charset-bytes, make-coding-system): Add obsolescence info. | ||
| 12 | (char-valid-p): Define with `define-obsolete-function-alias'. | ||
| 13 | |||
| 14 | * textmodes/artist.el (artist-mode): Fix typos in docstring. | ||
| 15 | |||
| 1 | 2008-11-12 Sam Steingold <sds@gnu.org> | 16 | 2008-11-12 Sam Steingold <sds@gnu.org> |
| 2 | 17 | ||
| 3 | * vc-cvs.el (vc-cvs-parse-root): Handle roots without colon | 18 | * vc-cvs.el (vc-cvs-parse-root): Handle roots without colon |
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index be4a679fafd..8ae45e8b3cb 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -419,10 +419,12 @@ PLIST (property list) may contain any type of information a user | |||
| 419 | (defun charset-id (charset) | 419 | (defun charset-id (charset) |
| 420 | "Always return 0. This is provided for backward compatibility." | 420 | "Always return 0. This is provided for backward compatibility." |
| 421 | 0) | 421 | 0) |
| 422 | (make-obsolete 'charset-id "do not use it." "23.1") | ||
| 422 | 423 | ||
| 423 | (defmacro charset-bytes (charset) | 424 | (defmacro charset-bytes (charset) |
| 424 | "Always return 0. This is provided for backward compatibility." | 425 | "Always return 0. This is provided for backward compatibility." |
| 425 | 0) | 426 | 0) |
| 427 | (make-obsolete 'charset-bytes "do not use it." "23.1") | ||
| 426 | 428 | ||
| 427 | (defun get-charset-property (charset propname) | 429 | (defun get-charset-property (charset propname) |
| 428 | "Return the value of CHARSET's PROPNAME property. | 430 | "Return the value of CHARSET's PROPNAME property. |
| @@ -467,17 +469,13 @@ Return -1 if charset isn't an ISO 2022 one." | |||
| 467 | (plist-get (charset-plist charset) :long-name)) | 469 | (plist-get (charset-plist charset) :long-name)) |
| 468 | 470 | ||
| 469 | (defun charset-list () | 471 | (defun charset-list () |
| 470 | "Return list of all charsets ever defined. | 472 | "Return list of all charsets ever defined." |
| 471 | |||
| 472 | This function is provided for backward compatibility. | ||
| 473 | Now we have the variable `charset-list'." | ||
| 474 | charset-list) | 473 | charset-list) |
| 475 | (make-obsolete 'charset-list "use variable `charset-list'." "23.1") | 474 | (make-obsolete 'charset-list "use variable `charset-list'." "23.1") |
| 476 | 475 | ||
| 477 | 476 | ||
| 478 | ;;; CHARACTER | 477 | ;;; CHARACTER |
| 479 | (defalias 'char-valid-p 'characterp) | 478 | (define-obsolete-function-alias 'char-valid-p 'characterp "23.1") |
| 480 | (make-obsolete 'char-valid-p 'characterp "23.1") | ||
| 481 | 479 | ||
| 482 | (defun generic-char-p (char) | 480 | (defun generic-char-p (char) |
| 483 | "Always return nil. This is provided for backward compatibility." | 481 | "Always return nil. This is provided for backward compatibility." |
| @@ -894,7 +892,7 @@ like `mime-charset' as well as the current style like `:mime-charset'." | |||
| 894 | 892 | ||
| 895 | (defun coding-system-equal (coding-system-1 coding-system-2) | 893 | (defun coding-system-equal (coding-system-1 coding-system-2) |
| 896 | "Return t if and only if CODING-SYSTEM-1 and CODING-SYSTEM-2 are identical. | 894 | "Return t if and only if CODING-SYSTEM-1 and CODING-SYSTEM-2 are identical. |
| 897 | Two coding systems are identical if two symbols are equal | 895 | Two coding systems are identical if both symbols are equal |
| 898 | or one is an alias of the other." | 896 | or one is an alias of the other." |
| 899 | (or (eq coding-system-1 coding-system-2) | 897 | (or (eq coding-system-1 coding-system-2) |
| 900 | (and (equal (coding-system-plist coding-system-1) | 898 | (and (equal (coding-system-plist coding-system-1) |
| @@ -1025,8 +1023,7 @@ Value is a list of transformed arguments." | |||
| 1025 | properties | 1023 | properties |
| 1026 | eol-type) | 1024 | eol-type) |
| 1027 | "Define a new coding system CODING-SYSTEM (symbol). | 1025 | "Define a new coding system CODING-SYSTEM (symbol). |
| 1028 | This function is provided for backward compatibility. | 1026 | This function is provided for backward compatibility." |
| 1029 | Use `define-coding-system' instead." | ||
| 1030 | ;; For compatiblity with XEmacs, we check the type of TYPE. If it | 1027 | ;; For compatiblity with XEmacs, we check the type of TYPE. If it |
| 1031 | ;; is a symbol, perhaps, this function is called with XEmacs-style | 1028 | ;; is a symbol, perhaps, this function is called with XEmacs-style |
| 1032 | ;; arguments. Here, try to transform that kind of arguments to | 1029 | ;; arguments. Here, try to transform that kind of arguments to |
| @@ -1119,6 +1116,8 @@ Use `define-coding-system' instead." | |||
| 1119 | 1116 | ||
| 1120 | (apply 'define-coding-system coding-system doc-string properties)) | 1117 | (apply 'define-coding-system coding-system doc-string properties)) |
| 1121 | 1118 | ||
| 1119 | (make-obsolete 'make-coding-system 'define-coding-system "23.1") | ||
| 1120 | |||
| 1122 | (defun merge-coding-systems (first second) | 1121 | (defun merge-coding-systems (first second) |
| 1123 | "Fill in any unspecified aspects of coding system FIRST from SECOND. | 1122 | "Fill in any unspecified aspects of coding system FIRST from SECOND. |
| 1124 | Return the resulting coding system." | 1123 | Return the resulting coding system." |
| @@ -1137,7 +1136,7 @@ Return the resulting coding system." | |||
| 1137 | (defun autoload-coding-system (symbol form) | 1136 | (defun autoload-coding-system (symbol form) |
| 1138 | "Define SYMBOL as a coding-system that is defined on demand. | 1137 | "Define SYMBOL as a coding-system that is defined on demand. |
| 1139 | 1138 | ||
| 1140 | FROM is a form to evaluate to define the coding-system." | 1139 | FORM is a form to evaluate to define the coding-system." |
| 1141 | (put symbol 'coding-system-define-form form) | 1140 | (put symbol 'coding-system-define-form form) |
| 1142 | (setq coding-system-alist (cons (list (symbol-name symbol)) | 1141 | (setq coding-system-alist (cons (list (symbol-name symbol)) |
| 1143 | coding-system-alist)) | 1142 | coding-system-alist)) |
| @@ -1149,14 +1148,14 @@ FROM is a form to evaluate to define the coding-system." | |||
| 1149 | (defun set-buffer-file-coding-system (coding-system &optional force nomodify) | 1148 | (defun set-buffer-file-coding-system (coding-system &optional force nomodify) |
| 1150 | "Set the file coding-system of the current buffer to CODING-SYSTEM. | 1149 | "Set the file coding-system of the current buffer to CODING-SYSTEM. |
| 1151 | This means that when you save the buffer, it will be converted | 1150 | This means that when you save the buffer, it will be converted |
| 1152 | according to CODING-SYSTEM. For a list of possible values of CODING-SYSTEM, | 1151 | according to CODING-SYSTEM. For a list of possible values of |
| 1153 | use \\[list-coding-systems]. | 1152 | CODING-SYSTEM, use \\[list-coding-systems]. |
| 1154 | 1153 | ||
| 1155 | If CODING-SYSTEM leaves the text conversion unspecified, or if it | 1154 | If CODING-SYSTEM leaves the text conversion unspecified, or if it leaves |
| 1156 | leaves the end-of-line conversion unspecified, FORCE controls what to | 1155 | the end-of-line conversion unspecified, FORCE controls what to do. |
| 1157 | do. If FORCE is nil, get the unspecified aspect (or aspects) from the | 1156 | If FORCE is nil, get the unspecified aspect (or aspects) from the buffer's |
| 1158 | buffer's previous `buffer-file-coding-system' value (if it is | 1157 | previous `buffer-file-coding-system' value (if it is specified there). |
| 1159 | specified there). Otherwise, leave it unspecified. | 1158 | Otherwise, leave it unspecified. |
| 1160 | 1159 | ||
| 1161 | This marks the buffer modified so that the succeeding \\[save-buffer] | 1160 | This marks the buffer modified so that the succeeding \\[save-buffer] |
| 1162 | surely saves the buffer with CODING-SYSTEM. From a program, if you | 1161 | surely saves the buffer with CODING-SYSTEM. From a program, if you |
| @@ -1181,12 +1180,11 @@ just set the variable `buffer-file-coding-system' directly." | |||
| 1181 | "Visit the current buffer's file again using coding system CODING-SYSTEM. | 1180 | "Visit the current buffer's file again using coding system CODING-SYSTEM. |
| 1182 | For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]. | 1181 | For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]. |
| 1183 | 1182 | ||
| 1184 | If CODING-SYSTEM leaves the text conversion unspecified, or if it | 1183 | If CODING-SYSTEM leaves the text conversion unspecified, or if it leaves |
| 1185 | leaves the end-of-line conversion unspecified, FORCE controls what to | 1184 | the end-of-line conversion unspecified, FORCE controls what to do. |
| 1186 | do. If FORCE is nil, get the unspecified aspect (or aspects) from the | 1185 | If FORCE is nil, get the unspecified aspect (or aspects) from the buffer's |
| 1187 | buffer's previous `buffer-file-coding-system' value (if it is | 1186 | previous `buffer-file-coding-system' value (if it is specified there). |
| 1188 | specified there). Otherwise, determine it from the file contents as | 1187 | Otherwise, determine it from the file contents as usual for visiting a file." |
| 1189 | usual for visiting a file." | ||
| 1190 | (interactive "zCoding system for visited file (default nil): \nP") | 1188 | (interactive "zCoding system for visited file (default nil): \nP") |
| 1191 | (check-coding-system coding-system) | 1189 | (check-coding-system coding-system) |
| 1192 | (if (and coding-system buffer-file-coding-system (null force)) | 1190 | (if (and coding-system buffer-file-coding-system (null force)) |
| @@ -1197,8 +1195,8 @@ usual for visiting a file." | |||
| 1197 | 1195 | ||
| 1198 | (defun set-file-name-coding-system (coding-system) | 1196 | (defun set-file-name-coding-system (coding-system) |
| 1199 | "Set coding system for decoding and encoding file names to CODING-SYSTEM. | 1197 | "Set coding system for decoding and encoding file names to CODING-SYSTEM. |
| 1200 | It actually just set the variable `file-name-coding-system' (which | 1198 | It actually just set the variable `file-name-coding-system' (which see) |
| 1201 | see) to CODING-SYSTEM." | 1199 | to CODING-SYSTEM." |
| 1202 | (interactive "zCoding system for file names (default nil): ") | 1200 | (interactive "zCoding system for file names (default nil): ") |
| 1203 | (check-coding-system coding-system) | 1201 | (check-coding-system coding-system) |
| 1204 | (if (and coding-system | 1202 | (if (and coding-system |
| @@ -1303,7 +1301,7 @@ use either \\[customize] or \\[set-keyboard-coding-system]." | |||
| 1303 | DECODING is the coding system to be used to decode input from the process, | 1301 | DECODING is the coding system to be used to decode input from the process, |
| 1304 | ENCODING is the coding system to be used to encode output to the process. | 1302 | ENCODING is the coding system to be used to encode output to the process. |
| 1305 | 1303 | ||
| 1306 | For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]." | 1304 | For a list of possible coding systems, use \\[list-coding-systems]." |
| 1307 | (interactive | 1305 | (interactive |
| 1308 | "zCoding-system for output from the process: \nzCoding-system for input to the process: ") | 1306 | "zCoding-system for output from the process: \nzCoding-system for input to the process: ") |
| 1309 | (let ((proc (get-buffer-process (current-buffer)))) | 1307 | (let ((proc (get-buffer-process (current-buffer)))) |
| @@ -1349,8 +1347,7 @@ This setting is effective for the next communication only." | |||
| 1349 | "Set priority of coding categories according to ARG. | 1347 | "Set priority of coding categories according to ARG. |
| 1350 | ARG is a list of coding categories ordered by priority. | 1348 | ARG is a list of coding categories ordered by priority. |
| 1351 | 1349 | ||
| 1352 | This function is provided for backward compatibility. | 1350 | This function is provided for backward compatibility." |
| 1353 | Now we have more convenient function `set-coding-system-priority'." | ||
| 1354 | (apply 'set-coding-system-priority | 1351 | (apply 'set-coding-system-priority |
| 1355 | (mapcar #'(lambda (x) (symbol-value x)) arg))) | 1352 | (mapcar #'(lambda (x) (symbol-value x)) arg))) |
| 1356 | (make-obsolete 'set-coding-priority 'set-coding-system-priority "23.1") | 1353 | (make-obsolete 'set-coding-priority 'set-coding-system-priority "23.1") |
| @@ -1369,7 +1366,7 @@ by the coding system `compound-text-with-extensions'. | |||
| 1369 | 1366 | ||
| 1370 | Each element has the form (ENCODING-NAME CODING-SYSTEM N-OCTET CHARSET). | 1367 | Each element has the form (ENCODING-NAME CODING-SYSTEM N-OCTET CHARSET). |
| 1371 | 1368 | ||
| 1372 | ENCODING-NAME is an encoding name of an \"extended segments\". | 1369 | ENCODING-NAME is an encoding name of an \"extended segment\". |
| 1373 | 1370 | ||
| 1374 | CODING-SYSTEM is the coding-system to encode (or decode) the | 1371 | CODING-SYSTEM is the coding-system to encode (or decode) the |
| 1375 | characters into (or from) the extended segment. | 1372 | characters into (or from) the extended segment. |
| @@ -1378,7 +1375,7 @@ N-OCTET is the number of octets (bytes) that encodes a character | |||
| 1378 | in the segment. It can be 0 (meaning the number of octets per | 1375 | in the segment. It can be 0 (meaning the number of octets per |
| 1379 | character is variable), 1, 2, 3, or 4. | 1376 | character is variable), 1, 2, 3, or 4. |
| 1380 | 1377 | ||
| 1381 | CHARSET is a charater set containing characters that are encoded | 1378 | CHARSET is a character set containing characters that are encoded |
| 1382 | in the segment. It can be a list of character sets. | 1379 | in the segment. It can be a list of character sets. |
| 1383 | 1380 | ||
| 1384 | On decoding CTEXT, all encoding names listed here are recognized. | 1381 | On decoding CTEXT, all encoding names listed here are recognized. |
| @@ -1494,8 +1491,8 @@ Each element must be one of the names listed in the variable | |||
| 1494 | "Encode characters between FROM and TO as Compound Text w/Extended Segments. | 1491 | "Encode characters between FROM and TO as Compound Text w/Extended Segments. |
| 1495 | 1492 | ||
| 1496 | If FROM is a string, or if the current buffer is not the one set up for us | 1493 | If FROM is a string, or if the current buffer is not the one set up for us |
| 1497 | by `encode-coding-string', generate a new temp buffer, insert the | 1494 | by `encode-coding-string', generate a new temp buffer, insert the text, |
| 1498 | text, and convert it in the temporary buffer. Otherwise, convert in-place." | 1495 | and convert it in the temporary buffer. Otherwise, convert in-place." |
| 1499 | (save-match-data | 1496 | (save-match-data |
| 1500 | ;; Setup a working buffer if necessary. | 1497 | ;; Setup a working buffer if necessary. |
| 1501 | (when (stringp from) | 1498 | (when (stringp from) |
| @@ -1642,8 +1639,8 @@ or nil." | |||
| 1642 | Each function in this list should be written to operate on the | 1639 | Each function in this list should be written to operate on the |
| 1643 | current buffer, but should not modify it in any way. The buffer | 1640 | current buffer, but should not modify it in any way. The buffer |
| 1644 | will contain undecoded text of parts of the file. Each function | 1641 | will contain undecoded text of parts of the file. Each function |
| 1645 | should take one argument, SIZE, which says how many | 1642 | should take one argument, SIZE, which says how many characters |
| 1646 | characters (starting from point) it should look at. | 1643 | \(starting from point) it should look at. |
| 1647 | 1644 | ||
| 1648 | If one of these functions succeeds in determining a coding | 1645 | If one of these functions succeeds in determining a coding |
| 1649 | system, it should return that coding system. Otherwise, it | 1646 | system, it should return that coding system. Otherwise, it |
| @@ -1688,12 +1685,12 @@ contents of the current buffer following point against | |||
| 1688 | succeed, it checks to see if any function in `auto-coding-functions' | 1685 | succeed, it checks to see if any function in `auto-coding-functions' |
| 1689 | gives a match. | 1686 | gives a match. |
| 1690 | 1687 | ||
| 1691 | If a coding system is specifed, the return value is a | 1688 | If a coding system is specifed, the return value is a cons |
| 1692 | cons (CODING . SOURCE), where CODING is the specified coding | 1689 | \(CODING . SOURCE), where CODING is the specified coding system and |
| 1693 | system and SOURCE is a symbol `auto-coding-alist', | 1690 | SOURCE is a symbol `auto-coding-alist', `auto-coding-regexp-alist', |
| 1694 | `auto-coding-regexp-alist', `coding:', or `auto-coding-functions' | 1691 | `coding:', or `auto-coding-functions' indicating by what CODING is |
| 1695 | indicating by what CODING is specified. Note that the validity | 1692 | specified. Note that the validity of CODING is not checked; |
| 1696 | of CODING is not checked; it's the caller's responsibility to check it. | 1693 | it's the caller's responsibility to check it. |
| 1697 | 1694 | ||
| 1698 | If nothing is specified, the return value is nil." | 1695 | If nothing is specified, the return value is nil." |
| 1699 | (or (let ((coding-system (auto-coding-alist-lookup filename))) | 1696 | (or (let ((coding-system (auto-coding-alist-lookup filename))) |
| @@ -1945,9 +1942,9 @@ TARGET-TYPE is `process', or a network service name or a port number | |||
| 1945 | to connect to if TARGET-TYPE is `network'. | 1942 | to connect to if TARGET-TYPE is `network'. |
| 1946 | 1943 | ||
| 1947 | CODING-SYSTEM is a coding system to perform code conversion on the I/O | 1944 | CODING-SYSTEM is a coding system to perform code conversion on the I/O |
| 1948 | operation, or a cons cell (DECODING . ENCODING) specifying the coding systems | 1945 | operation, or a cons cell (DECODING . ENCODING) specifying the coding |
| 1949 | for decoding and encoding respectively, | 1946 | systems for decoding and encoding respectively, or a function symbol |
| 1950 | or a function symbol which, when called, returns such a cons cell." | 1947 | which, when called, returns such a cons cell." |
| 1951 | (or (memq target-type '(file process network)) | 1948 | (or (memq target-type '(file process network)) |
| 1952 | (error "Invalid target type: %s" target-type)) | 1949 | (error "Invalid target type: %s" target-type)) |
| 1953 | (or (stringp regexp) | 1950 | (or (stringp regexp) |
| @@ -2221,7 +2218,7 @@ It returns the number of characters changed." | |||
| 2221 | (put 'with-category-table 'lisp-indent-function 1) | 2218 | (put 'with-category-table 'lisp-indent-function 1) |
| 2222 | 2219 | ||
| 2223 | (defmacro with-category-table (table &rest body) | 2220 | (defmacro with-category-table (table &rest body) |
| 2224 | "Execute BODY like `progn' with CATEGORY-TABLE the current category table. | 2221 | "Execute BODY like `progn' with TABLE the current category table. |
| 2225 | The category table of the current buffer is saved, BODY is evaluated, | 2222 | The category table of the current buffer is saved, BODY is evaluated, |
| 2226 | then the saved table is restored, even in case of an abnormal exit. | 2223 | then the saved table is restored, even in case of an abnormal exit. |
| 2227 | Value is what BODY returns." | 2224 | Value is what BODY returns." |
diff --git a/lisp/textmodes/artist.el b/lisp/textmodes/artist.el index 216b306d1f3..29ecd403748 100644 --- a/lisp/textmodes/artist.el +++ b/lisp/textmodes/artist.el | |||
| @@ -1275,9 +1275,9 @@ Drawing with keys | |||
| 1275 | 1275 | ||
| 1276 | Move around with \\[artist-next-line], \\[artist-previous-line], \\[artist-forward-char] and \\[artist-backward-char]. | 1276 | Move around with \\[artist-next-line], \\[artist-previous-line], \\[artist-forward-char] and \\[artist-backward-char]. |
| 1277 | 1277 | ||
| 1278 | \\[artist-select-fill-char] Sets the charater to use when filling | 1278 | \\[artist-select-fill-char] Sets the character to use when filling |
| 1279 | \\[artist-select-line-char] Sets the charater to use when drawing | 1279 | \\[artist-select-line-char] Sets the character to use when drawing |
| 1280 | \\[artist-select-erase-char] Sets the charater to use when erasing | 1280 | \\[artist-select-erase-char] Sets the character to use when erasing |
| 1281 | \\[artist-toggle-rubber-banding] Toggles rubber-banding | 1281 | \\[artist-toggle-rubber-banding] Toggles rubber-banding |
| 1282 | \\[artist-toggle-trim-line-endings] Toggles trimming of line-endings | 1282 | \\[artist-toggle-trim-line-endings] Toggles trimming of line-endings |
| 1283 | \\[artist-toggle-borderless-shapes] Toggles borders on drawn shapes | 1283 | \\[artist-toggle-borderless-shapes] Toggles borders on drawn shapes |