1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

95 Commits

Author SHA1 Message Date
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
Juanma Barranquero
16906a6529 Add new maintainer. 2003-06-04 22:23:31 +00:00
Juanma Barranquero
73b0b745c3 (desktop-create-buffer): Undo last change.
(desktop-kill, desktop-save, desktop-remove): Use expand-directory rather than
concat to construct desktop filename.
(desktop-kill, desktop-read, desktop-change-dir): Ensure desktop-dirname is a
directory name.
(desktop-change-dir): Fix bug when DIR was relative.
2003-06-03 23:35:20 +00:00
Michael Kifer
27e4fd45a6 2003-06-01 Michael Kifer <kifer@cs.stonybrook.edu>
* desktop.el (desktop-create-buffer): Added (desktop-first-buffer) to
	the let-statement to avoid the startup error that desktop-first-buffer
	is undefined.
2003-06-01 17:17:10 +00:00
Juanma Barranquero
7bcbf3c23c (desktop-save): Ensure parameter is expanded and ends with a slash before
assigning it to desktop-dirname and default-directory.
(desktop-read): Put buffers existing prior to evaluating the desktop (and not
reused) at the end of the buffer list.
(desktop-create-buffer): Don't update desktop-first-buffer for old desktop
files.
2003-05-19 22:17:30 +00:00
Richard M. Stallman
c2aa674b4e (desktop-buffer-mh): Don't require mh-e;
it causes trouble in compilation.
2003-04-19 04:22:29 +00:00
Richard M. Stallman
7065d42f22 (desktop-base-file-name): Renamed from desktop-basefilename. Add defvaralias. 2003-04-14 10:00:00 +00:00
Juanma Barranquero
84b538ecf8 (desktop-buffer-file): Restore major-mode if it is different from the normal
mode.
2003-04-10 16:26:12 +00:00
Richard M. Stallman
4a2fce7a9f Handle multiple desktop files in different dirs.
Other cleanups.
Command line option --no-desktop introduced.
(desktop-read): Record buffers in the desktop file in
the same order as that in the buffer list,
(desktop-save): Put buffers in the order given in desktop file,
regardless of what handlers do.
(desktop-file-version): New variable. Version number of desktop
file format.
(desktop-create-buffer-form): Variable deleted.
(desktop-save): New customizable variable.
(desktop-kill): Changed to use `desktop-save'.
(desktop-file-name-format): New option: format in
which desktop file names should be saved.
(desktop-file-name): New function to convert a filename to the
format specified in `desktop-file-name-format'.
(desktop-create-buffer): Parameters renamed to descriptive
systematic names. These parameters are visible to handlers.
Renames:
ver    -> desktop-file-version
mim    -> desktop-buffer-minor-modes
pt     -> desktop-buffer-point
mk     -> desktop-buffer-mark
ro     -> desktop-buffer-read-only
locals -> desktop-buffer-locals
(desktop-buffer-major-mode, desktop-buffer-file-name)
(desktop-buffer-name): Unused customizable variables deleted.
(desktop-buffer-misc): Unused variable deleted.
(desktop-save, desktop-buffer-dired-misc-data):
Use `desktop-file-name'.
(desktop-path): New customizable variable.  List of directories in
which to lookup the desktop file. Replaces hardcoded list.
(desktop-globals-to-clear): New variable replaces hardcoded list.
(desktop-clear-preserve-buffers-regexp): New customizable variable.
(desktop-after-read-hook): New hook run after a desktop is read.
(desktop-no-desktop-file-hook): New hook when no desktop file found.
(desktop-change-dir): New function.
(desktop-save-in-load-dir): New function. Save desktop in
directory from witch it was loaded.
(desktop-revert): New function. Revert to the last loaded desktop.
2003-04-09 01:37:56 +00:00
Juanma Barranquero
e571462046 (desktop-relative-file-names): New variable.
(desktop-save): Use it.
2002-11-04 08:21:51 +00:00
Richard M. Stallman
0a8c82250e (desktop-buffer-handlers): Doc fix.
(desktop-buffer-file): Explicitly return BUF.
2002-03-11 09:15:27 +00:00
Stefan Monnier
2916afbdfb (desktop-create-buffer): Use functionp. 2001-11-16 14:32:38 +00:00
Gerd Moellmann
1d500ca6e8 (desktop-last-buffer): New variable.
(desktop-create-buffer): Set it.
(desktop-read): Bind it and switch to that buffer.
2001-10-23 13:52:45 +00:00
Eli Zaretskii
cceff8d6ea (desktop-save): Insert the coding: tag before desktop-header. 2001-08-13 10:37:02 +00:00