Mercurial > hg > xemacs-beta
diff lisp/obsolete.el @ 777:e65d9cf16707
[xemacs-hg @ 2002-03-15 11:00:28 by ben]
config.h.in, sysdep.c, sysfile.h, systime.h: add HAVE_SYS_TIMES_H and use it to include sys/times.h, used for
struct tms in new POSIX() function times().
mule\mule-charset.el, obsolete.el, subr.el: Put back
previously-deleted truncate-string-to-width. Move other
non-Mule-specific stuff into subr.el or obsolete.el.
configure.in: check for sys/times.h.
author | ben |
---|---|
date | Fri, 15 Mar 2002 11:00:56 +0000 |
parents | 943eaba38521 |
children | accc481aef34 |
line wrap: on
line diff
--- a/lisp/obsolete.el Fri Mar 15 07:43:43 2002 +0000 +++ b/lisp/obsolete.el Fri Mar 15 11:00:56 2002 +0000 @@ -3,6 +3,7 @@ ;; Copyright (C) 1985-1994, 1997 Free Software Foundation, Inc. ;; Copyright (C) 1994, 1995 Amdahl Corporation. ;; Copyright (C) 1995 Sun Microsystems. +;; Copyright (C) 2002 Ben Wing. ;; Maintainer: XEmacs Development Team ;; Keywords: internal, dumped @@ -298,6 +299,16 @@ (mapcar 'redisplay-device (device-list)) (redisplay-device device))) +;;;;;;;;;;;;;;;;;;;;;;;;;;;; strings + +(define-obsolete-function-alias 'sref 'aref) + +(defun char-bytes (character) + "Return number of bytes a CHARACTER occupies in a string or buffer. +It always returns 1 in XEmacs, and in recent FSF Emacs versions." + 1) +(make-obsolete 'char-bytes "This function always returns 1") + ;;;;;;;;;;;;;;;;;;;;;;;;;;;; window-system objects ;; the functionality of column.el has been moved into C