[comp.emacs] Note on info-mouse.el missing 'last-line-p'

weiner@novavax.UUCP (Bob Weiner) (03/29/89)

Hucka@caen.engin.umich.edu pointed out that he had no 'last-line-p'
function which is called in the info-mouse.el package that I posted
awhile back.  I checked and the function is in cal.el which is now
distributed with GNU Emacs but may not have been when you got your
version.  It is a very simple function, so the code follows.

(defun last-line-p ()
  "Return T if point is on the last line of the buffer.
If the buffer is narrowed, this means the last line of the narrowed
part."
  (save-excursion
     (end-of-line)
     (eobp)))
-- 
Bob Weiner, Motorola, Inc.,   USENET:  ...!gatech!uflorida!novavax!weiner
(407) 738-2087