all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: How does M-x completion works
Date: Wed, 24 Feb 2010 15:10:09 -0500	[thread overview]
Message-ID: <jwveikav1vw.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: op.u8kptekfvwnd5a@garhos

> 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


  parent reply	other threads:[~2010-02-24 20:10 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-22 12:35 How does M-x completion works Hibou57 (Yannick Duchêne)
2010-02-22 16:34 ` Lennart Borgman
     [not found] ` <4B82A7A4.6050005@easy-emacs.de>
     [not found]   ` <op.u8jfv6nuesn74s@garhos>
2010-02-22 17:42     ` Andreas Röhler
2010-02-22 22:06 ` Colin S. Miller
2010-02-23  7:06   ` Hibou57 (Yannick Duchêne)
2010-02-23  8:36     ` Barry Margolin
2010-02-23  9:25       ` Hibou57 (Yannick Duchêne)
2010-02-23 10:03         ` Andreas Röhler
     [not found]         ` <mailman.1694.1266919287.14305.help-gnu-emacs@gnu.org>
2010-02-23 13:47           ` Hibou57 (Yannick Duchêne)
2010-02-23 15:18             ` Andreas Röhler
2010-02-24  3:44               ` Kevin Rodgers
2010-02-26 13:12                 ` Andreas Röhler
     [not found]               ` <mailman.1758.1266983111.14305.help-gnu-emacs@gnu.org>
2010-02-26 11:58                 ` Hibou57 (Yannick Duchêne)
     [not found]             ` <mailman.1706.1266938167.14305.help-gnu-emacs@gnu.org>
2010-02-23 17:17               ` Hibou57 (Yannick Duchêne)
2010-02-23 19:32                 ` Andreas Röhler
     [not found]                 ` <mailman.1728.1266953431.14305.help-gnu-emacs@gnu.org>
2010-02-23 21:24                   ` Tim X
2010-02-24  4:08                     ` Kevin Rodgers
2010-02-24 20:10         ` Stefan Monnier [this message]
2010-02-24  4:10     ` Kevin Rodgers

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=jwveikav1vw.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --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.