aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog15
-rw-r--r--lisp/international/mule.el85
-rw-r--r--lisp/textmodes/artist.el6
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 @@
12008-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
12008-11-12 Sam Steingold <sds@gnu.org> 162008-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
472This function is provided for backward compatibility.
473Now 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.
897Two coding systems are identical if two symbols are equal 895Two coding systems are identical if both symbols are equal
898or one is an alias of the other." 896or 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).
1028This function is provided for backward compatibility. 1026This function is provided for backward compatibility."
1029Use `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.
1124Return the resulting coding system." 1123Return 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
1140FROM is a form to evaluate to define the coding-system." 1139FORM 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.
1151This means that when you save the buffer, it will be converted 1150This means that when you save the buffer, it will be converted
1152according to CODING-SYSTEM. For a list of possible values of CODING-SYSTEM, 1151according to CODING-SYSTEM. For a list of possible values of
1153use \\[list-coding-systems]. 1152CODING-SYSTEM, use \\[list-coding-systems].
1154 1153
1155If CODING-SYSTEM leaves the text conversion unspecified, or if it 1154If CODING-SYSTEM leaves the text conversion unspecified, or if it leaves
1156leaves the end-of-line conversion unspecified, FORCE controls what to 1155the end-of-line conversion unspecified, FORCE controls what to do.
1157do. If FORCE is nil, get the unspecified aspect (or aspects) from the 1156If FORCE is nil, get the unspecified aspect (or aspects) from the buffer's
1158buffer's previous `buffer-file-coding-system' value (if it is 1157previous `buffer-file-coding-system' value (if it is specified there).
1159specified there). Otherwise, leave it unspecified. 1158Otherwise, leave it unspecified.
1160 1159
1161This marks the buffer modified so that the succeeding \\[save-buffer] 1160This marks the buffer modified so that the succeeding \\[save-buffer]
1162surely saves the buffer with CODING-SYSTEM. From a program, if you 1161surely 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.
1182For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]. 1181For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems].
1183 1182
1184If CODING-SYSTEM leaves the text conversion unspecified, or if it 1183If CODING-SYSTEM leaves the text conversion unspecified, or if it leaves
1185leaves the end-of-line conversion unspecified, FORCE controls what to 1184the end-of-line conversion unspecified, FORCE controls what to do.
1186do. If FORCE is nil, get the unspecified aspect (or aspects) from the 1185If FORCE is nil, get the unspecified aspect (or aspects) from the buffer's
1187buffer's previous `buffer-file-coding-system' value (if it is 1186previous `buffer-file-coding-system' value (if it is specified there).
1188specified there). Otherwise, determine it from the file contents as 1187Otherwise, determine it from the file contents as usual for visiting a file."
1189usual 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.
1200It actually just set the variable `file-name-coding-system' (which 1198It actually just set the variable `file-name-coding-system' (which see)
1201see) to CODING-SYSTEM." 1199to 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]."
1303DECODING is the coding system to be used to decode input from the process, 1301DECODING is the coding system to be used to decode input from the process,
1304ENCODING is the coding system to be used to encode output to the process. 1302ENCODING is the coding system to be used to encode output to the process.
1305 1303
1306For a list of possible values of CODING-SYSTEM, use \\[list-coding-systems]." 1304For 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.
1350ARG is a list of coding categories ordered by priority. 1348ARG is a list of coding categories ordered by priority.
1351 1349
1352This function is provided for backward compatibility. 1350This function is provided for backward compatibility."
1353Now 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
1370Each element has the form (ENCODING-NAME CODING-SYSTEM N-OCTET CHARSET). 1367Each element has the form (ENCODING-NAME CODING-SYSTEM N-OCTET CHARSET).
1371 1368
1372ENCODING-NAME is an encoding name of an \"extended segments\". 1369ENCODING-NAME is an encoding name of an \"extended segment\".
1373 1370
1374CODING-SYSTEM is the coding-system to encode (or decode) the 1371CODING-SYSTEM is the coding-system to encode (or decode) the
1375characters into (or from) the extended segment. 1372characters into (or from) the extended segment.
@@ -1378,7 +1375,7 @@ N-OCTET is the number of octets (bytes) that encodes a character
1378in the segment. It can be 0 (meaning the number of octets per 1375in the segment. It can be 0 (meaning the number of octets per
1379character is variable), 1, 2, 3, or 4. 1376character is variable), 1, 2, 3, or 4.
1380 1377
1381CHARSET is a charater set containing characters that are encoded 1378CHARSET is a character set containing characters that are encoded
1382in the segment. It can be a list of character sets. 1379in the segment. It can be a list of character sets.
1383 1380
1384On decoding CTEXT, all encoding names listed here are recognized. 1381On 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
1496If FROM is a string, or if the current buffer is not the one set up for us 1493If FROM is a string, or if the current buffer is not the one set up for us
1497by `encode-coding-string', generate a new temp buffer, insert the 1494by `encode-coding-string', generate a new temp buffer, insert the text,
1498text, and convert it in the temporary buffer. Otherwise, convert in-place." 1495and 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."
1642Each function in this list should be written to operate on the 1639Each function in this list should be written to operate on the
1643current buffer, but should not modify it in any way. The buffer 1640current buffer, but should not modify it in any way. The buffer
1644will contain undecoded text of parts of the file. Each function 1641will contain undecoded text of parts of the file. Each function
1645should take one argument, SIZE, which says how many 1642should take one argument, SIZE, which says how many characters
1646characters (starting from point) it should look at. 1643\(starting from point) it should look at.
1647 1644
1648If one of these functions succeeds in determining a coding 1645If one of these functions succeeds in determining a coding
1649system, it should return that coding system. Otherwise, it 1646system, it should return that coding system. Otherwise, it
@@ -1688,12 +1685,12 @@ contents of the current buffer following point against
1688succeed, it checks to see if any function in `auto-coding-functions' 1685succeed, it checks to see if any function in `auto-coding-functions'
1689gives a match. 1686gives a match.
1690 1687
1691If a coding system is specifed, the return value is a 1688If a coding system is specifed, the return value is a cons
1692cons (CODING . SOURCE), where CODING is the specified coding 1689\(CODING . SOURCE), where CODING is the specified coding system and
1693system and SOURCE is a symbol `auto-coding-alist', 1690SOURCE 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
1695indicating by what CODING is specified. Note that the validity 1692specified. Note that the validity of CODING is not checked;
1696of CODING is not checked; it's the caller's responsibility to check it. 1693it's the caller's responsibility to check it.
1697 1694
1698If nothing is specified, the return value is nil." 1695If 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
1945to connect to if TARGET-TYPE is `network'. 1942to connect to if TARGET-TYPE is `network'.
1946 1943
1947CODING-SYSTEM is a coding system to perform code conversion on the I/O 1944CODING-SYSTEM is a coding system to perform code conversion on the I/O
1948operation, or a cons cell (DECODING . ENCODING) specifying the coding systems 1945operation, or a cons cell (DECODING . ENCODING) specifying the coding
1949for decoding and encoding respectively, 1946systems for decoding and encoding respectively, or a function symbol
1950or a function symbol which, when called, returns such a cons cell." 1947which, 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.
2225The category table of the current buffer is saved, BODY is evaluated, 2222The category table of the current buffer is saved, BODY is evaluated,
2226then the saved table is restored, even in case of an abnormal exit. 2223then the saved table is restored, even in case of an abnormal exit.
2227Value is what BODY returns." 2224Value 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