[A complimentary Cc of this posting was sent to
Mike Dowling
I had no problems with cperl-mode with emacs-21.3.
With emacs-21.4, it still works, but only if started manually (M-x
cperl-mode). Starting automaticall with
(autoload 'perl-mode "cperl-mode" "alternate mode for editing Perl
programs" t)
in the .emacs file fails. Instead, I get the message:
File mode specification error: (error "Autoloading failed to define
function perl-mode")
Maybe you are using "my" cperl-mode.el with 21.3, and "their" with
21.4? IIRC, with "their" version you need a different way to
auto-associate, since it won't overwrite perl-mode...
Perhaps! I used the cperl-mode that came with emacs ("theirs") but it
appeared to have been authored by you, but its probabale old. Where can
I get the latest version, could you perhaps post it here?
Here's the blurb in the commentary in the beginning:
;;; cperl-mode.el --- Perl code editing commands for Emacs
;; Copyright (C) 1985, 86, 87, 91, 92, 93, 94, 95, 96, 1997
;; Free Software Foundation, Inc.
;; Author: Ilya Zakharevich and Bob Olson
;; Maintainer: Ilya Zakharevich <
[email protected]>
;; Keywords: languages, Perl
So it looks like it's yours, but
(defvar cperl-tips 'please-ignore-this-line
"Get newest version of this package from
ftp://ftp.math.ohio-state.edu/pub/users/ilya/emacs
and/or
ftp://ftp.math.ohio-state.edu/pub/users/ilya/perl
Subdirectory `cperl-mode' may contain yet newer development releases
and/or
patches to related files.
For best results apply to an older Emacs the patches from
ftp://ftp.math.ohio-state.edu/pub/users/ilya/cperl-mode/patches
\(this upgrades syntax-parsing abilities of RMS Emaxen v19.34 and
v20.2 up to the level of RMS Emacs v20.3 - a must for a good Perl
mode.) You will not get much from XEmacs, its syntax abilities are
too primitive.
But these FTP URLs apparently no longer exist, so I deduce the
cperl-mode distributed with emacs is ancient. A google search for more
recent sources drew a blank.
Cheers,
Mike Dowling