From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: How to install packages Date: Tue, 04 Jul 2006 14:03:30 +0200 Organization: University Koblenz-Landau Campus Koblenz Message-ID: <87ac7pvap9.fsf@baldur.nicundtas.de> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1152016852 26536 80.91.229.2 (4 Jul 2006 12:40:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 Jul 2006 12:40:52 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 04 14:40:46 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FxkCc-0007ta-5F for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Jul 2006 14:40:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FxkCb-00069f-Je for geh-help-gnu-emacs@m.gmane.org; Tue, 04 Jul 2006 08:40:29 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.aset.psu.edu!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!news.belwue.de!news.uni-kl.de!cache.uni-koblenz.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 52 Original-NNTP-Posting-Host: dhcp108.uni-koblenz.de Original-X-Trace: cache.uni-koblenz.de 1152014610 28407 141.26.71.108 (4 Jul 2006 12:03:30 GMT) Original-X-Complaints-To: news@cache.uni-koblenz.de Original-NNTP-Posting-Date: Tue, 4 Jul 2006 12:03:30 +0000 (UTC) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEUbGxs7PEFeXl59foSD hH+io6O6u8C+wL2/wMTAv8TAwL74+PgHAaGCAAAACXBIWXMAAArrAAAK6wGCiw1aAAAATnRFWHRS YXcgcHJvZmlsZSB0eXBlIGV4aWYACmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAwNGQ0ZDAwMmEw MDAwMDAwODAwMDAwMDAwMDAwMAqJuBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAABaklEQVQ4y63U MUvDQBQH8HcdinBLLJQOWZJArJBFF3Ht0MklOZoQ7CKCUuikVBCd2pJS7CwKnSy0lDg1ciX0fTmv drF3l0W88X68u8fd/w7w1yA1Uiu/D+NhDAB/gSj6mZ3LkDcqXTHPbU+CBMAVYAORYEV2G9gggWXu IJMg3/Y13YoGnkIu9re8PVhTxIA4VUTf3ANOkRsApC1DJgCgBB5eKRUrAVZZU+GTStUoobXflWjf ScOA+aHULgdmrtzzm9mhAgb6Zx0eggKAdjxKYqDSWRmlDTu97dctGawD3mKTvhvIF5VR3noYf7ld 5WrpoplPRhWmhqErTnDsOArkr0eYtD1brZi5+BJeqPFJnBCbA02u7vhycjJXITd5Ou0dc01Es8+3 x3qgy+5zkiamDi432KM6iLCNHzpYj6OBdim+GTieHvKlHpYp0wJ2Aqp/g9F1AbC5qYesCPC+CIKi D6BRBHYRZP/wyXwDexq4OsS+kNQAAAAaelRYdEpQRUctQ29sb3JzcGFjZQAAeNozAgAAMwAzERZ+ YwAAACd6VFh0SlBFRy1TYW1wbGluZy1mYWN0b3JzAAB42jOqMNIxrDAEYQARgwLpZA8bYgAAAABJ RU5ErkJggg== User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:Mue84OjdSx7EkdcpXspzos53CUw= Original-Xref: shelby.stanford.edu gnu.emacs.help:140185 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:35811 Archived-At: 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!