From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Powell, Eric" Newsgroups: gmane.emacs.help Subject: How to check if cperl-mode.el file is loaded Date: Thu, 20 May 2010 17:15:47 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="_000_F3B6454EEC789549A07E29FD26F09ECC088B8B24DDMEDEXMB04adme_" X-Trace: dough.gmane.org 1274390192 3465 80.91.229.12 (20 May 2010 21:16:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 20 May 2010 21:16:32 +0000 (UTC) To: "'help-gnu-emacs@gnu.org'" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu May 20 23:16:30 2010 connect(): No such file or directory 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 1OFD6P-0005P8-Fb for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 23:16:26 +0200 Original-Received: from localhost ([127.0.0.1]:38497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFD6O-0001UZ-KT for geh-help-gnu-emacs@m.gmane.org; Thu, 20 May 2010 17:16:24 -0400 Original-Received: from [140.186.70.92] (port=48372 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFD5u-0001SO-Bk for help-gnu-emacs@gnu.org; Thu, 20 May 2010 17:15:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFD5r-0004mr-2q for help-gnu-emacs@gnu.org; Thu, 20 May 2010 17:15:53 -0400 Original-Received: from medip04.med.miami.edu ([129.171.88.231]:44661) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFD5q-0004ma-Jo for help-gnu-emacs@gnu.org; Thu, 20 May 2010 17:15:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=med.miami.edu; i=EPowell1@med.miami.edu; q=dns/txt; s=key; t=1274390150; x=1305926150; h=from:sender:reply-to:subject:date:message-id:to:cc: mime-version:content-transfer-encoding:content-id: content-description:resent-date:resent-from:resent-sender: resent-to:resent-cc:resent-message-id:in-reply-to: references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:list-owner:list-archive; z=From:=20"Powell,=20Eric"=20 |Subject:=20How=20to=20check=20if=20cperl-mode.el=20file =20is=20loaded|Date:=20Thu,=2020=20May=202010=2017:15:47 =20-0400|Message-ID:=20|To:=20"'help-gnu-em acs@gnu.org'"=20|MIME-Version:=20 1.0; bh=AgzhMRRcK439ZJctVQGyp28KjeC2JlGfg66mQoEycYc=; b=Ged4HMNawanOXhtLM74lw6RktMuOtwATy X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am8FAOdD9UvMRF1l/2dsb2JhbACBP5t1ZnG2W4hehRIE X-IronPort-AV: E=Sophos;i="4.53,273,1272859200"; d="scan'208,217";a="28113383" Original-Received: from unknown (HELO MEDEXCAS01.ad.med.miami.edu) ([204.68.93.101]) by medip04.med.miami.edu with ESMTP/TLS/AES128-SHA; 20 May 2010 17:15:47 -0400 Original-Received: from MEDEXMB04.ad.med.miami.edu ([169.254.1.176]) by MEDEXCAS01.ad.med.miami.edu ([204.68.93.101]) with mapi; Thu, 20 May 2010 17:15:48 -0400 Thread-Topic: How to check if cperl-mode.el file is loaded Thread-Index: Acr4YZ2FMV46rsrsQ7+fuJcDEvcCLA== Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:73698 Archived-At: --_000_F3B6454EEC789549A07E29FD26F09ECC088B8B24DDMEDEXMB04adme_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 th= e 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.2= 3 and the current version at the website above? On a side note, in my .emacs file, I notice that if I put the require state= ment 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 switc= hed the order of the two it went away, so I left it like that. Here is my .emacs file: ###########################################################################= ######### ;; .emacs (require 'cperl-mode) (add-to-list 'load-path "~/elisp") ;; ---- CPERL MODE ----- ;; ;;; cperl-mode is preferred to perl-mode ;;; "Brevity is the soul of wit" (defalias 'perl-mode 'cperl-mode) ;;; uncomment this line to disable loading of "default.el" at startup ;; (setq inhibit-default-init t) ;; turn on font-lock mode (when (fboundp 'global-font-lock-mode) (global-font-lock-mode t)) ;; enable visual feedback on selections ;(setq transient-mark-mode t) ;; default to better frame titles (setq frame-title-format (concat "%b - emacs@" (system-name))) ;; default to unified diffs (setq diff-switches "-u") ;; always end a file with a newline ;(setq require-final-newline 'query) (custom-set-variables ;; custom-set-variables was added by Custom -- don't edit or cut/paste it= ! ;; Your init file should contain only one such instance. '(comment-column 80) '(truncate-partial-width-windows t)) (custom-set-faces ;; custom-set-faces was added by Custom -- don't edit or cut/paste it! ;; Your init file should contain only one such instance. ) ###########################################################################= ######### Thank you for your help :) -eric --_000_F3B6454EEC789549A07E29FD26F09ECC088B8B24DDMEDEXMB04adme_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello,

 

I am trying to use the newest version of cperl-mode an= d, although I am not getting errors, I still don’t think it’s load= ed correctly.  I downloaded the cperl-mode.el file from http://github.com/jrockway/c= perl-mode and placed it in my elisp directory. 

 

What gets me is that when I check the version (C-h v c= perl-version) it says 4.23, which is the same version number that my emacs originally cam= e with. 

 

Is there anything in particular that I should notice different between v4.23 and the current version at the website above?<= /o:p>

 

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 ge= t an error: ‘error: "Invalid escape character syntax"’.&nb= sp; That doesn’t seem right to me, but when I switched the order of the t= wo it went away, so I left it like that.

 

Here is my .emacs file:

 

######################################################= ##############################

;; .emacs

(require 'cperl-mode)

(add-to-list 'load-path "~/elisp")

 

;; ---- CPERL MODE ----- ;;

;;; cperl-mode is preferred to perl-mode

;;; "Brevity is the soul of wit" <foo at acm.org>

(defalias 'perl-mode 'cperl-mode)

 

;;; uncomment this line to disable loading of "default.el" at startup

;; (setq inhibit-default-init t)

 

;; turn on font-lock mode

(when (fboundp 'global-font-lock-mode)

  (global-font-lock-mode t))

 

;; enable visual feedback on selections

;(setq transient-mark-mode t)

 

;; default to better frame titles

(setq frame-title-format

      (concat  "%b = - emacs@" (system-name)))

 

;; default to unified diffs

(setq diff-switches "-u")

 

;; always end a file with a newline

;(setq require-final-newline 'query)

 

(custom-set-variables

  ;; custom-set-variables was added by Custom -- = don't edit or cut/paste it!

  ;; Your init file should contain only one such instance.

 '(comment-column 80)

 '(truncate-partial-width-windows t))<= /p>

(custom-set-faces

  ;; custom-set-faces was added by Custom -- don'= t edit or cut/paste it!

  ;; Your init file should contain only one such instance.

 )

 

######################################################= ##############################

 

Thank you for your help J

-eric

--_000_F3B6454EEC789549A07E29FD26F09ECC088B8B24DDMEDEXMB04adme_--