From: Tassilo Horn <heimdall@uni-koblenz.de>
Subject: Re: How to install packages
Date: Tue, 04 Jul 2006 14:03:30 +0200 [thread overview]
Message-ID: <87ac7pvap9.fsf@baldur.nicundtas.de> (raw)
In-Reply-To: ud2dnSm1qKHTozfZRVny2A@pipex.net
news <"r.t.wilson(news)"@rmplc.co.uk> writes:
Hi!
> I am now trying to install the help+ package - which I have got as a
> file called help+.el and I've put it in the same directory as the
> mode-compile file, and then put this in my .emacs:
>
> (autoload 'help+ "help+"
> "Command to give better help" t)
>
> but it isn't working.
The problem is, that `help+' is no function name.
,----[ C-h f autoload RET ]
| autoload is a built-in function in `C source code'.
| (autoload FUNCTION FILE &optional DOCSTRING INTERACTIVE TYPE)
|
| Define FUNCTION to autoload from FILE.
| FUNCTION is a symbol; FILE is a file name string to pass to `load'.
| Third arg DOCSTRING is documentation for the function.
| Fourth arg INTERACTIVE if non-nil says function can be called
| interactively.
| Fifth arg TYPE indicates the type of the object:
| nil or omitted says FUNCTION is a function,
| `keymap' says FUNCTION is really a keymap, and
| `macro' or t says FUNCTION is really a macro.
| Third through fifth args give info about the real definition.
| They default to nil.
| If FUNCTION is already defined other than as an autoload,
| this does nothing and returns nil.
`----
Instead of autoload, you have to use `require' here:
(require 'help+)
For more infos on autoload have a look at the info page:
,----[ (info "(elisp)Autoload") ]
| The "autoload" facility allows you to make a function or macro
| known in Lisp, but put off loading the file that defines it. The
| first call to the function automatically reads the proper file to
| install the real definition and other associated code, then runs the
| real definition as if it had been loaded all along.
`----
HTH,
Tassilo
--
A child of five could understand this! Fetch me a child of five!
next prev parent reply other threads:[~2006-07-04 12:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-04 10:09 How to install packages news
2006-07-04 11:05 ` Peter Dyballa
2006-07-04 12:03 ` Tassilo Horn [this message]
2006-07-04 20:38 ` Drew Adams
[not found] <mailman.3746.1152045523.9609.help-gnu-emacs@gnu.org>
2006-07-04 20:45 ` Robin Wilson
2006-07-04 21:04 ` Colin S. Miller
2006-07-04 22:09 ` Drew Adams
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ac7pvap9.fsf@baldur.nicundtas.de \
--to=heimdall@uni-koblenz.de \
/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.
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).