(substring str start-column width)
)
-;;; @@ for old MULE emulation
+;;; @@ obsoleted aliases
;;;
+;;; You should not use them.
(defalias 'string-columns 'length)
(make-obsolete 'string-columns 'string-width)
;;; @ character
;;;
+(defalias 'char-length 'char-bytes)
+
(defmacro char-next-index (char index)
"Return index of character succeeding CHAR whose index is INDEX."
`(+ index (char-bytes char)))
(category-set-mnemonics (char-category-set character))
)
-;;; @@ obsoleted aliases
-;;;
-;;; You should not use them.
-
-(defalias 'char-length 'char-bytes)
-;;(defalias 'char-columns 'char-width)
-
;;; @ string
;;;
;;; @ string
;;;
-(defalias 'string-columns 'length)
+(defalias 'string-width 'length)
(defun sref (str idx)
"Return the character in STR at index IDX.
(setq to to-prev)))
(substring str from to))))
-;;; @@ for Mule emulation
+;;; @@ obsoleted aliases
;;;
+;;; You should not use them.
-(defalias 'string-width 'length)
+(defalias 'string-columns 'length)
;;; @ text property emulation