Skip to content

Commit

Permalink
Check set-mark in edts-find-local-function
Browse files Browse the repository at this point in the history
  • Loading branch information
tjarvstrand committed Feb 19, 2013
1 parent cc44826 commit c41d72a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elisp/edts/edts-navigate.el
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
(edts-find-local-function nil))
(error "No module found"))))

(defun edts-find-local-function(set-mark)
(defun edts-find-local-function (set-mark)
"Find a function in the current module."
(interactive '(t))
(let* ((functions (ferl-local-functions))
Expand All @@ -48,7 +48,7 @@
(if (string= "-Top of Module-" choice)
(goto-char 0)
(goto-char (cdr (assoc choice functions))))
(when (not (eq (point) (marker-position mark)))
(when (and set-mark (not (eq (point) (marker-position mark))))
(ring-insert-at-beginning (edts-window-history-ring) mark))))

;; Borrowed from distel
Expand Down

0 comments on commit c41d72a

Please sign in to comment.