all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: 纪秀峰 <jixiuf@qq.com>
To: emacs-devel@gnu.org
Subject: make  pred customable in auto-save-visited-mode
Date: Sat, 31 Mar 2018 00:59:19 +0800	[thread overview]
Message-ID: <DC81A19A-DA98-4285-AD68-8DE6F3A8D02B@qq.com> (raw)

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)))))))




             reply	other threads:[~2018-03-30 16:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-30 16:59 纪秀峰 [this message]
2018-03-31  8:43 ` make pred customable in auto-save-visited-mode 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DC81A19A-DA98-4285-AD68-8DE6F3A8D02B@qq.com \
    --to=jixiuf@qq.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.