diff options
| author | Juri Linkov | 2019-09-05 22:27:42 +0300 |
|---|---|---|
| committer | Juri Linkov | 2019-09-05 22:27:42 +0300 |
| commit | 2a0164753456d0f788aa026bdd903ac76519d6ab (patch) | |
| tree | cd1d607d81b73ebba8edcaa9c829cbc1fda2b1a8 /src/buffer.h | |
| parent | 7970c89c770f475ab67a8de84223e45c5bb23d8c (diff) | |
| download | emacs-2a0164753456d0f788aa026bdd903ac76519d6ab.tar.gz emacs-2a0164753456d0f788aa026bdd903ac76519d6ab.zip | |
Don't use hook pre-redisplay-functions. Set buffer-local tab-line-format.
* lisp/tab-line.el (tab-line-format): Move to C.
(tab-line-update-window-parameter): Remove function.
(global-tab-line-mode): Set the default value of tab-line-format.
* src/buffer.c (syms_of_buffer): Define buffer-local variable
tab-line-format.
* src/buffer.h (struct buffer): Add tab_line_format_.
* src/window.c (window_wants_tab_line):
* src/xdisp.c (pos_visible_p, display_mode_lines):
Check for buffer-local tab_line_format.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.h b/src/buffer.h index 2080a6f40b7..e411ab5461d 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -539,6 +539,10 @@ struct buffer | |||
| 539 | of windows. Nil means don't display that line. */ | 539 | of windows. Nil means don't display that line. */ |
| 540 | Lisp_Object header_line_format_; | 540 | Lisp_Object header_line_format_; |
| 541 | 541 | ||
| 542 | /* Analogous to mode_line_format for the line displayed at the top | ||
| 543 | of windows. Nil means don't display that line. */ | ||
| 544 | Lisp_Object tab_line_format_; | ||
| 545 | |||
| 542 | /* Keys that are bound local to this buffer. */ | 546 | /* Keys that are bound local to this buffer. */ |
| 543 | Lisp_Object keymap_; | 547 | Lisp_Object keymap_; |
| 544 | 548 | ||