From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien?= Aptel Newsgroups: gmane.emacs.bugs Subject: bug#12096: 24.1; Several documented functions in URL package are not defined Date: Tue, 31 Jul 2012 01:21:18 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1343690512 29303 80.91.229.3 (30 Jul 2012 23:21:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Jul 2012 23:21:52 +0000 (UTC) To: 12096@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 31 01:21:52 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SvzHc-0000YO-FV for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 Jul 2012 01:21:52 +0200 Original-Received: from localhost ([::1]:45404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvzHb-0001sT-Lg for geb-bug-gnu-emacs@m.gmane.org; Mon, 30 Jul 2012 19:21:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvzHY-0001sO-CG for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 19:21:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvzHW-0004BB-IR for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 19:21:48 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42276) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvzHW-0004B4-Ey for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 19:21:46 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SvzOY-0006kV-0R for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 19:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?Aur=C3=A9lien?= Aptel Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jul 2012 23:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12096 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.134369093725931 (code B ref -1); Mon, 30 Jul 2012 23:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Jul 2012 23:28:57 +0000 Original-Received: from localhost ([127.0.0.1]:51822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvzOS-0006kB-PJ for submit@debbugs.gnu.org; Mon, 30 Jul 2012 19:28:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:59674) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SvzOC-0006jq-JM for submit@debbugs.gnu.org; Mon, 30 Jul 2012 19:28:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvzH9-00046C-AV for submit@debbugs.gnu.org; Mon, 30 Jul 2012 19:21:24 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:54975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvzH9-000468-6N for submit@debbugs.gnu.org; Mon, 30 Jul 2012 19:21:23 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56150) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvzH7-0001rm-IQ for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 19:21:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SvzH5-00045M-Ru for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 19:21:21 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:53304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SvzH5-000450-KW for bug-gnu-emacs@gnu.org; Mon, 30 Jul 2012 19:21:19 -0400 Original-Received: by obhx4 with SMTP id x4so11787605obh.0 for ; Mon, 30 Jul 2012 16:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=95cUZ50UHjCmxfER+zMcQ/ScK5woOTIZX9iAB1xbJBs=; b=pxX91rtvBarmbxKGxzYv3gzc1owFEVdbrLpypFHiiZDfCjMQbJGEtGtDwdgFUu7Nyb pEikmY5zwoEC5HAz27pZ244U7m/yirn65bQFQktNmXKbiih1vJFNfidiP3O3+4umnH7q 4+P9zSQZXtd7vbyHArsJU8XPLQDhSj+9omlvkVm6EXazqC1G2R6AaXm5eaZraZBsc3Ne LpZTdM2LL/42bXf42II6J5a3KOtzO6U2xExF7bUs/Ndo0nc35fsTJAEa9bpN1G7GuRFQ PWicoRDQAJEkpq+M13G/n1H17EiYA+9v2oTtmFjpad2qE42WcXjo+60cC1fZyAC0gdxQ ZAkQ== Original-Received: by 10.182.17.99 with SMTP id n3mr20162258obd.8.1343690478817; Mon, 30 Jul 2012 16:21:18 -0700 (PDT) Original-Received: by 10.182.42.1 with HTTP; Mon, 30 Jul 2012 16:21:18 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:62666 Archived-At: Hi all, url-parse.el defines functions to parse an URL. A parsed URL (with `url-generic-parse-url') is a simple vector whose content is documented in (info "(url)Parsed URLs"). >From the info page: > The library functions typically operate on "parsed" versions of URLs. > These are actually vectors of the form: > > [TYPE USER PASSWORD HOST PORT FILE TARGET ATTRIBUTES FULL] > ... > These attributes have accessors named `url-PART', where PART is the > name of one of the elements above, e.g., `url-host'. Similarly, there > are setters of the form `url-set-PART'. There are some exceptions which are not documented: `url-file' is not the FILE attribute accessor. The accessor is actually `url-filename'. `url-full' is actually `url-fullness'. And most importantly none of the setters are defined, as this little snippet shows: (let (funlist) (require 'url) (require 'url-parse) (mapatoms (lambda (a) (when (and (fboundp a) (string-match "^url-set-" (symbol-name a))) (push a funlist)))) funlist) ;; => (url-set-mime-charset-string) In GNU Emacs 24.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of 2012-06-11 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.11203000 Configured using: `configure '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--with-x-toolkit=gtk' '--with-xft' 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: rcirc-track-minor-mode: t cua-mode: t ido-everywhere: t show-paren-mode: t rainbow-delimiters-mode: t yas/global-mode: t yas/minor-mode: t global-auto-complete-mode: t auto-complete-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e C-g ( m p a p a t o m s SPC ( l a m b d a C-g ( l e t SPC ( f u n l i s t ) SPC ( a ) ( f b o u n d p SPC a ) ( ( w h e n SPC ( a n d SPC ( C-e C-k C-e s t r i n g - m a t SPC " ^ u r l - s e t " SPC ( s y u m b o l SPC a ) ) ) ( p u s h SPC a SPC f u n l i s t ) ) ) f u n ) C-e ) C-n C-j C-SPC C-w C-SPC C-g ( r e q u i r e SPC ' u r l ) ( r e q u i r e SPC ' u r l - p a r s e ) C-j C-SPC C-SPC C-SPC C-w - C-g C-j M-x r e p o e r Recent messages: Fill column set to 80 (was 70) [yas] Reloaded everything.... Loading grep...done For information about GNU Emacs and the GNU system, type C-h C-a. Quit [2 times] Mark set [3 times] Mark cleared Mark activated Quit Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util url-parse auth-source eieio byte-opt bytecomp byte-compile cconv macroexp gnus-util password-cache url-vars mm-util mail-prsvr mailcap thingatpt find-func grep compile comint regexp-opt ansi-color cus-start cus-load rcirc ring windmove cua-base ido delsel knarf-wombat-theme mark-multiple paren expand-region expand-region-custom expand-region-core uniquify rainbow-delimiters yasnippet advice advice-preload dropdown-list help-fns derived easy-mmode help-mode view easymenu assoc cl auto-complete-config auto-complete edmacro kmacro popup server dpaste-autoloads expand-region-autoloads gccsense-autoloads htmlize-autoloads mark-multiple-autoloads rainbow-delimiters-autoloads package tabulated-list time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)