diff options
author | Juri Linkov <juri@linkov.net> | 2020-01-30 01:22:19 +0200 |
---|---|---|
committer | Juri Linkov <juri@linkov.net> | 2020-01-30 01:22:19 +0200 |
commit | de411615344d1551d685e45b0739e1f738cf4afd (patch) | |
tree | bc61466b8d578f7a09dcf1ead44d60878940a0b0 /lisp/desktop.el | |
parent | 247f2cfa021f26fc9b36798664545027051260e9 (diff) | |
download | emacs-de411615344d1551d685e45b0739e1f738cf4afd.tar.gz |
Tab-bar related fixes.
* lisp/cus-start.el (tab-bar-mode): Use dedicated group 'tab-bar'.
* lisp/tab-bar.el (tab-bar-history-mode): Add :group 'tab-bar'.
(tab-bar-get-buffer-tab): Add optional arg 'ignore-current-tab'.
* lisp/desktop.el (desktop-buffers-not-to-save-function): Add docstring.
Diffstat (limited to 'lisp/desktop.el')
-rw-r--r-- | lisp/desktop.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/desktop.el b/lisp/desktop.el index bfab50da463..7745b50b64c 100644 --- a/lisp/desktop.el +++ b/lisp/desktop.el @@ -946,7 +946,12 @@ which means to truncate VAR's value to at most MAX-SIZE elements ")\n")))) ;; ---------------------------------------------------------------------------- -(defvar desktop-buffers-not-to-save-function nil) +(defvar desktop-buffers-not-to-save-function nil + "Function identifying buffers that are to be excluded from saving. +Like `desktop-buffers-not-to-save' it can be used to check whether +a given buffer should not be saved. It takes the same arguments as +`desktop-save-buffer-p' and should return nil if buffer should not +have its state saved in the desktop file.") (defun desktop-save-buffer-p (filename bufname mode &rest rest) "Return t if buffer should have its state saved in the desktop file. |