On 2006–05–20, at 00:37, Donald S Dunbar wrote:
I recently purchased a 17" Intel MacBook. All is relatively well,
except that the cperl-mode in XEmacs (my perl editor of choice) is
now broken. Other edit modes work fine (e.g., F90). When I open a
perl file I get the following message:
Fontifying region...(wrong-number-of-arguments (lambda (beg end)
(let* ((modified ...
I'm using XEmacs vs. 21.4 (patch 15) installed from source (Fink).
Any ideas on the source of the problem and how to repair it? I had
no such problem on my PowerBook.
Well, the first thing I'd do -- rather than trying to debug the
problem -- is to try moving cperl-mode.el and cperl-mode.elc aside,
and then put cperl-mode.el v5.0 from the latest public Perl release,
5.8.8, in their place and see if that makes the issue go away. You
can either get the file as part of the distribution at <http://
www.cpan.org/src/stable.tar.bz2>, or on its own at <http://
public.activestate.com/cgi-bin/perlbrowse?file=emacs%2Fcperl-
mode.el&rev=>. (Discard the first line in the second case.) If
updating the file works for you, byte-compile it, then drop the Fink
maintainer of XEmacs a line about the issue.
Otherwise, it's back to debugging...
Or discard XEmacs in favour of Aquamacs emacs (http://aquamacs.org/),
as I did not so long ago. Its cperl-mode works fine for me, and it's
even a universal binary. The one wrinkle I've had to cope with
concerns server mode. Here's how I ironed it out:
$ alias emc
alias emc='~/bin/emacsclient --alternate-editor emacs -n'
$ file ~/bin/emacsclient
/Users/domo/bin/emacsclient: symbolic link to `/Applications/Aquamacs
Emacs.app/Contents/MacOS/bin/emacsclient'
--
Dominic Dunlop