From: rearman Date: Fri, 10 May 2024 13:54:52 +0000 (-0400) Subject: Copy acme-mouse to its own repo, and make it a submodule X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=c85f5c11a45e34cb510254e89439b070d3ff5d63;p=emacsinit.git Copy acme-mouse to its own repo, and make it a submodule --- diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..6e1dc36 --- /dev/null +++ b/.gitmodules @@ -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 index 0000000..dff1b70 --- /dev/null +++ b/acme-mouse @@ -0,0 +1 @@ +Subproject commit dff1b7097d7f0356578ec9c6c5aa308f3664d3a3 diff --git a/acme-mouse.el b/acme-mouse.el index 23c1bf8..ff62504 100644 --- a/acme-mouse.el +++ b/acme-mouse.el @@ -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))))