Function: edt-sect-forward

edt-sect-forward is an interactive and byte-compiled function defined in edt.el.gz.

Signature

(edt-sect-forward NUM)

Documentation

Move cursor forward two-thirds of a window's number of lines.

Argument NUM is the number of sections to move.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/edt.el.gz
;;;
;;; SECT
;;;
;; EDT defaults a section size to be 16 lines of its one and only
;; 24-line window.  That's two-thirds of the window at a time.  The
;; EDT SECT commands moves the cursor, not the window.
;;
;; This emulation of EDT's SECT moves the cursor approximately
;; two-thirds of the current window at a time.

(defun edt-sect-forward (num)
  "Move cursor forward two-thirds of a window's number of lines.
Argument NUM is the number of sections to move."
  (interactive "p")
  (edt-check-prefix num)
  (edt-line-forward (* (* (/ (- (window-height) 1) 3) 2) num)))