home *** CD-ROM | disk | FTP | other *** search
- ;;; tst-utilities.el - handy defuns from the GnuTest project -*- emacs-lisp -*-
- ;;; Copyright (c) 1987 wang Institute of Graduate Studies
-
- (defun last-line (&optional buffer)
- "Returns number of lines in BUFFER (current-buffer if nil)"
- (save-excursion
- (set-buffer (or buffer (current-buffer)))
- (count-lines (point-min) (point-max))
- )
- )
-
- (defun current-line ()
- "Returns current line number"
- (1+ (count-lines (point-min) (point)))
- )
-
- (defun debug-on-error ()
- "Sets the variable debug-on-error to t."
- (interactive)
- (setq debug-on-error t)
- )
-