aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-09 22:13:08 +0000
committerRichard M. Stallman1998-01-09 22:13:08 +0000
commit6bb762b32476cd8f778a17f225e657f079a41728 (patch)
treeb2ff4000f20d649b7072b483294aa10af9d875ee
parent7bd9ba7033a0b5023edc96ce089160a4cf67d109 (diff)
downloademacs-6bb762b32476cd8f778a17f225e657f079a41728.tar.gz
emacs-6bb762b32476cd8f778a17f225e657f079a41728.zip
(sref): Defined.
-rw-r--r--lisp/subr.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 6dd33424cd2..683c8e291b2 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -511,6 +511,12 @@ as returned by the `event-start' and `event-end' functions."
511(defalias 'compiled-function-p 'byte-code-function-p) 511(defalias 'compiled-function-p 'byte-code-function-p)
512(defalias 'define-function 'defalias) 512(defalias 'define-function 'defalias)
513 513
514(defun sref (string byte-index)
515 (let ((byte 0) (char 0))
516 (while (< byte byte-index)
517 (setq byte (+ byte (char-bytes (aref string byte)))))
518 (aref string char)))
519
514;; Some programs still use this as a function. 520;; Some programs still use this as a function.
515(defun baud-rate () 521(defun baud-rate ()
516 "Obsolete function returning the value of the `baud-rate' variable. 522 "Obsolete function returning the value of the `baud-rate' variable.