Commit 9857367f authored by Juanma Barranquero's avatar Juanma Barranquero

(register-char-codings): Make alias for `ignore'. Move docstring to

obsolescence info and remove redundancy.
parent faa79da6
...@@ -592,11 +592,9 @@ character code range. Thus FUNC should iterate over [START, END]." ...@@ -592,11 +592,9 @@ character code range. Thus FUNC should iterate over [START, END]."
(make-char charset (+ i start) start) (make-char charset (+ i start) start)
(make-char charset (+ i start) (+ start chars -1))))))) (make-char charset (+ i start) (+ start chars -1)))))))
(defun register-char-codings (coding-system safe-chars) (defalias 'register-char-codings 'ignore "")
"This is an obsolete function.
It exists just for backward compatibility, and it does nothing.")
(make-obsolete 'register-char-codings (make-obsolete 'register-char-codings
"Unnecessary function. Calling it has no effect." "it exists just for backward compatibility, and does nothing."
"21.3") "21.3")
(defconst char-coding-system-table nil (defconst char-coding-system-table nil
...@@ -1401,7 +1399,7 @@ Each element must be one of the names listed in the variable ...@@ -1401,7 +1399,7 @@ Each element must be one of the names listed in the variable
(let* ((M (char-after (+ pos 4))) (let* ((M (char-after (+ pos 4)))
(L (char-after (+ pos 5))) (L (char-after (+ pos 5)))
(encoding (match-string 2)) (encoding (match-string 2))
(encoding-info (assoc-string (encoding-info (assoc-string
encoding encoding
ctext-non-standard-encodings-alist t)) ctext-non-standard-encodings-alist t))
(coding (if encoding-info (coding (if encoding-info
...@@ -1445,7 +1443,7 @@ Each element must be one of the names listed in the variable ...@@ -1445,7 +1443,7 @@ Each element must be one of the names listed in the variable
(dolist (elt charset) (dolist (elt charset)
(aset table (make-char elt) slot))) (aset table (make-char elt) slot)))
((char-table-p charset) ((char-table-p charset)
(map-char-table #'(lambda (k v) (map-char-table #'(lambda (k v)
(if (and v (> k 128)) (aset table k slot))) (if (and v (> k 128)) (aset table k slot)))
charset)))))) charset))))))
table)) table))
...@@ -1501,7 +1499,7 @@ text, and convert it in the temporary buffer. Otherwise, convert in-place." ...@@ -1501,7 +1499,7 @@ text, and convert it in the temporary buffer. Otherwise, convert in-place."
(- (point) last-pos))) (- (point) last-pos)))
(save-excursion (save-excursion
(goto-char last-pos) (goto-char last-pos)
(insert (string-to-multibyte (insert (string-to-multibyte
(format "\e%%/%d%c%c%s" (format "\e%%/%d%c%c%s"
noctets noctets
(+ (/ len 128) 128) (+ (/ len 128) 128)
...@@ -1668,7 +1666,7 @@ function by default." ...@@ -1668,7 +1666,7 @@ function by default."
(goto-char tail-start) (goto-char tail-start)
(re-search-forward "[\r\n]\^L" nil t) (re-search-forward "[\r\n]\^L" nil t)
(if (re-search-forward (if (re-search-forward
"[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]" "[\r\n]\\([^[\r\n]*\\)[ \t]*Local Variables:[ \t]*\\([^\r\n]*\\)[\r\n]"
tail-end t) tail-end t)
;; The prefix is what comes before "local variables:" in its ;; The prefix is what comes before "local variables:" in its
;; line. The suffix is what comes after "local variables:" ;; line. The suffix is what comes after "local variables:"
...@@ -1688,7 +1686,7 @@ function by default." ...@@ -1688,7 +1686,7 @@ function by default."
"[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*" "[ \t]*unibyte[ \t]*:[ \t]*\\([^ \t\r\n]+\\)[ \t]*"
suffix "[\r\n]")) suffix "[\r\n]"))
(re-end (re-end
(concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix (concat "[\r\n]" prefix "[ \t]*End *:[ \t]*" suffix
"[\r\n]?")) "[\r\n]?"))
(pos (1- (point)))) (pos (1- (point))))
(forward-char -1) ; skip back \r or \n. (forward-char -1) ; skip back \r or \n.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment