aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-05-31 21:53:07 +0000
committerDave Love2002-05-31 21:53:07 +0000
commit346a8d649eba75b35d3d1a39ef670cafdeb8e729 (patch)
treef94260a957c8055a0f23652f9ccab59f1bb58926
parent6ba0a57d61c2763cbe9e2ab3c47e1d5d53bd4ea2 (diff)
downloademacs-346a8d649eba75b35d3d1a39ef670cafdeb8e729.tar.gz
emacs-346a8d649eba75b35d3d1a39ef670cafdeb8e729.zip
(charset-chars): Add optional dimension arg.
(unify-8859-on-encoding-mode, unify-8859-on-decoding-mode): Moved to mule-cmds.el.
-rw-r--r--lisp/international/mule.el20
1 files changed, 6 insertions, 14 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el
index 1229d961eaa..ec52eb0783a 100644
--- a/lisp/international/mule.el
+++ b/lisp/international/mule.el
@@ -310,10 +310,13 @@ It can be retrieved with `(get-charset-property CHARSET PROPNAME)'."
310 "Return dimension string of CHARSET." 310 "Return dimension string of CHARSET."
311 (plist-get (charset-plist charset) :dimension)) 311 (plist-get (charset-plist charset) :dimension))
312 312
313(defun charset-chars (charset) 313(defun charset-chars (charset &optional dimension)
314 "Return character numbers contained in a dimension of CHARSET." 314 "Return character numbers contained in DIMENSION of CHARSET.
315DIMENSION defaults to the first dimension."
316 (unless dimension (setq dimension 1))
315 (let ((code-space (plist-get (charset-plist charset) :code-space))) 317 (let ((code-space (plist-get (charset-plist charset) :code-space)))
316 (1+ (- (aref code-space 1) (aref code-space 0))))) 318 (1+ (- (aref code-space (1- (* 2 dimension)))
319 (aref code-space (- (* 2 dimension) 2))))))
317 320
318(defun charset-iso-final-char (charset) 321(defun charset-iso-final-char (charset)
319 "Return final char of CHARSET." 322 "Return final char of CHARSET."
@@ -1513,17 +1516,6 @@ the table in `translation-table-vector'."
1513 (progn ,@body) 1516 (progn ,@body)
1514 (set-category-table ,current-category-table))))) 1517 (set-category-table ,current-category-table)))))
1515 1518
1516;; Backwards compatibility. These might be better with :init-value t,
1517;; but that breaks loadup.
1518(define-minor-mode unify-8859-on-encoding-mode
1519 "Obsolete."
1520 :group 'mule
1521 :global t)
1522(define-minor-mode unify-8859-on-decoding-mode
1523 "Obsolete."
1524 :group 'mule
1525 :global t)
1526
1527;;; Initialize some variables. 1519;;; Initialize some variables.
1528 1520
1529(put 'use-default-ascent 'char-table-extra-slots 0) 1521(put 'use-default-ascent 'char-table-extra-slots 0)