[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How does M-x completion works
From: |
Stefan Monnier |
Subject: |
Re: How does M-x completion works |
Date: |
Wed, 24 Feb 2010 15:10:09 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) |
> Although removed, they are still shown by the auto-completion, that's
> the trouble.
It would indeed make sense to get rid of those autoloaded functions that
refer to files that don't exist. The better way to do that is probably
to re-build a new Emacs executable where you remove the unwanted
packages beforehand.
But you can also do it after the fact. Using `mapatoms' you can iterate
through all known identifiers and then check if they're autoloaded and
if they are, check if their file can be found in `load-path':
(mapatoms (lambda (sym)
(if (and (fboundp sym)
(eq 'autoload (car-safe (symbol-function sym)))
(null (locate-library (cadr (symbol-function sym)))))
(message "(fmakunbound %s)" sym))))
-- Stefan
- Re: How does M-x completion works, (continued)
- Re: How does M-x completion works, Andreas Röhler, 2010/02/23
- Message not available
- Re: How does M-x completion works, Yannick Duchêne, 2010/02/23
- Re: How does M-x completion works, Andreas Röhler, 2010/02/23
- Re: How does M-x completion works, Kevin Rodgers, 2010/02/23
- Re: How does M-x completion works, Andreas Röhler, 2010/02/26
- Message not available
- Re: How does M-x completion works, Yannick Duchêne, 2010/02/26
- Message not available
- Re: How does M-x completion works, Yannick Duchêne, 2010/02/23
- Re: How does M-x completion works, Andreas Röhler, 2010/02/23
- Message not available
- Re: How does M-x completion works, Tim X, 2010/02/23
- Re: How does M-x completion works, Kevin Rodgers, 2010/02/23
- Re: How does M-x completion works,
Stefan Monnier <=
- Re: How does M-x completion works, Kevin Rodgers, 2010/02/23