summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorLeo Liu <sdl.web@gmail.com>2015-04-17 12:32:33 +0800
committerLeo Liu <sdl.web@gmail.com>2015-04-17 12:32:33 +0800
commit85c3e1be241867feac2b57d1f849085e9d2bb54f (patch)
treeb31b24aedb9ceb70ac79820d4baea0858094a0ab /lisp
parent183952e518f98b0ac97d9815be85a6f3dd6634a4 (diff)
downloademacs-85c3e1be241867feac2b57d1f849085e9d2bb54f.tar.gz
emacs-85c3e1be241867feac2b57d1f849085e9d2bb54f.tar.bz2
emacs-85c3e1be241867feac2b57d1f849085e9d2bb54f.zip
* lisp/progmodes/xref.el (xref-push-marker-stack): Add optional arg.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/xref.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el
index fe72b3f778c..afcbbf52264 100644
--- a/lisp/progmodes/xref.el
+++ b/lisp/progmodes/xref.el
@@ -279,9 +279,9 @@ backward."
(defvar xref--marker-ring (make-ring xref-marker-ring-length)
"Ring of markers to implement the marker stack.")
-(defun xref-push-marker-stack ()
- "Add point to the marker stack."
- (ring-insert xref--marker-ring (point-marker)))
+(defun xref-push-marker-stack (&optional m)
+ "Add point M (defaults to `point-marker') to the marker stack."
+ (ring-insert xref--marker-ring (or m (point-marker))))
;;;###autoload
(defun xref-pop-marker-stack ()