aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/cc-cmds.el10
2 files changed, 15 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e0cbf007771..39001a369fa 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-05-12 Alan Mackenzie <acm@muc.de>
2
3 * progmodes/cc-cmds.el (c-beginning-of-defun, c-end-of-defun):
4 Push the mark at the start of these functions when appropriate.
5
12010-05-12 Stefan Monnier <monnier@iro.umontreal.ca> 62010-05-12 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * minibuffer.el (completion-cycle-threshold): New custom var. 8 * minibuffer.el (completion-cycle-threshold): New custom var.
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index 56fc8032541..10267a6b2dc 100644
--- a/lisp/progmodes/cc-cmds.el
+++ b/lisp/progmodes/cc-cmds.el
@@ -1501,6 +1501,11 @@ defun."
1501 (interactive "p") 1501 (interactive "p")
1502 (or arg (setq arg 1)) 1502 (or arg (setq arg 1))
1503 1503
1504 (or (not (eq this-command 'c-beginning-of-defun))
1505 (eq last-command 'c-beginning-of-defun)
1506 (and transient-mark-mode mark-active)
1507 (push-mark))
1508
1504 (c-save-buffer-state 1509 (c-save-buffer-state
1505 (beginning-of-defun-function end-of-defun-function 1510 (beginning-of-defun-function end-of-defun-function
1506 (start (point)) 1511 (start (point))
@@ -1604,6 +1609,11 @@ the open-parenthesis that starts a defun; see `beginning-of-defun'."
1604 (interactive "p") 1609 (interactive "p")
1605 (or arg (setq arg 1)) 1610 (or arg (setq arg 1))
1606 1611
1612 (or (not (eq this-command 'c-end-of-defun))
1613 (eq last-command 'c-end-of-defun)
1614 (and transient-mark-mode mark-active)
1615 (push-mark))
1616
1607 (c-save-buffer-state 1617 (c-save-buffer-state
1608 (beginning-of-defun-function end-of-defun-function 1618 (beginning-of-defun-function end-of-defun-function
1609 (start (point)) 1619 (start (point))