Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
5213:7abb91db1e64 | 5214:0b4d355771bd |
---|---|
3755 if (NILP (norecord)) | 3755 if (NILP (norecord)) |
3756 Frecord_buffer (buffer); | 3756 Frecord_buffer (buffer); |
3757 | 3757 |
3758 Fset_buffer (buffer); | 3758 Fset_buffer (buffer); |
3759 } | 3759 } |
3760 if (NILP (XBUFFER (buffer)->display_count)) | |
3761 XBUFFER (buffer)->display_count = make_int (1); | |
3762 else | |
3763 XBUFFER (buffer)->display_count = make_int (1 + XINT (XBUFFER (buffer)->display_count)); | |
3764 XBUFFER (buffer)->display_time = Fcurrent_time(); | |
3760 return Qnil; | 3765 return Qnil; |
3761 } | 3766 } |
3762 | 3767 |
3763 DEFUN ("select-window", Fselect_window, 1, 2, 0, /* | 3768 DEFUN ("select-window", Fselect_window, 1, 2, 0, /* |
3764 Select WINDOW. Most editing will apply to WINDOW's buffer. | 3769 Select WINDOW. Most editing will apply to WINDOW's buffer. |