HPC.ru lite - Все форумы
Форум: КПК и смартфоны на Linux: Zaurus, планшеты Nokia, прочее
Тема: emacs автосохранение
[Ответить]
Neon_Kaligula [22.01.2006 21:47] emacs автосохранение:
Кто-нибудь знает как можно заставить emacs не автосохранять редактируемый текст?
DMych [22.01.2006 23:58] :
Просто внимательно читаем документацию.
Автосохранение в емаксе не всегда означает запись в файл, связанный с буфером.
Если критично, напиши мне подробно что ты хочешь? Завтра постараюсь ответить.
Neon_Kaligula [23.01.2006 00:25] :
Периодически пишет внизу: Auto-saving...done
При работе с файлами больше метра заметно тормозит процесс. Хотелось бы это отключить.
DMych [23.01.2006 10:50] :
Neon_Kaligula писал(а):
Периодически пишет внизу: Auto-saving...done
При работе с файлами больше метра заметно тормозит процесс. Хотелось бы это отключить.
1. операция может быть прервана нажатием C-g (as usual)
2. читаем раздел "Auto-Saving: Protection Against Disasters" info-документации по емаксу:
Emacs does auto-saving periodically based on counting how many
characters you have typed since the last time auto-saving was done.
The variable `auto-save-interval' specifies how many characters there
are between auto-saves. By default, it is 300.
Auto-saving also takes place when you stop typing for a while. The
variable `auto-save-timeout' says how many seconds Emacs should wait
before it does an auto save (and perhaps also a garbage collection).
(The actual time period is longer if the current buffer is long; this
is a heuristic which aims to keep out of your way when you are editing
long buffers, in which auto-save takes an appreciable amount of time.)
Auto-saving during idle periods accomplishes two things: first, it
makes sure all your work is saved if you go away from the terminal for
a while; second, it may avoid some auto-saving while you are actually
typing.
Neon_Kaligula [23.01.2006 13:34] :
Хм. Прервана... А вообще отключить автосохранение можно? Если да, то как?
DMych [23.01.2006 14:12] :
Neon_Kaligula писал(а):
Хм. Прервана... А вообще отключить автосохранение можно? Если да, то как?
Еще раз: читаем документацию! Я даже сказал какую и где! В конце концов, тут форум все-таки по Заврам, а не Емаксу. 
Each time you visit a file, auto-saving is turned on for that file's
buffer if the variable `auto-save-default' is non-`nil' (but not in
batch mode; *note Entering Emacs:
. The default for this variable is
`t', so auto-saving is the usual practice for file-visiting buffers.
Auto-saving can be turned on or off for any existing buffer with the
command `M-x auto-save-mode'. Like other minor mode commands, `M-x
auto-save-mode' turns auto-saving on with a positive argument, off with
a zero or negative argument; with no argument, it toggles.
[Ответить]