From: ken <gebser@mousecar.com>
To: GNU Emacs List <help-gnu-emacs@gnu.org>
Subject: bug in url.el
Date: Mon, 17 Mar 2014 12:30:09 -0400 [thread overview]
Message-ID: <53272311.7090606@mousecar.com> (raw)
Some code developed a few years ago which worked fine up to my latest
upgrade of emacs now errors out with:
Debugger entered--Lisp error: (void-variable url-passwd-entry-func)
(cond (url-passwd-entry-func nil) ((fboundp ...) (setq
url-passwd-entry-func ...)) ((or ... ...) (if ... ...) (setq
url-passwd-entry-func ...)) ((or ... ...) (setq url-passwd-entry-func
...)) (t (url-warn ... "(url-setup): Can't determine how to read
passwords, winging it.")))
(if url-setup-done nil (mailcap-parse-mailcaps)
(mailcap-parse-mimetypes) (url-register-auth-scheme "basic" nil 4)
(url-register-auth-scheme "digest" nil 7) (setq url-cookie-file (or
url-cookie-file ...)) (setq url-history-file (or url-history-file ...))
(url-history-parse-history) (url-history-setup-save-timer)
(url-cookie-setup-save-timer) (url-cookie-parse-file url-cookie-file)
(let (...) (if noproxy ...)) (cond (url-passwd-entry-func nil) (... ...)
(... ... ...) (... ...) (t ...)) (url-setup-privacy-info) (run-hooks
(quote url-load-hook)) (setq url-setup-done t))
(unless url-setup-done (mailcap-parse-mailcaps)
(mailcap-parse-mimetypes) (url-register-auth-scheme "basic" nil 4)
(url-register-auth-scheme "digest" nil 7) (setq url-cookie-file (or
url-cookie-file ...)) (setq url-history-file (or url-history-file ...))
(url-history-parse-history) (url-history-setup-save-timer)
(url-cookie-setup-save-timer) (url-cookie-parse-file url-cookie-file)
(let (...) (if noproxy ...)) (cond (url-passwd-entry-func nil) (... ...)
(... ... ...) (... ...) (t ...)) (url-setup-privacy-info) (run-hooks
(quote url-load-hook)) (setq url-setup-done t))
url-do-setup()
url-retrieve("....
The URL my code is trying to fetch requires no password, so that's the
first odd thing. Why should the function fail for lack of something
which isn't needed? Whatever password configuration the function is
requiring should be required only when the situation requires it, yes?
So I'd think that portion of the code should be moved out from
url-do-setup and called only when needed, i.e., only when the URL
requires a userid and password.
The same function makes mention of 'user defaults' but gives not a hint
as to how the user is to set such defaults. It would seem to be a good
idea for this information to be provided somewhere so that regular users
can set their defaults without having to reverse engineer the code to
see what's being asked for.
Finally, what could I easily and expediently do to work around this bug?
My first thought would be to put some statements and/or assign some
variables in the user defaults file, whatever and wherever that is and
in whatever format this function would accept. But other workarounds
might be better... who knows?
tia.
next reply other threads:[~2014-03-17 16:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-17 16:30 ken [this message]
-- strict thread matches above, loose matches on Subject: below --
2014-03-17 16:40 bug in url.el ken
2014-03-19 17:59 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53272311.7090606@mousecar.com \
--to=gebser@mousecar.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.