# HG changeset patch # User Richard M. Stallman # Date 884383988 0 # Node ID 95e051979faf1913e945e205261ddeb4e3e2d35e # Parent cb1af13d913cc4fb94a9af61ec422259dfa9a814 (sref): Defined. diff -r cb1af13d913c -r 95e051979faf lisp/subr.el --- a/lisp/subr.el Fri Jan 09 22:12:10 1998 +0000 +++ b/lisp/subr.el Fri Jan 09 22:13:08 1998 +0000 @@ -511,6 +511,12 @@ (defalias 'compiled-function-p 'byte-code-function-p) (defalias 'define-function 'defalias) +(defun sref (string byte-index) + (let ((byte 0) (char 0)) + (while (< byte byte-index) + (setq byte (+ byte (char-bytes (aref string byte))))) + (aref string char))) + ;; Some programs still use this as a function. (defun baud-rate () "Obsolete function returning the value of the `baud-rate' variable.