aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1999-09-03 00:57:50 +0000
committerRichard M. Stallman1999-09-03 00:57:50 +0000
commite123e0249d8cb3568a56fdfaf5c7b045807952cd (patch)
tree0e5643e2681eeac606c0b78a9bd43cb860ee4952
parent056e4a0addff0986e126bd2c6ce2fe7e70ca3cf3 (diff)
downloademacs-e123e0249d8cb3568a56fdfaf5c7b045807952cd.tar.gz
emacs-e123e0249d8cb3568a56fdfaf5c7b045807952cd.zip
(quickurl): Doc fix.
-rw-r--r--lisp/quickurl.el28
1 files changed, 10 insertions, 18 deletions
diff --git a/lisp/quickurl.el b/lisp/quickurl.el
index b78a379ba7b..aaf68650c07 100644
--- a/lisp/quickurl.el
+++ b/lisp/quickurl.el
@@ -27,13 +27,11 @@
27;;; Commentary: 27;;; Commentary:
28;; 28;;
29;; This package provides a simple method of inserting an URL based on the 29;; This package provides a simple method of inserting an URL based on the
30;; text at point in the current buffer. This is part of an on-going 30;; text at point in the current buffer. This is part of an on-going effort
31;; effort to increase the information I provide people while reducing the 31;; to increase the information I provide people while reducing the ammount
32;; ammount of typing I need to do (see also handyurl.el which is available 32;; of typing I need to do. No-doubt there are undiscovered Emacs packages
33;; from <URL:http://www.hagbard.demon.co.uk/archives/handyurl.el>), no-doubt 33;; out there that do all of this and do it better, feel free to point me to
34;; there are undiscovered Emacs packages out there that do all of this and 34;; them, in the mean time I'm having fun playing with Emacs Lisp.
35;; do it better, feel free to point me to them, in the mean time I'm having
36;; fun playing with Emacs Lisp.
37;; 35;;
38;; The URLs are stored in an external file as a list of either cons cells, 36;; The URLs are stored in an external file as a list of either cons cells,
39;; or lists. A cons cell entry looks like this: 37;; or lists. A cons cell entry looks like this:
@@ -69,7 +67,7 @@
69;; backward compatibility with existing URL lists. 67;; backward compatibility with existing URL lists.
70;; 68;;
71;; The name and location of the file is up to you, the default name used by 69;; The name and location of the file is up to you, the default name used by
72;; the `quickurl' is stored in `quickurl-url-file'. 70;; `quickurl' is stored in `quickurl-url-file'.
73;; 71;;
74;; quickurl is always available from: 72;; quickurl is always available from:
75;; 73;;
@@ -81,10 +79,6 @@
81;; o The quickurl-browse-url* functions pretty much duplicate their non 79;; o The quickurl-browse-url* functions pretty much duplicate their non
82;; browsing friends. It would feel better if a more generic solution could 80;; browsing friends. It would feel better if a more generic solution could
83;; be found. 81;; be found.
84;;
85;; o Merge quickurl.el and handyurl.el to provide a fuller URL management
86;; facility that would allow for the pulling, inserting and browsing of
87;; URLs.
88 82
89;;; Code: 83;;; Code:
90 84
@@ -107,7 +101,7 @@
107;; `caddr' is a function in cl and so might not always be available 101;; `caddr' is a function in cl and so might not always be available
108;; (remembering the general rule that says cl functions should not be used, 102;; (remembering the general rule that says cl functions should not be used,
109;; only cl macros). So, to make use of `caddr' without forcing the load of 103;; only cl macros). So, to make use of `caddr' without forcing the load of
110;; cl-seq we'll define out own. 104;; cl-seq we'll define our own.
111 105
112(eval-when (load eval) 106(eval-when (load eval)
113 (unless (fboundp 'caddr) 107 (unless (fboundp 'caddr)
@@ -115,8 +109,6 @@
115 "Return the `car' of the `cddr' of L." 109 "Return the `car' of the `cddr' of L."
116 (car (cddr l))))) 110 (car (cddr l)))))
117 111
118;; Create a version constant.
119
120;; Customize options. 112;; Customize options.
121 113
122(defgroup quickurl nil 114(defgroup quickurl nil
@@ -315,8 +307,8 @@ Also display a `message' saying what the URL was unless SILENT is non-nil."
315(defun* quickurl (&optional (lookup (funcall quickurl-grab-lookup-function))) 307(defun* quickurl (&optional (lookup (funcall quickurl-grab-lookup-function)))
316 "Insert an URL based on LOOKUP. 308 "Insert an URL based on LOOKUP.
317 309
318If not supplied LOOKUP is taken to be the word at point in the 310If not supplied LOOKUP is taken to be the word at point in the current
319current buffer, this default action can be modifed via 311buffer, this default action can be modifed via
320`quickurl-grab-lookup-function'." 312`quickurl-grab-lookup-function'."
321 (interactive) 313 (interactive)
322 (when lookup 314 (when lookup
@@ -363,7 +355,7 @@ It is assumed that the URL is either \"unguarded\" or is wrapped inside an
363 (let ((word (funcall quickurl-grab-lookup-function))) 355 (let ((word (funcall quickurl-grab-lookup-function)))
364 (when word 356 (when word
365 (quickurl-make-url 357 (quickurl-make-url
366 ;; `thing-at-point' returns the word with properties. I don't 358 ;; The grab function may return the word with properties. I don't
367 ;; want the properties. I couldn't find a method of stripping 359 ;; want the properties. I couldn't find a method of stripping
368 ;; them from a "string" so this will have to do. If you know of 360 ;; them from a "string" so this will have to do. If you know of
369 ;; a better method of doing this I'd love to know. 361 ;; a better method of doing this I'd love to know.