aboutsummaryrefslogtreecommitdiffhomepage
path: root/emacs/notmuch-lib.el
diff options
context:
space:
mode:
authorGravatar Jameson Rollins <jrollins@finestructure.net>2010-09-18 15:48:21 -0400
committerGravatar Carl Worth <cworth@cworth.org>2010-11-11 17:28:32 -0800
commit128b6259ee327adf9189b81034b3b6962e8b9dbc (patch)
treed716c04151f5c2b215eb0e43c3757dcf3b3b7bed /emacs/notmuch-lib.el
parentea1c2bb5c5ab7115e3259d2e66e19398ce4cc19f (diff)
emacs: mv notmuch-{show,common}-do-stash
Here we move the notmuch-show/notmuch-show-do-stash function to notmuch-lib/notmuch-common-do-stash. Nothing in this function is notmuch-show mode specific, so this move will make it cleaner to be used by other modes (such as notmuch-search).
Diffstat (limited to 'emacs/notmuch-lib.el')
-rw-r--r--emacs/notmuch-lib.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el
index dfdcd052..9d4e00f6 100644
--- a/emacs/notmuch-lib.el
+++ b/emacs/notmuch-lib.el
@@ -94,6 +94,13 @@ the user hasn't set this variable with the old or new value."
;;
+(defun notmuch-common-do-stash (text)
+ "Common function to stash text in kill ring, and display in minibuffer."
+ (kill-new text)
+ (message "Stashed: %s" text))
+
+;;
+
;; XXX: This should be a generic function in emacs somewhere, not
;; here.
(defun point-invisible-p ()
@@ -110,3 +117,4 @@ within the current window."
(assq prop buffer-invisibility-spec)))))
(provide 'notmuch-lib)
+