diff options
| author | Juanma Barranquero | 2004-05-09 01:55:31 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2004-05-09 01:55:31 +0000 |
| commit | d0aa1aab84e8f720f298cfaa58efc933e1eb26d9 (patch) | |
| tree | 8307014174a9de7c4db7de40c33c969173fe1999 /lisp | |
| parent | f009f3bce9b1503a7a05ff159f1690ec1434d5b3 (diff) | |
| download | emacs-d0aa1aab84e8f720f298cfaa58efc933e1eb26d9.tar.gz emacs-d0aa1aab84e8f720f298cfaa58efc933e1eb26d9.zip | |
(quickurl, quickurl-browse-url, quickurl-read):
Don't use CL-style default args.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/net/quickurl.el | 16 |
2 files changed, 16 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7078a91d070..a64fdff7df0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2004-05-09 Juanma Barranquero <lektu@terra.es> | 1 | 2004-05-09 Juanma Barranquero <lektu@terra.es> |
| 2 | 2 | ||
| 3 | * net/quickurl.el (quickurl, quickurl-browse-url, quickurl-read): | ||
| 4 | Don't use CL-style default args. | ||
| 5 | |||
| 6 | * pcvs.el (cvs-mode-run, cvs-is-within-p): Fix typo in docstring. | ||
| 7 | (cvs-get-marked): Remove redundant arglist info. | ||
| 8 | |||
| 3 | * help-fns.el (help-highlight-arguments): Don't try to highlight | 9 | * help-fns.el (help-highlight-arguments): Don't try to highlight |
| 4 | missing or autoloaded arglists. Accept structured arguments, like | 10 | missing or autoloaded arglists. Accept structured arguments, like |
| 5 | the first ones of `do' and `flet'. | 11 | the first ones of `do' and `flet'. |
diff --git a/lisp/net/quickurl.el b/lisp/net/quickurl.el index fd13b3a0f51..40a1e4bfad3 100644 --- a/lisp/net/quickurl.el +++ b/lisp/net/quickurl.el | |||
| @@ -256,14 +256,16 @@ returned." | |||
| 256 | 256 | ||
| 257 | ;; Main code: | 257 | ;; Main code: |
| 258 | 258 | ||
| 259 | (defun* quickurl-read (&optional (buffer (current-buffer))) | 259 | (defun* quickurl-read (&optional buffer) |
| 260 | "`read' the URL list from BUFFER into `quickurl-urls'. | 260 | "`read' the URL list from BUFFER into `quickurl-urls'. |
| 261 | 261 | ||
| 262 | BUFFER, if nil, defaults to current buffer. | ||
| 262 | Note that this function moves point to `point-min' before doing the `read' | 263 | Note that this function moves point to `point-min' before doing the `read' |
| 263 | It also restores point after the `read'." | 264 | It also restores point after the `read'." |
| 264 | (save-excursion | 265 | (save-excursion |
| 265 | (setf (point) (point-min)) | 266 | (setf (point) (point-min)) |
| 266 | (setq quickurl-urls (funcall quickurl-sort-function (read buffer))))) | 267 | (setq quickurl-urls (funcall quickurl-sort-function |
| 268 | (read (or buffer (current-buffer))))))) | ||
| 267 | 269 | ||
| 268 | (defun quickurl-load-urls () | 270 | (defun quickurl-load-urls () |
| 269 | "Load the contents of `quickurl-url-file' into `quickurl-urls'." | 271 | "Load the contents of `quickurl-url-file' into `quickurl-urls'." |
| @@ -298,14 +300,15 @@ Also display a `message' saying what the URL was unless SILENT is non-nil." | |||
| 298 | (message "Found %s" (quickurl-url-url url)))) | 300 | (message "Found %s" (quickurl-url-url url)))) |
| 299 | 301 | ||
| 300 | ;;;###autoload | 302 | ;;;###autoload |
| 301 | (defun* quickurl (&optional (lookup (funcall quickurl-grab-lookup-function))) | 303 | (defun* quickurl (&optional lookup) |
| 302 | "Insert an URL based on LOOKUP. | 304 | "Insert an URL based on LOOKUP. |
| 303 | 305 | ||
| 304 | If not supplied LOOKUP is taken to be the word at point in the current | 306 | If not supplied LOOKUP is taken to be the word at point in the current |
| 305 | buffer, this default action can be modifed via | 307 | buffer, this default action can be modifed via |
| 306 | `quickurl-grab-lookup-function'." | 308 | `quickurl-grab-lookup-function'." |
| 307 | (interactive) | 309 | (interactive) |
| 308 | (when lookup | 310 | (when (or lookup |
| 311 | (setq lookup (funcall quickurl-grab-lookup-function))) | ||
| 309 | (quickurl-load-urls) | 312 | (quickurl-load-urls) |
| 310 | (let ((url (quickurl-find-url lookup))) | 313 | (let ((url (quickurl-find-url lookup))) |
| 311 | (if (null url) | 314 | (if (null url) |
| @@ -392,14 +395,15 @@ is decided." | |||
| 392 | (message "Added %s" url)))))) | 395 | (message "Added %s" url)))))) |
| 393 | 396 | ||
| 394 | ;;;###autoload | 397 | ;;;###autoload |
| 395 | (defun* quickurl-browse-url (&optional (lookup (funcall quickurl-grab-lookup-function))) | 398 | (defun quickurl-browse-url (&optional lookup) |
| 396 | "Browse the URL associated with LOOKUP. | 399 | "Browse the URL associated with LOOKUP. |
| 397 | 400 | ||
| 398 | If not supplied LOOKUP is taken to be the word at point in the | 401 | If not supplied LOOKUP is taken to be the word at point in the |
| 399 | current buffer, this default action can be modifed via | 402 | current buffer, this default action can be modifed via |
| 400 | `quickurl-grab-lookup-function'." | 403 | `quickurl-grab-lookup-function'." |
| 401 | (interactive) | 404 | (interactive) |
| 402 | (when lookup | 405 | (when (or lookup |
| 406 | (setq lookup (funcall quickurl-grab-lookup-function))) | ||
| 403 | (quickurl-load-urls) | 407 | (quickurl-load-urls) |
| 404 | (let ((url (quickurl-find-url lookup))) | 408 | (let ((url (quickurl-find-url lookup))) |
| 405 | (if url | 409 | (if url |