home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume11
/
test.el
/
part02
/
tst-utilities.el
< prev
next >
Wrap
Lisp/Scheme
|
1987-09-08
|
568b
|
22 lines
;;; 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)
)