summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2021-10-18 09:58:48 +0200
committerMartin Rudalics <rudalics@gmx.at>2021-10-18 09:58:48 +0200
commite74e17c1f020b4570f7e63b3703c12a406985479 (patch)
tree531205ef11a856025d20e12b51f40d6e55da9063 /src
parent3b138917b792695cc015a4a6786e171e768dc708 (diff)
downloademacs-e74e17c1f020b4570f7e63b3703c12a406985479.tar.gz
Rewrites of Elisp manual including tab-bar and tab-line changes
* doc/lispref/buffers.texi (Current Buffer, Buffer List): Update references to 'selected-window'. * doc/lispref/elisp.texi (Top): Move up Selecting Windows section in front of Window Sizes section. * doc/lispref/frames.texi (Creating Frames): Say window system instead of windowing system. (Frame Layout): Add Tab Bar to layout. (Layout Parameters): Add 'tab-bar-lines'. (Input Focus): Say window system window instead of window manager window. Fix reference to 'selected-window'. * doc/lispref/objects.texi (Window Type): Minor rewrite. * doc/lispref/windows.texi (Basic Windows): Rewrite. Settle on term 'window system window' for disambiguation with our windows. Move 'selected-window' description to Selecting Windows section. Move schematic of window structure here. Use 'decorations' for objects outside the window body. Say that the areas reserved for continuation and truncation glyphs, vertical dividers and line numbers are part of the window body. (Windows and Frames): Minor rewrite, adding and fixing some cross references. Move live window schematic to 'Basic Windows' section. (Selecting Windows): Move section in front of Window Sizes section. Move description of 'selected-window' here. Move up description of 'frame-selected-window' and 'set-frame-selected-window'. Update and move description of 'window-bump-use-time' here. (Window Sizes): Throughout use the term 'decorations' instead of enumerating them individually. Add 'window-tab-line-height' description. (Resizing Windows): Again use the term 'decorations' instead of enumerating them individually. (Splitting Windows): Minor fix. (Cyclic Window Ordering): Improve descriptions of 'get-lru-window' and 'get-mru-window'. Move 'window-bump-use-time' to Selecting Windows section. (Coordinates and Windows, Window Configurations): Once more use the term 'decorations' instead of enumerating them individually. * src/window.c (Fwindow_bump_use_time): Move after 'window-use-time'. Make it work for live windows only. Make WINDOW argument optional. Update doc-string.
Diffstat (limited to 'src')
-rw-r--r--src/window.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/window.c b/src/window.c
index 9845fbb876b..e801ff821f1 100644
--- a/src/window.c
+++ b/src/window.c
@@ -765,6 +765,19 @@ selected one. */)
{
return make_fixnum (decode_live_window (window)->use_time);
}
+
+DEFUN ("window-bump-use-time", Fwindow_bump_use_time,
+ Swindow_bump_use_time, 0, 1, 0,
+ doc: /* Mark WINDOW as having been most recently used.
+WINDOW must be a live window and defaults to the selected one. */)
+ (Lisp_Object window)
+{
+ struct window *w = decode_live_window (window);
+
+ w->use_time = ++window_select_count;
+
+ return Qnil;
+}
DEFUN ("window-pixel-width", Fwindow_pixel_width, Swindow_pixel_width, 0, 1, 0,
doc: /* Return the width of window WINDOW in pixels.
@@ -8122,18 +8135,6 @@ and scrolling positions. */)
return Qt;
return Qnil;
}
-
-DEFUN ("window-bump-use-time", Fwindow_bump_use_time,
- Swindow_bump_use_time, 1, 1, 0,
- doc: /* Mark WINDOW as having been recently used. */)
- (Lisp_Object window)
-{
- struct window *w = decode_valid_window (window);
-
- w->use_time = ++window_select_count;
- return Qnil;
-}
-
static void init_window_once_for_pdumper (void);