Commit 38d93f03 authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

* progmodes/cc-cmds.el (c-beginning-of-defun, c-end-of-defun):

Push the mark at the start of these functions when appropriate.
parent 706deb23
2010-05-12 Alan Mackenzie <acm@muc.de>
* progmodes/cc-cmds.el (c-beginning-of-defun, c-end-of-defun):
Push the mark at the start of these functions when appropriate.
2010-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
* minibuffer.el (completion-cycle-threshold): New custom var.
......
......@@ -1501,6 +1501,11 @@ defun."
(interactive "p")
(or arg (setq arg 1))
(or (not (eq this-command 'c-beginning-of-defun))
(eq last-command 'c-beginning-of-defun)
(and transient-mark-mode mark-active)
(push-mark))
(c-save-buffer-state
(beginning-of-defun-function end-of-defun-function
(start (point))
......@@ -1604,6 +1609,11 @@ the open-parenthesis that starts a defun; see `beginning-of-defun'."
(interactive "p")
(or arg (setq arg 1))
(or (not (eq this-command 'c-end-of-defun))
(eq last-command 'c-end-of-defun)
(and transient-mark-mode mark-active)
(push-mark))
(c-save-buffer-state
(beginning-of-defun-function end-of-defun-function
(start (point))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment