help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: arguments in url question


From: Barry Margolin
Subject: Re: arguments in url question
Date: Mon, 17 Mar 2008 17:34:51 -0400
User-agent: MT-NewsWatcher/3.5.3b2 (Intel Mac OS X)

In article <87wso2800g.fsf@blp.benpfaff.org>,
 Ben Pfaff <blp@cs.stanford.edu> wrote:

> Chad <cdalten@gmail.com> writes:
> 
> > On Mar 16, 8:16 pm, Ben Pfaff <b...@cs.stanford.edu> wrote:
> >> grocery_stocker <cdal...@gmail.com> writes:
> >> > The following function on his web page basically makes a url ouf given
> >> > a link.
> >>
> >> > (defun wrap-url-string (url &optional raw)
> >>
> >> [...]
> >>
> >> > What I don't get is how can a url have optional arguments.
> >>
> >> It's not the URL that has optional arguments in this case.  It's
> >> the wrap-url-string function that has an optional argument.
> >> That's a feature of Emacs Lisp, not a feature of a URL.
> >
> > So what would be the optional argument in this case?
> 
> The one named "raw" in the function declaration quoted above.

In other words, you can write

(wrap-url-string "http://en.wikipedia.org/wiki/Emacs";)

or

(wrap-url-string "http://en.wikipedia.org/wiki/Emacs"; t)

In the latter case, no shortening will be done.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE don't copy me on replies, I'll read them in the group ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]