1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-18 20:10:31 -07:00

* subr.el (sref): Doc-string added.

This commit is contained in:
Kenichi Handa 1998-02-20 01:43:38 +00:00
parent c9c0f7cf48
commit 66353e86d1

View file

@ -512,6 +512,8 @@ as returned by the `event-start' and `event-end' functions."
(defalias 'define-function 'defalias)
(defun sref (string byte-index)
"Obsolete function returning a characater in STRING at BYTE-INDEX.
Please convert your programs to use `aref' witha character-base index."
(let ((byte 0) (char 0))
(while (< byte byte-index)
(setq byte (+ byte (char-bytes (aref string byte)))))