unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#12981: list-packages (void-function mailcap-parse-mailcaps) due to an old mailcap.el file
@ 2012-11-24 15:27 frances frederic
  2012-11-24 18:45 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: frances frederic @ 2012-11-24 15:27 UTC (permalink / raw)
  To: 12981

[-- Attachment #1: Type: text/plain, Size: 1497 bytes --]

Hi 

I've recently installed emacs 24.2 on a debian virtual-box

After configuring elpa there was errors when running list-packages
So I've used toggle-on-error and got the following trace:

-------------
Debugger entered--Lisp error: (void-function mailcap-parse-mailcaps)
  mailcap-parse-mailcaps()
  url-do-setup()
  url-retrieve-synchronously("http://elpa.gnu.org/packages/archive-contents")
  package--download-one-archive(("gnu" . "http://elpa.gnu.org/packages/") "archive-contents")
  #[nil "\301\302\"\207" [archive package--download-one-archive "archive-contents"] 3]()
  package-refresh-contents()
  list-packages(nil)
  call-interactively(list-packages t nil)
  execute-extended-command(nil)
  call-interactively(execute-extended-command nil nil)
---------------

Then I tried to locate mailcap lisp library using M-x locate-library and found two locations:
M-x locate-library  mailcap
  - /usr/share/emacs/site-lisp/flim/attic/mailcap.el   (this one did not contains   mailcap-parse-mailcaps)


M-x locate-library mailcap.el.gz
   - /usr/share/emacs/24.2/lisp/gnus/mailcap.el.gz


only the second one contains the function required by list-package but the first one is loaded probably because of load-path 

finally I remove the oldest version of mailcap.el and elpa works fine now.

I don't know if the old package comes from an old installation or if mailcap.el is included twice with 2 locations and one has not been updated.

Regards
frederic

[-- Attachment #2: Type: text/html, Size: 3673 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-11-24 18:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-24 15:27 bug#12981: list-packages (void-function mailcap-parse-mailcaps) due to an old mailcap.el file frances frederic
2012-11-24 18:45 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).