]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-lib.el
Drop devel/printmimestructure (it is in mailscripts 0.11)
[notmuch] / emacs / notmuch-lib.el
index 546ab6fda41f654e8e64d1a85408f64fc6f78ffe..8acad267fc50eed0031be07f635ef69b95c9e92e 100644 (file)
@@ -1008,6 +1008,20 @@ status."
 (defvar notmuch-show-process-crypto nil)
 (make-variable-buffer-local 'notmuch-show-process-crypto)
 
+(defun notmuch-interactive-region ()
+  "Return the bounds of the current interactive region.
+
+This returns (BEG END), where BEG and END are the bounds of the
+region if the region is active, or both `point' otherwise."
+  (if (region-active-p)
+      (list (region-beginning) (region-end))
+    (list (point) (point))))
+
+(define-obsolete-function-alias
+    'notmuch-search-interactive-region
+    'notmuch-interactive-region
+  "notmuch 0.29")
+
 (provide 'notmuch-lib)
 
 ;; Local Variables: