unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* make  pred customable in auto-save-visited-mode
@ 2018-03-30 16:59 纪秀峰
  2018-03-31  8:43 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: 纪秀峰 @ 2018-03-30 16:59 UTC (permalink / raw)
  To: emacs-devel

When I enable  auto-save-visited-mode and start an ediff merge session 
It always prompt me save "*ediff-merge*” to a file.
 


(define-minor-mode auto-save-visited-mode
  "Toggle automatic saving to file-visiting buffers on or off.
With a prefix argument ARG, enable regular saving of all buffers
visiting a file if ARG is positive, and disable it otherwise.
Unlike `auto-save-mode', this mode will auto-save buffer contents
to the visited files directly and will also run all save-related
hooks.  See Info node `Saving' for details of the save process.

If called from Lisp, enable the mode if ARG is omitted or nil,
and toggle it if ARG is `toggle'."
  :group 'auto-save
  :global t
  (when auto-save--timer (cancel-timer auto-save--timer))
  (setq auto-save--timer
        (when auto-save-visited-mode
          (run-with-idle-timer
           auto-save-visited-interval :repeat
           #'save-some-buffers :no-prompt
           (lambda ()  ;;<————————————how about make this customable
             (not (and buffer-auto-save-file-name
                       auto-save-visited-file-name)))))))




^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-04-02 10:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-30 16:59 make pred customable in auto-save-visited-mode 纪秀峰
2018-03-31  8:43 ` Eli Zaretskii
2018-03-31 10:23   ` Philipp Stephani
2018-03-31 10:28     ` Philipp Stephani
2018-03-31 10:45       ` Eli Zaretskii
2018-04-01 17:19         ` Philipp Stephani
2018-04-01 17:35           ` Eli Zaretskii
2018-04-01 19:51             ` Philipp Stephani
2018-04-02  4:44               ` Eli Zaretskii
2018-04-02 10:20                 ` Philipp Stephani
2018-03-31 10:42     ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).