From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: Loading .el file Date: Mon, 25 Mar 2013 15:04:39 +0000 Message-ID: <155DEC68569B714B86C2C7075F5EDA9828ECFB20@DAKIYA1.pegasus.local> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1364223773 22683 80.91.229.3 (25 Mar 2013 15:02:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2013 15:02:53 +0000 (UTC) To: Dennis Stello , "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 25 16:03:19 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UK8vb-0003Um-6s for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Mar 2013 16:03:15 +0100 Original-Received: from localhost ([::1]:56295 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK8vD-0005Wf-G1 for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Mar 2013 11:02:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:32892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK8uu-0005VQ-V4 for help-gnu-emacs@gnu.org; Mon, 25 Mar 2013 11:02:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UK8us-0000z8-GI for help-gnu-emacs@gnu.org; Mon, 25 Mar 2013 11:02:32 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:29587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UK8us-0000ys-Af for help-gnu-emacs@gnu.org; Mon, 25 Mar 2013 11:02:30 -0400 Original-Received: from dakiya1.pegasus.local ([172.16.208.201]) by DAKIYA1.pegasus.local ([172.16.208.201]) with mapi id 14.01.0339.001; Mon, 25 Mar 2013 11:04:40 -0400 Thread-Topic: Loading .el file Thread-Index: AQHOKWWoMuiDX0rBTk2ondXsovH725i2gLUw In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89734 Archived-At: Dennis, The file you attached is an HTML file, not an emacs lisp file. I bet if you find the true .el file that you're looking for, things will go= much more easily. A more-circuitous-than-I'd-have-liked search led me to t= his URL: https://raw.github.com/jschwab/mesa-minor-mode/master/mesa-minor-m= ode.el. I make no guarantees, but it satisfies all of your requirements that a layp= erson could understand. I hope this helps. ,Douglas Douglas Lewan Shubert Ticketing (201) 489-8600 ext 224 Journalism is printing what someone else does not want printed. Everything = else is public relations. - George Orwell > -----Original Message----- > From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org > [mailto:help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On > Behalf Of Dennis Stello > Sent: Monday, 2013 March 25 03:23 > To: help-gnu-emacs@gnu.org > Subject: Loading .el file >=20 > Hi, >=20 > I have been trying to load a custom .el file in emacs to add some > personal > functionalities when I run emacs. > The file is called mesa-minor-mode.el and is attach here for > completeness. I have saved it in my ~/emacslisp/ and after a few > unsuccesful attempts to get it working I also saved it in ~/.emacs.d/ > just to be sure emacs was not being sensitive to where the file was. >=20 > I run emacs version: GNU 21.4.1 x86_64-redhat-linux-gnu. >=20 > From various online help and colleagues I have ended up trying (without > luck) lots of permutations in my .emacs of the suggestions I received. > These incl (after each permutation I include here the error message > when > starting emacs): >=20 > ;; (1) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (require 'mesa-minor-mode) > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode" > ;; (2) > (add-to-list 'load-path "~/emacslisp/") > (require 'mesa-minor-mode) > ;An error has occurred while loading `/suphys/stello/.emacs': > ;Symbol's value as variable is void: ;; (3) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (load "mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode.el" > ;; (4) > (add-to-list 'load-path "~/emacslisp/") > (load "mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;Symbol's value as variable is void: ;; (5) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (load "mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode" > ;; (6) > (add-to-list 'load-path "~/emacslisp/") > (load "mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;Symbol's value as variable is void: ;; (7) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (load "emacslisp/mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "emacslisp/mesa-minor-mode.el" > ;; (8) > (add-to-list 'load-path "~/emacslisp/") > (load "emacslisp/mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "emacslisp/mesa-minor-mode.el" > ;; (9) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (load "emacslisp/mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "emacslisp/mesa-minor-mode" > ;; (10) > (add-to-list 'load-path "~/emacslisp/") > (load "emacslisp/mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;Symbol's value as variable is void: ;; (11) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (load-file "mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/mesa-minor- > mode.el" > ;; (12) > (add-to-list 'load-path "~/emacslisp/") > (load-file "mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/mesa-minor- > mode.el" > ;; (13) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (load-file "mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/mesa-minor-mode" > ;; (14) > (add-to-list 'load-path "~/emacslisp/") > (load-file "mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/mesa-minor-mode" > ;; (15) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (load-file "emacslisp/mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;Symbol's value as variable is void: ;; (16) > (add-to-list 'load-path "~/emacslisp/") > (load-file "emacslisp/mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;Symbol's value as variable is void: ;; (17) > (add-to-list 'load-path "~/emacslisp/mesa-minor-mode/") > (load-file "emacslisp/mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", > "/suphys/stello/emacslisp/mesa-minor-mode" > ;; (18) > (add-to-list 'load-path "~/emacslisp/") > (load-file "emacslisp/mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", > "/suphys/stello/emacslisp/mesa-minor-mode" >=20 > ;; (19) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (require 'mesa-minor-mode) > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode" > ;; (20) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (require 'mesa-minor-mode) > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode" > ;; (21) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load "mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode.el" > ;; (22) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load "mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode.el" > ;; (23) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load "mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode" > ;; (24) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load "mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "mesa-minor-mode" > ;; (25) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load "emacslisp/mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "emacslisp/mesa-minor-mode.el" > :; (26) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load "emacslisp/mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "emacslisp/mesa-minor-mode.el" > ;; (27) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load "emacslisp/mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "emacslisp/mesa-minor-mode" > ;; (28) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load "emacslisp/mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "emacslisp/mesa-minor-mode" > ;; (29) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load-file "mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/mesa-minor- > mode.el" > ;; (30) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load-file "mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/mesa-minor- > mode.el" > ;; (31) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load-file "mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/mesa-minor-mode" > ;; (32) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load-file "mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/mesa-minor-mode" > ;; (33) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load-file "emacslisp/mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;Symbol's value as variable is void: ;; (34) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load-file "emacslisp/mesa-minor-mode.el") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;Symbol's value as variable is void: ;; (35) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load-file "emacslisp/mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/emacslisp/mesa- > minor-mode" > ;; (36) > (setq load-path (cons "~/emacslisp/mesa_minor_mode" load-path)) > (load-file "emacslisp/mesa-minor-mode") > ;An error has occurred while loading `/suphys/stello/.emacs': > ;File error: "Cannot open load file", "/suphys/stello/emacslisp/mesa- > minor-mode" >=20 >=20 > I also tried to replace tilde in the above attempts with the full path > but > still no luck. Also replacing emacslisp with .emacs.d, as well as incl > and removing '/' at the end of paths was tested. >=20 > Any help with this would be greatly appreciated. >=20 >=20 > Thanks > -- > Dennis Stello