aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2004-06-02 00:43:56 +0000
committerJuanma Barranquero2004-06-02 00:43:56 +0000
commit9857367f6fea924843d6adcde3528b98f334f787 (patch)
tree939639b90dcfb187634447c485dff353d75f6a8c
parentfaa79da68639cc5d7c5db97b49d4e7bd68796f8c (diff)
downloademacs-9857367f6fea924843d6adcde3528b98f334f787.tar.gz
emacs-9857367f6fea924843d6adcde3528b98f334f787.zip
(register-char-codings): Make alias for `ignore'. Move docstring to
obsolescence info and remove redundancy.
-rw-r--r--lisp/international/mule.el16
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index de9d3ef8e2c..c4c7be3a225 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -592,11 +592,9 @@ character code range. Thus FUNC should iterate over [START, END]."
592 (make-char charset (+ i start) start) 592 (make-char charset (+ i start) start)
593 (make-char charset (+ i start) (+ start chars -1))))))) 593 (make-char charset (+ i start) (+ start chars -1)))))))
594 594
595(defun register-char-codings (coding-system safe-chars) 595(defalias 'register-char-codings 'ignore "")
596 "This is an obsolete function.
597It exists just for backward compatibility, and it does nothing.")
598(make-obsolete 'register-char-codings 596(make-obsolete 'register-char-codings
599 "Unnecessary function. Calling it has no effect." 597 "it exists just for backward compatibility, and does nothing."
600 "21.3") 598 "21.3")
601 599
602(defconst char-coding-system-table nil 600(defconst char-coding-system-table nil
@@ -1401,7 +1399,7 @@ Each element must be one of the names listed in the variable
1401 (let* ((M (char-after (+ pos 4))) 1399 (let* ((M (char-after (+ pos 4)))
1402 (L (char-after (+ pos 5))) 1400 (L (char-after (+ pos 5)))
1403 (encoding (match-string 2)) 1401 (encoding (match-string 2))
1404 (encoding-info (assoc-string 1402 (encoding-info (assoc-string
1405 encoding 1403 encoding
1406 ctext-non-standard-encodings-alist t)) 1404 ctext-non-standard-encodings-alist t))
1407 (coding (if encoding-info 1405 (coding (if encoding-info
@@ -1445,7 +1443,7 @@ Each element must be one of the names listed in the variable
1445 (dolist (elt charset) 1443 (dolist (elt charset)
1446 (aset table (make-char elt) slot))) 1444 (aset table (make-char elt) slot)))
1447 ((char-table-p charset) 1445 ((char-table-p charset)
1448 (map-char-table #'(lambda (k v) 1446 (map-char-table #'(lambda (k v)
1449 (if (and v (> k 128)) (aset table k slot))) 1447 (if (and v (> k 128)) (aset table k slot)))
1450 charset)))))) 1448 charset))))))
1451 table)) 1449 table))
@@ -1501,7 +1499,7 @@ text, and convert it in the temporary buffer. Otherwise, convert in-place."
1501 (- (point) last-pos))) 1499 (- (point) last-pos)))
1502 (save-excursion 1500 (save-excursion
1503 (goto-char last-pos) 1501 (goto-char last-pos)
1504 (insert (string-to-multibyte 1502 (insert (string-to-multibyte
1505 (format "\e%%/%d%c%c%s" 1503 (format "\e%%/%d%c%c%s"
1506 noctets 1504 noctets
1507 (+ (/ len 128) 128) 1505 (+ (/ len 128) 128)
@@ -1668,7 +1666,7 @@ function by default."
1668 (goto-char tail-start) 1666 (goto-char tail-start)
1669 (re-search-forward "[\r\n]\^L" nil t) 1667 (re-search-forward "[\r\n]\^L" nil t)
1670 (if (re-search-forward 1668 (if (re-search-forward
1671 "[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]" 1669 "[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]"
1672 tail-end t) 1670 tail-end t)
1673 ;; The prefix is what comes before "local variables:" in its 1671 ;; The prefix is what comes before "local variables:" in its
1674 ;; line. The suffix is what comes after "local variables:" 1672 ;; line. The suffix is what comes after "local variables:"
@@ -1688,7 +1686,7 @@ function by default."
1688 "[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*" 1686 "[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*"
1689 suffix "[\r\n]")) 1687 suffix "[\r\n]"))
1690 (re-end 1688 (re-end
1691 (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix 1689 (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix
1692 "[\r\n]?")) 1690 "[\r\n]?"))
1693 (pos (1- (point)))) 1691 (pos (1- (point))))
1694 (forward-char -1) ; skip back \r or \n. 1692 (forward-char -1) ; skip back \r or \n.