Commit 6065fbe0 authored by Artur Malabarba's avatar Artur Malabarba

desktop.el (desktop-buffer-info): Write docstring.

parent 17ecfea3
2015-03-05 Artur Malabarba <bruce.connor.am@gmail.com>
* desktop.el (desktop-buffer-info): Write docstring.
* emacs-lisp/package.el (package-refresh-contents): Update doc.
2015-03-05 Dmitry Gutov <dgutov@yandex.ru>
......
......@@ -756,6 +756,24 @@ is nil, ask the user where to save the desktop."
;; ----------------------------------------------------------------------------
(defun desktop-buffer-info (buffer)
"Return information describing BUFFER.
This function is not pure, as BUFFER is made current with
`set-buffer'.
Returns a list of all the necessary information to recreate the
buffer, which is (in order):
`uniquify-buffer-base-name';
`buffer-file-name';
`buffer-name';
`major-mode';
list of minor-modes,;
`point';
`mark';
`buffer-read-only';
auxiliary information given by `desktop-save-buffer';
local variables;
auxiliary information given by `desktop-var-serdes-funs'."
(set-buffer buffer)
(list
;; base name of the buffer; replaces the buffer name if managed by uniquify
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment