From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: How to check if cperl-mode.el file is loaded Date: Fri, 21 May 2010 09:20:22 +1000 Organization: Unlimited download news at news.astraweb.com Message-ID: <87vdaikvnt.fsf@rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1291833488 20301 80.91.229.12 (8 Dec 2010 18:38:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 18:38:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 19:38:04 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQOtr-0008JP-Lk for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 19:37:59 +0100 Original-Received: from localhost ([127.0.0.1]:47730 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQOtr-0006Vv-0x for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 13:37:59 -0500 Original-Path: usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:8oY8odtVkex66c3XunwuNzAiAYU= Original-Lines: 51 Original-NNTP-Posting-Host: d2b5feab.news.astraweb.com Original-X-Trace: DXC=O5Hd5C]1JL85WGRN4JSiW2L?0kYOcDh@:a30YlQ[TC>:P@8f`@g3od8o3b0mn9ZaR0K1aFh?2:]9; Original-Xref: usenet.stanford.edu gnu.emacs.help:178318 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:75805 Archived-At: "Powell, Eric" writes: > Hello, > > I am trying to use the newest version of cperl-mode and, although I am not > getting errors, I still don’t think it’s loaded correctly. I downloaded the > cperl-mode.el file from http://github.com/jrockway/cperl-mode and placed it in > my elisp directory. > > What gets me is that when I check the version (C-h v cperl-version) it says > 4.23, which is the same version number that my emacs originally came with. > > Is there anything in particular that I should notice different between v4.23 > and the current version at the website above? > > On a side note, in my .emacs file, I notice that if I put the require > statement after the ‘add-to-list’ command that I get an error: ‘error: > "Invalid escape character syntax"’. That doesn’t seem right to me, but when I > switched the order of the two it went away, so I left it like that. > If you have the require before the add-to-path statement, then you will be loading the cperl mode that comes with meacs, not the one you hve downloaded. The invalid syntax error indicates (at a guess) either that 1. The file you have odnwloaded is currupted. Try byte compiling it and see if you get any errors. 2. The cperl mode you are tyring to use is not compatible with the version of emacs you are running. I'm guessing, but perhaps the version you are tyring to load has been modified to support a later version of emacs and is not compatible with the version you are running. Note that there is considerable confusion surrounding cperl mode and version numbes. The main problem is that the author of cperl mode maintains his own version with version numbers that are independent from the version and version numbers of the one bundled with emacs. It seems that there is some stuff in cperl mode that the emacs maintainers need to modify (I don't know the full details) to include it in the emacs distribution. One way to avoid confusion is to rename the cperl source files that come with emacs to something like oldcperl.el and oldcperl.elc. Then get the version you have downloaded installed and working. Tim -- tcross (at) rapttech dot com dot au