emacs автосохранение

КПК с Linux, установка Linux на iPaq и другие модели, программы
Закрыто
Neon_Kaligula
Аспирант (2 lvl)
Сообщения: 71
Зарегистрирован: Ср июн 09, 2004 08:39

emacs автосохранение

Сообщение Neon_Kaligula » Вс янв 22, 2006 21:47

Кто-нибудь знает как можно заставить emacs не автосохранять редактируемый текст?

Аватара пользователя
DMych
Доктор (4 lvl)
Сообщения: 435
Зарегистрирован: Пн июл 28, 2003 10:20

Сообщение DMych » Вс янв 22, 2006 23:58

Просто внимательно читаем документацию. ;)

Автосохранение в емаксе не всегда означает запись в файл, связанный с буфером.

Если критично, напиши мне подробно что ты хочешь? Завтра постараюсь ответить.
Zaurus SL-C860 + SD 1G + CF 512M + Bluetooth-GPRS
Cacko 1.22a

Neon_Kaligula
Аспирант (2 lvl)
Сообщения: 71
Зарегистрирован: Ср июн 09, 2004 08:39

Сообщение Neon_Kaligula » Пн янв 23, 2006 00:25

Периодически пишет внизу: Auto-saving...done

При работе с файлами больше метра заметно тормозит процесс. Хотелось бы это отключить.

Аватара пользователя
DMych
Доктор (4 lvl)
Сообщения: 435
Зарегистрирован: Пн июл 28, 2003 10:20

Сообщение DMych » Пн янв 23, 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.
Zaurus SL-C860 + SD 1G + CF 512M + Bluetooth-GPRS
Cacko 1.22a

Neon_Kaligula
Аспирант (2 lvl)
Сообщения: 71
Зарегистрирован: Ср июн 09, 2004 08:39

Сообщение Neon_Kaligula » Пн янв 23, 2006 13:34

Хм. Прервана... А вообще отключить автосохранение можно? Если да, то как?

Аватара пользователя
DMych
Доктор (4 lvl)
Сообщения: 435
Зарегистрирован: Пн июл 28, 2003 10:20

Сообщение DMych » Пн янв 23, 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.
Zaurus SL-C860 + SD 1G + CF 512M + Bluetooth-GPRS
Cacko 1.22a

Закрыто

Вернуться в «КПК и смартфоны на Linux: Zaurus, планшеты Nokia, прочее»