* progmodes/cc-cmds.el (c-beginning-of-defun, c-end-of-defun):
Push the mark at the start of these functions when appropriate.
This commit is contained in:
parent
706deb23dc
commit
38d93f03c7
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
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))
|
||||
|
|
Loading…
Add table
Reference in a new issue