921 |
|
|
922 |
@vindex comint-scroll-show-maximum-output |
@vindex comint-scroll-show-maximum-output |
923 |
If @code{comint-scroll-show-maximum-output} is non-@code{nil}, then |
If @code{comint-scroll-show-maximum-output} is non-@code{nil}, then |
924 |
scrolling due to the arrival of output tries to place the last line of |
arrival of output when point is at the end tries to place the last line of |
925 |
text at the bottom line of the window, so as to show as much useful |
text at the bottom line of the window, so as to show as much useful |
926 |
text as possible. (This mimics the scrolling behavior of many |
text as possible. (This mimics the scrolling behavior of many |
927 |
terminals.) The default is @code{nil}. |
terminals.) The default is @code{nil}. |
928 |
|
|
929 |
@vindex comint-scroll-to-bottom-on-output |
@vindex comint-move-point-for-output |
930 |
By setting @code{comint-scroll-to-bottom-on-output}, you can opt for |
By setting @code{comint-move-point-for-output}, you can opt for |
931 |
having point jump to the end of the buffer whenever output arrives---no |
having point jump to the end of the buffer whenever output arrives---no |
932 |
matter where in the buffer point was before. If the value is |
matter where in the buffer point was before. If the value is |
933 |
@code{this}, point jumps in the selected window. If the value is |
@code{this}, point jumps in the selected window. If the value is |
1875 |
@cindex reload files |
@cindex reload files |
1876 |
@cindex desktop |
@cindex desktop |
1877 |
|
|
1878 |
You can use the Desktop library to save the state of Emacs from one |
Use the desktop library to save the state of Emacs from one session |
1879 |
session to another. Saving the state means that Emacs starts up with |
to another. Once you save the Emacs @dfn{desktop}---the buffers, |
1880 |
the same set of buffers, major modes, buffer positions, and so on that |
their file names, major modes, buffer positions, and so on---then |
1881 |
the previous Emacs session had. |
subsequent Emacs sessions reload the saved desktop. |
1882 |
|
|
1883 |
@vindex desktop-enable |
@findex desktop-save |
1884 |
To use Desktop, you should use the Customization buffer (@pxref{Easy |
@vindex desktop-save-mode |
1885 |
Customization}) to set @code{desktop-enable} to a non-@code{nil} value, |
You can save the desktop manually with the command @kbd{M-x |
1886 |
or add these lines at the end of your @file{.emacs} file: |
desktop-save}. You can also enable automatical desktop saving when |
1887 |
|
you exit Emacs: use the Customization buffer (@pxref{Easy |
1888 |
|
Customization}) to set @code{desktop-save-mode} to @code{t} for future |
1889 |
|
sessions, or add this line in your @file{~/.emacs} file: |
1890 |
|
|
1891 |
@example |
@example |
1892 |
(desktop-load-default) |
(desktop-save-mode 1) |
|
(desktop-read) |
|
1893 |
@end example |
@end example |
1894 |
|
|
1895 |
@noindent |
@findex desktop-change-dir |
1896 |
@findex desktop-save |
@findex desktop-revert |
1897 |
The first time you save the state of the Emacs session, you must do it |
When Emacs starts, it looks for a saved desktop in the current |
1898 |
manually, with the command @kbd{M-x desktop-save}. Once you have done |
directory. Thus, you can have separate saved desktops in different |
1899 |
that, exiting Emacs will save the state again---not only the present |
directories, and the starting directory determines which one Emacs |
1900 |
Emacs session, but also subsequent sessions. You can also save the |
reloads. You can save the current desktop and reload one saved in |
1901 |
state at any time, without exiting Emacs, by typing @kbd{M-x |
another directory by typing @kbd{M-x desktop-change-dir}. Typing |
1902 |
desktop-save} again. |
@kbd{M-x desktop-revert} reverts to the desktop previously reloaded. |
1903 |
|
|
1904 |
In order for Emacs to recover the state from a previous session, you |
Specify the option @samp{--no-desktop} on the command line when you |
1905 |
must start it with the same current directory as you used when you |
don't want it to reload any saved desktop. |
1906 |
started the previous session. This is because @code{desktop-read} looks |
|
1907 |
in the current directory for the file to read. This means that you can |
@findex desktop-clear |
1908 |
have separate saved sessions in different directories; the directory in |
@vindex desktop-globals-to-clear |
1909 |
which you start Emacs will control which saved session to use. |
@vindex desktop-clear-preserve-buffers-regexp |
1910 |
|
Type @kbd{M-x desktop-clear} to empty the Emacs desktop. This kills |
1911 |
@vindex desktop-files-not-to-save |
all buffers except for internal ones, and clears the global variables |
1912 |
The variable @code{desktop-files-not-to-save} controls which files are |
listed in @code{desktop-globals-to-clear}. If you want this to |
1913 |
excluded from state saving. Its value is a regular expression that |
preserve certain buffers, customize the variable |
1914 |
matches the files to exclude. By default, remote (ftp-accessed) files |
@code{desktop-clear-preserve-buffers-regexp}, whose value is a regular |
1915 |
are excluded; this is because visiting them again in the subsequent |
expression matching the names of buffers not to kill. |
|
session would be slow. If you want to include these files in state |
|
|
saving, set @code{desktop-files-not-to-save} to @code{"^$"}. |
|
|
@xref{Remote Files}. |
|
|
|
|
|
@vindex save-place |
|
|
@cindex Saveplace |
|
|
@findex toggle-save-place |
|
|
The Saveplace library provides a simpler feature that records your |
|
|
position in each file when you kill its buffer (or kill Emacs), and |
|
|
jumps to the same position when you visit the file again (even in |
|
|
another Emacs session). Use @kbd{M-x toggle-save-place} to turn on |
|
|
place-saving in a given file. Customize the option @code{save-place} |
|
|
to turn it on for all files in each session. |
|
1916 |
|
|
1917 |
@node Recursive Edit, Emulation, Saving Emacs Sessions, Top |
@node Recursive Edit, Emulation, Saving Emacs Sessions, Top |
1918 |
@section Recursive Editing Levels |
@section Recursive Editing Levels |
2439 |
@findex zone |
@findex zone |
2440 |
The command @kbd{M-x zone} plays games with the display when Emacs is |
The command @kbd{M-x zone} plays games with the display when Emacs is |
2441 |
idle. |
idle. |
2442 |
|
|
2443 |
|
@ignore |
2444 |
|
arch-tag: 8f094220-c0d5-4e9e-af7d-3e0da8187474 |
2445 |
|
@end ignore |