1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-14 18:10:32 -08:00
Commit graph

359 commits

Author SHA1 Message Date
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
Dave Love
eca8bedbde (desktop-save): Use utf-8-emacs coding system, not
emacs-mule.
2002-05-27 14:52:46 +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
Thien-Thi Nguyen
9e265777d9 (desktop-save, desktop-create-buffer): Handle all minor modes. 1998-10-20 19:38:09 +00:00
Dan Nicolaescu
cd32a7baa4 *** empty log message *** 1998-04-20 02:34:53 +00:00
Richard M. Stallman
608b9ed2e4 (desktop-buffer-info, desktop-buffer-rmail)
(desktop-buffer-mh, desktop-buffer-dired, desktop-buffer-file):
Return the buffer produced.
(desktop-create-buffer): Use the buffer that was returned.
1998-03-30 04:29:36 +00:00
Richard M. Stallman
478653c95d (desktop-load-default): Add autoload cookie.
(desktop-read): Likewise.
1998-03-28 07:32:50 +00:00
Richard M. Stallman
2f348ca38c (desktop-clear): Don't kill dead buffers. 1998-01-26 03:09:01 +00:00
Richard M. Stallman
813dbb2d58 (desktop-enable): New variable.
(after-init-hook): Add a hook to test desktop-enable.
(desktop-save-hook): Doc fix.
1997-12-29 20:58:19 +00:00
Richard M. Stallman
f9be457422 (desktop-clear-preserve-buffers): New variable.
(desktop-clear): Kill all buffers except internal ones
and those listed in desktop-clear-preserve-buffers.
1997-07-04 00:13:36 +00:00
Richard M. Stallman
21f521c0db (desktop-clear): Don't kill buffers here. 1997-07-02 03:37:27 +00:00
Richard M. Stallman
bbf5eb2805 Add defgroup's; use defcustom for user vars. 1997-04-12 03:18:33 +00:00
Richard M. Stallman
481d6f8707 (desktop-missing-file-warning): Make the default nil. 1997-03-22 03:36:37 +00:00
Richard M. Stallman
fc71550113 (desktop-basefilename): Use convert-standard-filename. 1996-09-01 19:04:28 +00:00
Richard M. Stallman
2699e23efe Global var `misc' renamed.
(desktop-buffer-misc): Renamed from misc.  Add defvar.
1996-03-05 16:42:06 +00:00
Richard M. Stallman
569c754ea9 Global vars mam, fn, bn renamed.
(desktop-buffer-major-mode): Renamed from mam.  Add defvar.
(desktop-buffer-file-name): Renamed from fn.  Add defvar.
(desktop-buffer-name): Renamed from bn.  Add defvar.
(desktop-create-buffer, desktop-buffer): Use new names.
1996-03-05 16:37:03 +00:00
Richard M. Stallman
ed2f7fc80b (desktop-list*): New function.
(desktop-internal-v2s): Generate output using desktop-list*.
1996-03-05 04:22:44 +00:00
Richard M. Stallman
253406b97a (desktop-read): Do nothing in batch mode.
Clear desktop-delay-hook after use.  Simplify.
1996-01-14 23:24:40 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Karl Heuer
a7acbbe4d4 Comment fixes. 1996-01-05 22:21:28 +00:00
Richard M. Stallman
0e7c861135 (desktop-outvar): Support truncation.
(desktop-globals-to-save): Doc fix.
1995-10-08 19:37:04 +00:00
Richard M. Stallman
f4c73d078f (desktop-save): Use dired-directory as name
of top-level in order to capture wildcards used.
(desktop-buffer-dired): Skip possible wildcard when checking
for directory existance.  Use dired-insert-subdir, not
dired-maybe-insert-subdir.
1995-04-06 20:05:39 +00:00
Richard M. Stallman
95bf6435fc (desktop-internal-v2s): Don't use format to eliminate text properties. 1995-02-17 23:22:51 +00:00
Richard M. Stallman
577ed2b24d Many doc fixes. 1995-01-30 06:14:33 +00:00
Richard M. Stallman
4a091f2a34 (desktop-basefilename): Use emacs.dsk on windows-nt. 1994-11-01 05:46:57 +00:00
Richard M. Stallman
e2247420b1 (desktop-internal-v2s): Remove all text properties from strings. 1994-10-13 21:47:50 +00:00
Richard M. Stallman
e36d00d496 (desktop-buffer-rmail): Handle the situation
where the RMAIL file is locked, mail is waiting, and the
user selects `quit' gracefully.
1994-07-06 19:45:38 +00:00
Karl Heuer
fa37963643 (desktop-files-not-to-save): New variable to exclude certain files -- magic
ftp names by default -- from being put into desktop files.
(desktop-save-buffer-p): Check file name also.
(desktop-save-buffer-p): For directories loaded by dired consider the
directory to be the file name.
(desktop-locals-to-save): Add line-number-mode to be saved when local.
(desktop-remove): In case the desktop file cannot be deleted make sure that
the desktop system is still inactivated.
(desktop-kill): In case an error occurs when saving the desktop, offer to quit
regardless.
(desktop-save-buffer-p): Disregard case when testing file and buffer names
against regexps.
(desktop-buffer-dired): Display a warning if a directory no longer exists.
(desktop-save-hook): New variable.
(desktop-save): Run desktop-save-hook.
(desktop-clear): Clear search history.
(desktop-internal-v2s): Be more explicit when encountering an unprintable
value.
1994-05-01 02:07:27 +00:00