+2005-04-14 Teodor Zlatanov <tzz@lifelogs.com>
+
+ * message.el (message-kill-buffer-query-if-modified): new variable
+ so the user can kill a modified message buffer quickly
+ (message-kill-buffer): use it.
+
2005-04-13 Katsumi Yamaoka <yamaoka@jpl.org>
* lpath.el: Fbind display-time-event-handler; don't fbind
:type 'boolean)
(defcustom message-kill-buffer-query-function 'yes-or-no-p
- "*Function used to prompt user whether to kill the message buffer. If
-it is t, the buffer will be killed unconditionally."
+ "*Function used to prompt user whether to kill the message buffer.
+If it is t, the buffer will be killed unconditionally."
:type '(radio (function-item yes-or-no-p)
(function-item y-or-n-p)
(function-item nnheader-Y-or-n-p)
:group 'message-buffers
:type 'boolean)
+(defcustom message-kill-buffer-query-if-modified t
+ "*Non-nil means that killing a modified message buffer has to be confirmed.
+This is used by `message-kill-buffer'."
+ :group 'message-buffers
+ :type 'boolean)
+
(eval-when-compile
(defvar gnus-local-organization))
(defcustom message-user-organization
"Kill the current buffer."
(interactive)
(when (or (not (buffer-modified-p))
+ (not message-kill-buffer-query-if-modified)
(eq t message-kill-buffer-query-function)
(funcall message-kill-buffer-query-function
"The buffer modified; kill anyway? "))