Mercurial > hg > xemacs-beta
diff src/window.c @ 5214:0b4d355771bd
Import buffer-display-count, buffer-display-time; thank you, Jeff Sparkes.
man/ChangeLog addition:
2010-05-17 Jeff Sparkes <jsparkes@gmail.com>
* lispref/windows.texi (Buffers and Windows):
Document buffer-display-count and buffer-display-time with
descriptions from GNU emacs lispref.
* lispref/locals.texi (Standard Buffer-Local Variables):
Add buffer-display-count and buffer-display-time.
src/ChangeLog addition:
2010-05-17 Jeff Sparkes <jsparkes@gmail.com>
* buffer.c (complex_vars_of_buffer):
Add buffer local variables buffer-display-count and
buffer-display-time.
(common_init_complex_vars_of_buffer):
Initialize them here.
* bufslots.h: Add slots for buffer-display-count and buffer-display-time.
* window.c (Fset_window_buffer): Update buffer-display-count and
buffer-display-time whenever a buffer is displayed.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Fri, 28 May 2010 13:48:22 +0100 |
parents | 71ee43b8a74d |
children | c0f518284a68 |
line wrap: on
line diff
--- a/src/window.c Mon May 24 10:43:29 2010 +0200 +++ b/src/window.c Fri May 28 13:48:22 2010 +0100 @@ -3757,6 +3757,11 @@ Fset_buffer (buffer); } + if (NILP (XBUFFER (buffer)->display_count)) + XBUFFER (buffer)->display_count = make_int (1); + else + XBUFFER (buffer)->display_count = make_int (1 + XINT (XBUFFER (buffer)->display_count)); + XBUFFER (buffer)->display_time = Fcurrent_time(); return Qnil; }