Mercurial > hg > xemacs-beta
diff src/bufslots.h @ 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 | e22b0213b713 |
children | 308d34e9f07d |
line wrap: on
line diff
--- a/src/bufslots.h Mon May 24 10:43:29 2010 +0200 +++ b/src/bufslots.h Fri May 28 13:48:22 2010 +0100 @@ -216,6 +216,12 @@ /* The string generated by formatting the modeline in this buffer. */ MARKED_SLOT (generated_modeline_string) + /* Incremented each time a buffer is displayed using set-window-buffer. */ + MARKED_SLOT (display_count) + + /* Last time this buffer was displayed using set-window-buffer. */ + MARKED_SLOT (display_time) + /* A hash table that maps from a "generic extent" (an extent in `modeline-format') into a buffer-specific extent. */ MARKED_SLOT (modeline_extent_table)