Is there a function that will tell me for a given library foo if

(require 'foo)

has previously happened?

  • 3
    How about? featurep
    – lawlist
    Jul 19, 2016 at 22:37
  • 1
    If you looked at the help info for provide it would have told you about a variable it records this in, and if you looked at the documentation for that variable it would tell you about the proper way to test it (as per @lawlist): featurep.
    – MAP
    Jul 20, 2016 at 0:02

1 Answer 1

(member 'foo features)

See elisp manual about features.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.