Pārlūkot izejas kodu

make autosave-buffer interactive function

pull/1/head
10sr pirms 13 gadiem
vecāks
revīzija
06d3290198
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      emacs.el

+ 2
- 1
emacs.el Parādīt failu

@@ -1803,8 +1803,9 @@ not happen.")
(defvar autosave-buffer nil "Autosave timer object.") (defvar autosave-buffer nil "Autosave timer object.")
(defun autosave-buffer (secs) (defun autosave-buffer (secs)
"Register timer so that the buffer will be saved automatically each time "Register timer so that the buffer will be saved automatically each time
when emacs is idle for SECS. When SECS is 0 or nil, stop the timer and disable
when Emacs is idle for SECS. When SECS is 0 or nil, stop the timer and disable
auto-saving." auto-saving."
(interactive "nSeconds until autosaving (0 to disable autosaving.): ")
(if (and secs (if (and secs
(not (eq secs (not (eq secs
0))) 0)))


Notiek ielāde…
Atcelt
Saglabāt