1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00
Commit Graph

108 Commits

Author SHA1 Message Date
Stefan Monnier
341c2f07d4 (desktop-save, desktop-create-buffer): Replace mapcar with dolist.
(after-init-hook): Don't quote lambda.
(desktop-first-buffer): Don't wrap it in eval-when-compile.
(desktop-internal-v2s): Remove unused var `el'.
(desktop-buffer-major-mode, desktop-buffer-locals): Move out of
desktop-restore-file-buffer.
(desktop-buffer-ok-count, desktop-buffer-fail-count): Move out of
desktop-create-buffer.
2007-04-11 02:28:26 +00:00
Chong Yidong
c5c1022d71 (desktop-create-buffer, desktop-save): Revert 2004-11-12 change. 2007-04-06 18:35:23 +00:00
Lars Hansen
f6218c044c *** empty log message *** 2007-02-28 08:59:40 +00:00
Glenn Morris
d7a0267c8d Add 2007 to copyright years. 2007-01-21 03:53:13 +00:00
Lars Hansen
4cffefee99 Add comment. 2006-09-12 07:13:52 +00:00
David Kastrup
e24f9e5a68 (desktop-read): when loading a desktop, disable
saving it while the load progresses, and switch off a pending lazy
load by calling `desktop-lazy-abort'.
2006-09-08 19:47:27 +00:00
Lars Hansen
114258349c (desktop-full-file-name): New function.
(desktop-kill, desktop-save, desktop-remove, desktop-read)
(desktop-revert): Use it.
(desktop-clear, desktop-save, desktop-remove): Add autoload cookie.
(desktop-after-read-hook): Add option list-buffers.
(desktop-locals-to-save): Add tab-width.
(desktop-save-mode, desktop-no-desktop-file-hook, desktop-save-hook):
Fix docstring.
2006-06-23 21:42:33 +00:00
Lars Hansen
6c27fdb95d (desktop-missing-file-warning): Fix docstring.
(desktop-restore-file-buffer): Correct question asked on missing file.
2006-05-14 20:26:37 +00:00
Lars Hansen
9fbcde29a5 (desktop-save): Use with-temp-buffer. 2006-05-13 13:32:10 +00:00
Juanma Barranquero
be617bbf58 (desktop-outvar): Fix typo.
(desktop-save-buffer-p): Doc fix.
2006-02-10 11:07:50 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Juri Linkov
07696982f1 (desktop-load-file): Check for fboundp' before calling symbol-function'. 2006-01-23 01:23:10 +00:00
Juri Linkov
5fff026521 (desktop-minor-mode-table): Add vc-dired-mode with nil. 2005-12-14 07:44:44 +00:00
Juri Linkov
df410295ca (desktop-buffers-not-to-save): Remove TAGS from the default value.
(desktop-modes-not-to-save): Add tags-table-mode to the default value.
2005-10-21 08:48:53 +00:00
Lars Hansen
97b3a2143e (desktop-load-file): Do nothing when FUNCTION is nil. 2005-10-12 09:16:55 +00:00
Deepak Goel
8a26c16552 Message format spec fixes (1) 2005-09-18 12:25:02 +00:00
Andreas Schwab
498eb267ff Put autoload cookie at risky-local-variable declarations. 2005-08-14 23:55:03 +00:00
Lars Hansen
0f4804e7eb (desktop-buffer-mode-handlers): Make
non-customizable. Add autoload cookie.  Change initial value to
nil; add elements in respective modules instead. Fix doc string.
(desktop-load-file): New function.
(desktop-minor-mode-handlers): New autoloaded variable.
(desktop-create-buffer): Call minor mode handlers. Use
desktop-load-file to load major and minor mode modules prior to
checking for a handler.
(desktop-save): Don't add nil to desktop-minor-modes for minor
modes with nil function in desktop-minor-mode-table. Don't delete
desktop file before rewriting it.
(desktop-locals-to-save): Add autoload cookie. Don't make
automatically buffer-local.  Add variables column-number-mode,
size-indication-mode, indent-tabs-mode,
indicate-buffer-boundaries, indicate-empty-lines and
show-trailing-whitespace.
(desktop-clear): Allow desktop-clear-preserve-buffers to contain
regexps. Don't use desktop-clear-preserve-buffers-regexp.
(desktop-clear-preserve-buffers-regexp): Delete.
(desktop-clear-preserve-buffers): Update initial value and
docstring.
(desktop-save-buffer): Fix doc string.
2005-08-10 19:38:52 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Juanma Barranquero
b89c5a722e (desktop-save-buffer): Fix typos in docstring.
(desktop-load-default): Simplify.
2005-07-29 10:25:15 +00:00
Juanma Barranquero
4880a2744a (desktop-clear-preserve-buffers-regexp): Also preserve the *server* buffer. 2005-07-21 11:50:38 +00:00
Juanma Barranquero
3f32d6a3ed (desktop-enable, desktop-basefilename): Declare with
`define-obsolete-variable-alias'.
(desktop-internal-v2s): Don't quote keywords.
(desktop-clear): "?\ " -> "?\s".
2005-07-19 23:42:38 +00:00
Juanma Barranquero
cc8b76bf86 (desktop-enable, desktop-buffer-modes-to-save, (desktop-buffer-misc-functions,
desktop-buffer-handlers, desktop-load-default): Add release to obsolescence
info.
(desktop-globals-to-clear, desktop-buffer-mode-handlers,
desktop-append-buffer-args, desktop-read): Fix typos in docstrings.
(desktop-kill): Fix typo in message.
(desktop-save): Doc fix.
2005-07-19 09:54:05 +00:00
Lars Hansen
247c36494f Update e-mail address. 2005-07-12 18:05:09 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Lars Hansen
4b217d4608 Make "--no-desktop" turn off `desktop-save-mode'. 2005-04-18 18:27:39 +00:00
Lute Kamstra
8649a87bb4 (desktop-no-desktop-file-hook, desktop-after-read-hook): Fix docstring. 2005-04-03 14:01:43 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Juri Linkov
aac42a1b2c (desktop-save): Add `mode: emacs-lisp' to the local
variables line in desktop files.
2005-01-12 00:52:33 +00:00
David Kastrup
0ba9bc53bd (desktop-restore-eager): Fix typo in type. 2005-01-09 13:31:53 +00:00
Lars Hansen
150f39ee71 (desktop-restore-eager, desktop-lazy-verbose, desktop-lazy-idle-delay):
New customizable variables.
(desktop-buffer-args-list): New variable.
(desktop-append-buffer-args): New function.
(desktop-save): Call desktop-append-buffer-args for some buffers.
(desktop-lazy-create-buffer): New function.
(desktop-idle-create-buffers): New function.
(desktop-read): Add message about buffers to restore lazily.
(desktop-lazy-abort): New command.
(desktop-clear): Call desktop-lazy-abort.
(desktop-lazy-complete): New command.
2005-01-07 20:18:59 +00:00
Lars Hansen
48aa4dfc27 (desktop-read): Replace mapcar with mapc.
(desktop-create-buffer): Replace mapcar with mapc. Remove redundant piece of code.
2004-11-26 17:37:58 +00:00
Eli Zaretskii
63cd573484 (desktop-create-buffer, desktop-save): Avoid some consing by using mapc
instead of mapcar.
2004-11-12 16:56:09 +00:00
Lars Hansen
af61551b5e (desktop-buffer-mode-handlers, desktop-after-read-hook,
desktop-clear-preserve-buffers-regexp, desktop-file-name-format,
desktop-globals-to-clear, desktop-no-desktop-file-hook, desktop-path,
desktop-save): Add :version.
2004-11-11 19:02:56 +00:00
Lars Hansen
340db502fa (desktop-clear-preserve-buffers): Remove make-obsolete-variable. 2004-09-09 19:45:03 +00:00
Lars Hansen
7bfa55b358 (desktop-save): Don't save minor modes without a known mode initialization function. 2004-05-31 21:45:51 +00:00
Lars Hansen
9bcabb45f7 (desktop-buffer-mode-handlers): Fix docstring. 2004-05-07 19:41:11 +00:00
Lars Hansen
5577544820 (desktop-buffer-mode-handlers): Fix docstring. 2004-05-07 17:58:24 +00:00
Juri Linkov
eb9828986d Fix comment. 2004-04-27 06:52:35 +00:00
Lars Hansen
ebb395551e (desktop-buffer-misc-data-function): Rename to desktop-save-buffer and change docstring.
(desktop-buffer-modes-to-save): Delete.
(desktop-save-buffer-p): Use desktop-save-buffer instead of
desktop-buffer-modes-to-save.
(desktop-save): Rename desktop-buffer-misc-data-function to
desktop-save-buffer and allow non-function value.
(desktop-missing-file-warning): Correct docstring.
2004-04-26 18:58:19 +00:00
Lars Hansen
e5780ae17e (desktop-buffer-mode-handlers): New variabel. Alist
of major mode specific functions to restore a desktop buffer.
(desktop-buffer-handlers): Make variabel obsolete.
(desktop-create-buffer): Use desktop-buffer-mode-handlers. Catch
errors signaled in handlers. Update buffer count. Evaluate
desktop-buffer-point.
(desktop-buffer-dired): Rename to dired-restore-desktop-buffer and
move to dired.el.
(desktop-buffer-info): Rename to Info-restore-desktop-buffer and
move to info.el.
(desktop-buffer-rmail): Rename to rmail-restore-desktop-buffer and
move to mail/rmail.el.
(desktop-buffer-mh): Rename to mh-restore-desktop-buffer and move
to mh-e/mh-e.el.
(desktop-buffer-file): Rename to desktop-restore-file-buffer. An
fail, print message (to message buffer) even if
desktop-missing-file-warning is nil.
(desktop-buffer-misc-data-function): New buffer local
variable. Function returning major mode specific data.
(desktop-buffer-misc-functions): Make variable obsolete.
(desktop-save): Use desktop-buffer-misc-data-function.
(desktop-buffer-dired-misc-data): Rename to
dired-desktop-buffer-misc-data and move to dired.el.
(desktop-buffer-info-misc-data): Rename to
Info-desktop-buffer-misc-data and move to info.el.
(desktop-read): Add message about number of buffers
restored/failed.
2004-04-21 20:53:35 +00:00
Juanma Barranquero
05f1c4ec55 (desktop-file-version, desktop-after-read-hook): Fix typos.
(desktop-clear-preserve-buffers): Remove redundant info in docstring
already shown by the obsolescence message.
(desktop-truncate, desktop-internal-v2s, desktop-value-to-string): Change
argument name to match docstring.
2004-02-29 23:13:58 +00:00
Lars Hansen
bd382a2755 (desktop-locals-to-save): Add buffer-file-coding-system.
(desktop-buffer-file): Use saved buffer-file-coding-system
for file reading.  Set auto-insert to nil to prevent automatic
insertion into restored empty files.
2003-11-05 13:28:48 +00:00
Lars Hansen
c5b31c4d79 A lot of comments updated.
(desktop-save-mode): Minor mode introduced.
(desktop-enable, desktop-clear-preserve-buffers): Variables made obsolete.
(desktop-load-default): Function made obsolete.
(desktop-locals-to-save): Variable made customizable.
(desktop-read): Optional parameter `dirname' added.
(desktop-change-dir, desktop-revert): Parameter `dirname' in `desktop-read' used.
(desktop-save-in-load-dir): Renamed to `desktop-save-in-desktop-dir'.
2003-09-30 07:22:22 +00:00
Lars Hansen
16dbbed6b9 2003-09-08 Lars Hansen <larsh@math.ku.dk>
* desktop.el (desktop-buffer-dired): Change name of local variable
	to be different from buffer local variable `dired-directory'.
2003-09-08 07:02:44 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Richard M. Stallman
0e874d8954 Comment change. 2003-08-29 16:20:18 +00:00
Alex Schroeder
d12d93962c Commentary change.
(desktop-kill): Unquoted t.
2003-08-17 09:32:10 +00:00
Juanma Barranquero
df7eb2bd5f (desktop-buffer-dired-misc-data, desktop-buffer-dired): Handle `dired-directory'
being a list.
2003-07-13 17:20:00 +00:00
Richard M. Stallman
6df8016c93 (desktop-buffer-info, desktop-buffer-mh): Use with-no-warnings. 2003-07-07 21:04:28 +00:00