Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d0aa1aab
Commit
d0aa1aab
authored
May 09, 2004
by
Juanma Barranquero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(quickurl, quickurl-browse-url, quickurl-read):
Don't use CL-style default args.
parent
f009f3bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
lisp/ChangeLog
lisp/ChangeLog
+6
-0
lisp/net/quickurl.el
lisp/net/quickurl.el
+10
-6
No files found.
lisp/ChangeLog
View file @
d0aa1aab
2004-05-09 Juanma Barranquero <lektu@terra.es>
* net/quickurl.el (quickurl, quickurl-browse-url, quickurl-read):
Don't use CL-style default args.
* pcvs.el (cvs-mode-run, cvs-is-within-p): Fix typo in docstring.
(cvs-get-marked): Remove redundant arglist info.
* help-fns.el (help-highlight-arguments): Don't try to highlight
missing or autoloaded arglists. Accept structured arguments, like
the first ones of `do' and `flet'.
...
...
lisp/net/quickurl.el
View file @
d0aa1aab
...
...
@@ -256,14 +256,16 @@ returned."
;; Main code:
(
defun*
quickurl-read
(
&optional
(
buffer
(
current-buffer
))
)
(
defun*
quickurl-read
(
&optional
buffer
)
"`read' the URL list from BUFFER into `quickurl-urls'.
BUFFER, if nil, defaults to current buffer.
Note that this function moves point to `point-min' before doing the `read'
It also restores point after the `read'."
(
save-excursion
(
setf
(
point
)
(
point-min
))
(
setq
quickurl-urls
(
funcall
quickurl-sort-function
(
read
buffer
)))))
(
setq
quickurl-urls
(
funcall
quickurl-sort-function
(
read
(
or
buffer
(
current-buffer
)))))))
(
defun
quickurl-load-urls
()
"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."
(
message
"Found %s"
(
quickurl-url-url
url
))))
;;;###autoload
(
defun*
quickurl
(
&optional
(
lookup
(
funcall
quickurl-grab-lookup-function
))
)
(
defun*
quickurl
(
&optional
lookup
)
"Insert an URL based on LOOKUP.
If not supplied LOOKUP is taken to be the word at point in the current
buffer, this default action can be modifed via
`quickurl-grab-lookup-function'."
(
interactive
)
(
when
lookup
(
when
(
or
lookup
(
setq
lookup
(
funcall
quickurl-grab-lookup-function
)))
(
quickurl-load-urls
)
(
let
((
url
(
quickurl-find-url
lookup
)))
(
if
(
null
url
)
...
...
@@ -392,14 +395,15 @@ is decided."
(
message
"Added %s"
url
))))))
;;;###autoload
(
defun
*
quickurl-browse-url
(
&optional
(
lookup
(
funcall
quickurl-grab-lookup-function
))
)
(
defun
quickurl-browse-url
(
&optional
lookup
)
"Browse the URL associated with LOOKUP.
If not supplied LOOKUP is taken to be the word at point in the
current buffer, this default action can be modifed via
`quickurl-grab-lookup-function'."
(
interactive
)
(
when
lookup
(
when
(
or
lookup
(
setq
lookup
(
funcall
quickurl-grab-lookup-function
)))
(
quickurl-load-urls
)
(
let
((
url
(
quickurl-find-url
lookup
)))
(
if
url
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment