]> git.earman.xyz Git - emacsinit.git/commitdiff
Copy acme-mouse to its own repo, and make it a submodule
authorrearman <rearman@r717.net>
Fri, 10 May 2024 13:54:52 +0000 (09:54 -0400)
committerrearman <rearman@r717.net>
Fri, 10 May 2024 13:54:52 +0000 (09:54 -0400)
.gitmodules [new file with mode: 0644]
acme-mouse [new submodule]
acme-mouse.el

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..6e1dc36
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "acme-mouse"]
+       path = acme-mouse
+       url = https://github.com/rearman/acme-mouse.git
diff --git a/acme-mouse b/acme-mouse
new file mode 160000 (submodule)
index 0000000..dff1b70
--- /dev/null
@@ -0,0 +1 @@
+Subproject commit dff1b7097d7f0356578ec9c6c5aa308f3664d3a3
index 23c1bf8b1bd1bd92e4c93021726193a61f2a9bd3..ff62504e7f74f431f5567eba4b78c42f412efd1e 100644 (file)
@@ -185,7 +185,8 @@ at the end of the result."
 (defun acme-search (posn)
   "Search forward for the symbol under mouse, moving mouse and point forward.
 This is inspired by Rob Pike's Acme."
-  (let ((sym (if (region-active-p)
+  (let ((sym (if (and (region-active-p)
+                     (eq posn (point)))
                 (buffer-substring (mark) (point))
               (mouse-set-point posn)
               (thing-at-point 'filename))))