From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: arguments in url question Date: Mon, 17 Mar 2008 17:34:51 -0400 Organization: Symantec Message-ID: References: <0d49795c-c0de-4def-83fb-3f96794860eb@c19g2000prf.googlegroups.com> <87fxuq9h0j.fsf@blp.benpfaff.org> <30336027-8934-405a-b14d-f1f411dfb74a@d21g2000prf.googlegroups.com> <87wso2800g.fsf@blp.benpfaff.org> NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1205790043 29966 80.91.229.12 (17 Mar 2008 21:40:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Mar 2008 21:40:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 17 22:41:12 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JbN4w-0008Mb-R5 for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Mar 2008 22:41:11 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JbN4N-00048Z-2c for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Mar 2008 17:40:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail Original-NNTP-Posting-Date: Mon, 17 Mar 2008 16:34:51 -0500 Original-Newsgroups: gnu.emacs.help,comp.programming Mail-Copies-To: nobody User-Agent: MT-NewsWatcher/3.5.3b2 (Intel Mac OS X) X-Copies-To: never Original-Lines: 38 X-Usenet-Provider: http://www.giganews.com Original-NNTP-Posting-Host: 24.34.108.171 Original-X-Trace: sv3-9jQrqtkLCFDbhHQakVkWxnRJn1VYPf2Gbszniq7E8Fd8G0Q0QQ7TrNK/ZQ0dOBsWEK1o2riMk+7gnrD!5dkIr61VTYJJo1+UbL0mUjKQxkoPsGBzXHKTfmh9l7DYpmYkmVKKz514om1cPfd3sVQFFAKBXMwb!peIYI360e7f3As1oCdPGrkXNDOLzeo12TNqMmfI= Original-X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.37 Original-Xref: shelby.stanford.edu gnu.emacs.help:157103 comp.programming:251129 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52474 Archived-At: In article <87wso2800g.fsf@blp.benpfaff.org>, Ben Pfaff wrote: > Chad writes: > > > On Mar 16, 8:16 pm, Ben Pfaff wrote: > >> grocery_stocker 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 ***