Questions tagged [autoload]

58 questions
2
votes
2 answers

How to programatically detect if a unbound symbol is part of an autoloaded file and what file that is?

Given a variable or a function symbol not currently bound, what would be the variable that holds the auto-loading association I could use to search for the symbol and find out what file would get loaded when it is invoked?
PRouleau
  • 796
  • 3
  • 10
1
vote
3 answers

Who or what decides what gets put into `loaddefs.el`?

For context, I'm writing an extension. I need to check if a particular symbol is an autoload symbol, such that autoloadp = t. After doing some digging I found that the defined autoloads in loaddefs.el do not match up with every declared autoload in…
John DeBord
  • 570
  • 3
  • 14
1
vote
1 answer

How to postpone loading a file until it's function is called?

Say I have foobar_utility.el that defines an interactive function foobar_utility. How can I postpone loading foobar_utility.el until foobar_utility is called? Example usage: (load (concat user-emacs-directory "foobar_utility.el") :nomessage…
ideasman42
  • 8,786
  • 1
  • 32
  • 114
0
votes
1 answer

Use of ;;;###autoload

I have seen the use of ;;;###autoload when defining minor modes. Why do some modes define foo-enable and foo-disable, and could be the purpose of ;;;###autoload before all of them ? ;;;###autoload (define-minor-mode foo-minor-mode "Enhances…
Dilna
  • 1
  • 3
  • 11
0
votes
1 answer

Dependent functions: eval or autoload?

I have a situation where I have a function that depends on other functions. So (defun a () (something)) and (defun b () (something-else)) are used by (defun c () (something-calling (a) (b)) Not wanting to do a blanket load of everything…
147pm
  • 2,959
  • 1
  • 18
  • 42
0
votes
2 answers

Ghost code in Emacs configuration, how to find it?

I use the package vimish-fold. The package contains, for example, two functions, called as: Function 1 Function 2 There is a new commit to the package vimish-fold on Github, which will add the new function 3. But the changes are not reflected yet…
ReneFroger
  • 3,850
  • 23
  • 66