1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

84 Commits

Author SHA1 Message Date
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
Gerd Moellmann
14d8c7f0c9 (desktop-save): Don't use concat to form a file
name, use expand-file-name.
2001-08-09 15:50:09 +00:00
Gerd Moellmann
7642acca1e (desktop-save): Bind coding-system-for-write to
`emacs-mule' for write-region.
2001-07-31 14:04:50 +00:00
Gerd Moellmann
291e3b68cf (desktop-save): Add `-*- coding: emacs-mule -*-' to
the desktop file.
2001-07-30 06:23:47 +00:00
John Wiegley
b6b70cda7c Added extensible special buffer support to desktop.el. See the
ChangeLog.
2000-10-13 09:11:16 +00:00
Stefan Monnier
80f9f3db87 (desktop-modes-not-to-save): New var.
(desktop-save-buffer-p): Use it.
Also, obey desktop-buffers-not-to-save even for non-file buffers.
(desktop-buffer-file): Use pop-to-buffer if switch-to-buffer fails.
2000-10-10 16:42:37 +00:00
Eli Zaretskii
69db7ee70f (desktop-save): Don't look at symbol-value of a
member of minor-mode-alist, unless it is boundp.
2000-08-16 18:19:47 +00:00
Gerd Moellmann
4764024483 (desktop-save): Save list of minor modes.
(desktop-create-buffer): Restore minor modes.
(desktop-minor-mode-table): New user-option.
2000-04-26 17:33:02 +00:00
Dave Love
3ea96cacd5 Fix keywords comment. 2000-02-02 14:05:36 +00:00
Karl Heuer
201006c436 (desktop-save, desktop-create-buffer): Undo 10-22 change. 1998-11-11 19:31:24 +00:00
Richard M. Stallman
581bba23d4 (desktop-buffer-dired): Use dired-maybe-insert-subdir. 1998-10-26 05:00:27 +00:00
Thien-Thi Nguyen
7c3d2af256 (desktop-create-buffer): Handle old (broken) minor mode support. 1998-10-22 06:44:53 +00:00