]> git.eshelyaron.com Git - emacs.git/commit
New functions to set and use context of window points (bug#33871)
authorJuri Linkov <juri@linkov.net>
Tue, 2 Apr 2024 17:17:41 +0000 (20:17 +0300)
committerEshel Yaron <me@eshelyaron.com>
Wed, 3 Apr 2024 06:49:16 +0000 (08:49 +0200)
commit6d8e1b6805d261034e100671095046a10a7dd355
tree7a47d5cebbbd05ba442ffae34b800691be04ad1f
parentf75893a771d8e13e3ab334dff5548fb1effd6526
New functions to set and use context of window points (bug#33871)

* lisp/dired.el (dired-mode): Set buffer-local
'window-point-context-set-function' to remember 'dired-filename'
or 'position' in the window with the Dired buffer.
Set buffer-local 'window-point-context-use-function' to restore
the remembered position of the window point.

* lisp/tab-bar.el (tab-bar--tab): Use window-point-context-set.
(tab-bar-select-restore-context): New user option.
(tab-bar-select-tab): Use window-point-context-use.

* lisp/window.el: Add '(context . writable)' to
'window-persistent-parameters'.
(window-point-context-set, window-point-context-use): New functions.
(window-point-context-set-default-function)
(window-point-context-use-default-function): New functions.
(window-point-context-set-function)
(window-point-context-use-function): New variables.

(cherry picked from commit c3781bf59edcd67769d068b5bc8f724e890d8e54)
etc/NEWS
lisp/dired.el
lisp/tab-bar.el
lisp/window.el