Function: hbdata:is-but-data-stored-in-buffer

hbdata:is-but-data-stored-in-buffer is a byte-compiled function defined in hbdata.el.

Signature

(hbdata:is-but-data-stored-in-buffer KEY-SRC)

Documentation

True if we store but-data in the buffer rather than in a file.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hbdata.el
(defun hbdata:is-but-data-stored-in-buffer (key-src)
  "True if we store but-data in the buffer rather than in a file."
  ;; Drafts of mail messages now have a `buffer-file-name' since they
  ;; are temporarily saved to a file until sent.  But but-data still
  ;; should be stored in the mail buffer itself, so check explicitly
  ;; whether is a mail composition buffer in such cases.
  (or (hmail:mode-is-p)
      (and (get-buffer key-src)
           (set-buffer key-src)
	   (not (hypb:buffer-file-name)))))