aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-09-06 21:52:01 +0000
committerRichard M. Stallman1999-09-06 21:52:01 +0000
commitc54055b1c7cb72731eb9be836544445d7ff1863f (patch)
tree5c61eeed67e0b31b03f3da00ccec5eee463de2be
parent2b3c5a687900ddb6a147d647937bc0f16ec3ccd3 (diff)
downloademacs-c54055b1c7cb72731eb9be836544445d7ff1863f.tar.gz
emacs-c54055b1c7cb72731eb9be836544445d7ff1863f.zip
(quickurl-list-focused-line): Removed.
(quickurl-list-insert): Now works out the focused line using `count-lines' instead of using `quickurl-list-focused-line'.
-rw-r--r--lisp/quickurl.el10
1 files changed, 1 insertions, 9 deletions
diff --git a/lisp/quickurl.el b/lisp/quickurl.el
index e87e12409ff..3089e44754d 100644
--- a/lisp/quickurl.el
+++ b/lisp/quickurl.el
@@ -498,14 +498,6 @@ The key bindings for `quickurl-list-mode' are:
498 (setf (point) (posn-point (event-end event))) 498 (setf (point) (posn-point (event-end event)))
499 (quickurl-list-insert-url)) 499 (quickurl-list-insert-url))
500 500
501(defun quickurl-list-focused-line ()
502 "Work out the line containing point."
503 (save-excursion
504 (beginning-of-line)
505 (let ((point (point)))
506 (setf (point) (point-min))
507 (loop while (< (point) point) sum 1 do (next-line 1)))))
508
509(defun quickurl-list-insert (type) 501(defun quickurl-list-insert (type)
510 "Insert the URL under cursor into `quickurl-list-last-buffer'. 502 "Insert the URL under cursor into `quickurl-list-last-buffer'.
511TYPE dictates what will be inserted, options are: 503TYPE dictates what will be inserted, options are:
@@ -514,7 +506,7 @@ TYPE dictates what will be inserted, options are:
514 `with-lookup' - Insert \"lookup <URL:url>\" 506 `with-lookup' - Insert \"lookup <URL:url>\"
515 `with-desc' - Insert \"description <URL:url>\" 507 `with-desc' - Insert \"description <URL:url>\"
516 `lookup' - Insert the lookup for that URL" 508 `lookup' - Insert the lookup for that URL"
517 (let ((url (nth (quickurl-list-focused-line) quickurl-urls))) 509 (let ((url (nth (count-lines (point-min) (point)) quickurl-urls)))
518 (if url 510 (if url
519 (with-current-buffer quickurl-list-last-buffer 511 (with-current-buffer quickurl-list-last-buffer
520 (insert 512 (insert