# HG changeset patch # User Gerd Moellmann # Date 939728779 0 # Node ID 6a0ca60a951f4fb12772c7085f5d4c702446aec2 # Parent 05863bd53034b3e9350aba9c81f9a1c54ceee0f9 (quickurl-list-insert): `count-lines' was returning a value one line to high if the cursor wasn't at the start of a line. A `beginning-of-line' is now performed before making the call to `count-lines'. diff -r 05863bd53034 -r 6a0ca60a951f lisp/quickurl.el --- a/lisp/quickurl.el Tue Oct 12 11:39:28 1999 +0000 +++ b/lisp/quickurl.el Tue Oct 12 11:46:19 1999 +0000 @@ -506,7 +506,10 @@ `with-lookup' - Insert \"lookup \" `with-desc' - Insert \"description \" `lookup' - Insert the lookup for that URL" - (let ((url (nth (count-lines (point-min) (point)) quickurl-urls))) + (let ((url (nth (save-excursion + (beginning-of-line) + (count-lines (point-min) (point))) + quickurl-urls))) (if url (with-current-buffer quickurl-list-last-buffer (insert