Function: edt-goto-percentage

edt-goto-percentage is an interactive and byte-compiled function defined in edt.el.gz.

Signature

(edt-goto-percentage NUM)

Documentation

Move to specified percentage in buffer from top of buffer.

Argument NUM is the percentage into the buffer to move.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/emulation/edt.el.gz
;;;
;;; GOTO PERCENTAGE
;;;

(defun edt-goto-percentage (num)
  "Move to specified percentage in buffer from top of buffer.
Argument NUM is the percentage into the buffer to move."
  (interactive "NGoto-percentage: ")
  (if (or (> num 100) (< num 0))
      (error "Percentage %d out of range 0 < percent < 100" num)
    (goto-char (/ (* (point-max) num) 100))))