Function: senator-mark-defun
senator-mark-defun is an interactive and byte-compiled function
defined in senator.el.gz.
Signature
(senator-mark-defun)
Documentation
Put mark at end of this defun, point at beginning.
The defun marked is the one that contains point or follows point. Use semantic tags to navigate.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/senator.el.gz
(defun senator-mark-defun ()
"Put mark at end of this defun, point at beginning.
The defun marked is the one that contains point or follows point.
Use semantic tags to navigate."
(interactive)
(let ((origin (point))
(end (progn (senator-end-of-defun) (point)))
(start (progn (senator-beginning-of-defun) (point))))
(goto-char origin)
(push-mark)
(goto-char end) ;; end-of-defun
(push-mark (point) nil t)
(goto-char start) ;; beginning-of-defun
(re-search-backward "^\n" (- (point) 1) t)))