Function: edt-mark-section-wisely
edt-mark-section-wisely is an interactive and byte-compiled function
defined in edt.el.gz.
Signature
(edt-mark-section-wisely)
Documentation
Mark the section in a manner consistent with the major-mode.
Uses mark-defun for Emacs-Lisp and Lisp, and for Fortran,
c-mark-function for C,
and mark-paragraph for other modes.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/edt.el.gz
;;;
;;; MARK SECTION WISELY
;;;
(defun edt-mark-section-wisely ()
"Mark the section in a manner consistent with the `major-mode'.
Uses `mark-defun' for Emacs-Lisp and Lisp, and for Fortran,
`c-mark-function' for C,
and `mark-paragraph' for other modes."
(interactive)
(if edt-select-mode
(progn
(edt-reset))
(progn
(cond ((or (eq major-mode 'emacs-lisp-mode)
(eq major-mode 'fortran-mode)
(eq major-mode 'lisp-mode))
(mark-defun)
(message "Lisp defun selected"))
((eq major-mode 'c-mode)
(c-mark-function)
(message "C function selected"))
(t (mark-paragraph)
(message "Paragraph selected"))))))