]> git.eshelyaron.com Git - emacs.git/commitdiff
Declare rectangle functions in mouse.el to avoid warnings
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 17 May 2019 02:22:08 +0000 (04:22 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 17 May 2019 02:23:20 +0000 (04:23 +0200)
* lisp/mouse.el (rectangle-dimensions)
(rectangle-position-as-coordinates, rectangle-intersect-p):
Declare these functions from rect.el to avoid compilation warnings.

lisp/mouse.el

index 835eaa32c610eb50db371b28e5771407c11ce4cc..8428c1e0139f2362d8218452a30b7112836d98da 100644 (file)
@@ -2402,6 +2402,10 @@ highlight the original region when
 `mouse-drag-and-drop-region-show-cursor' is non-nil."
   :version "26.1")
 
+(declare-function rectangle-dimensions "rect" (start end))
+(declare-function rectangle-position-as-coordinates "rect" (position))
+(declare-function rectangle-intersect-p "rect" (pos1 size1 pos2 size2))
+
 (defun mouse-drag-and-drop-region (event)
   "Move text in the region to point where mouse is dragged to.
 The transportation of text is also referred as `drag and drop'.