🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #189419

Re: autoloads etc

#189419
From: Mike Williams
Date: Sun, 17 Feb 1991 17:34
23 lines
1548 bytes
+-- In article <1991Feb16.165034.23875@mlb.semi.harris.com> (Jim Ray) writes:
| 
| (autoload 'perl-mode "perl-mode")
| 
| Now, when I M-x perl-mode I get a beep and no-match.
| 
| What am I doing wrong??????

    M-x only works for *commands* (interactive functions).  When you do the
  autoload you need to tell emacs that the perl-mode function can be called
  interactively, like so:

  (autoload 'perl-mode "perl-mode" nil t)

  Have a look at the documentation for autoload for more info.

--
      /-------------------- byrd@comp.vuw.ac.nz --------------------\ 
      | Mike Williams, Victoria University of Wellington, Aotearoa. |
      \--- It's not an optical illusion, it just looks like one. ---/

	(P.S. This account will probably disappear in early March.)
Technical Details
Message-ID: <BYRD.91Feb17123426@embassy.comp.vuw.ac.nz>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!comp.vuw.ac.nz!byrd
References: <1991Feb16.165034.23875@mlb.semi.harris.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 103b8b,a3b0f1ff306b71e3
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1991-02-16 19:43:47 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!comp.vuw.ac.nz!byrd
From: Mike.Williams@comp.vuw.ac.nz (Mike Williams)
Newsgroups: gnu.emacs.help
Subject: Re: autoloads etc
Message-ID: <BYRD.91Feb17123426@embassy.comp.vuw.ac.nz>
Date: 17 Feb 91 17:34:26 GMT
References: <1991Feb16.165034.23875@mlb.semi.harris.com>
Sender: news@comp.vuw.ac.nz (News Admin)
Organization: Dept. of Computer Science, Victoria Uni. of Wellington, NZ.
Lines: 17
Nntp-Posting-Host: embassy.comp.vuw.ac.nz
In-Reply-To: jdr@sloth.mlb.semi.harris.com's message of 16 Feb 91 16:50:34 GMT
X-News-Software: GNUS 3.13