From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dennis Stello Newsgroups: gmane.emacs.help Subject: RE: Loading .el file Date: Tue, 26 Mar 2013 09:54:18 +1100 (EST) Message-ID: References: <155DEC68569B714B86C2C7075F5EDA9828ECFB20@DAKIYA1.pegasus.local> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: ger.gmane.org 1364252089 444 80.91.229.3 (25 Mar 2013 22:54:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Mar 2013 22:54:49 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Doug Lewan Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Mar 25 23:55:16 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 1UKGIN-0000kE-7H for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Mar 2013 23:55:15 +0100 Original-Received: from localhost ([::1]:56688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKGHz-0007yy-BT for geh-help-gnu-emacs@m.gmane.org; Mon, 25 Mar 2013 18:54:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKGHf-0007xn-PQ for help-gnu-emacs@gnu.org; Mon, 25 Mar 2013 18:54:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKGHY-000698-ER for help-gnu-emacs@gnu.org; Mon, 25 Mar 2013 18:54:31 -0400 Original-Received: from suphys.physics.usyd.edu.au ([129.78.129.1]:38157 helo=physics.usyd.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKGHX-00068z-Qm for help-gnu-emacs@gnu.org; Mon, 25 Mar 2013 18:54:24 -0400 Original-Received: from kepler.physics.usyd.edu.au (kepler.physics.usyd.edu.au [203.19.102.105]) by physics.usyd.edu.au (8.14.4/8.14.4) with ESMTP id r2PMsI3L009042; Tue, 26 Mar 2013 09:54:18 +1100 (EST) (envelope-from stello@physics.usyd.edu.au) In-Reply-To: <155DEC68569B714B86C2C7075F5EDA9828ECFB20@DAKIYA1.pegasus.local> X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 129.78.129.1 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:89750 Archived-At: Thanks a lot for that...works! My browwer tricked me in believing that when I chose Save Link As... and it suggested mesa-minor-mode.el as file name that this actually was the file and not some html associated w the link. Dennis On Mon, 25 Mar 2013, Doug Lewan wrote: > 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 this URL: https://raw.github.com/jschwab/mesa-minor-mode/master/mesa-minor-mode.el. > > I make no guarantees, but it satisfies all of your requirements that a layperson 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=shubertticketing.com@gnu.org >> [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.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 >> >> Hi, >> >> 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. >> >> I run emacs version: GNU 21.4.1 x86_64-redhat-linux-gnu. >> >> 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): >> >> ;; (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" >> >> ;; (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" >> >> >> 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. >> >> Any help with this would be greatly appreciated. >> >> >> Thanks >> -- >> Dennis Stello > > -- Dennis Stello