unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Question - Is this the right group to ask for GNU emacs init load errors? Thanks -Peter Below is my --debug-init error messages. What am I doing wrong?
@ 2016-08-06  0:50 GNU_BABY_STEP
  2016-08-06  1:38 ` John Mastro
  0 siblings, 1 reply; 2+ messages in thread
From: GNU_BABY_STEP @ 2016-08-06  0:50 UTC (permalink / raw)
  To: help-gnu-emacs


-uuu:---F1  *scratch*      All L1     [(Fundamental)]-------------------------------
Debugger entered--Lisp error: (file-error "Cannot open load file" "package")
  require(package)
  eval-buffer(#<buffer  *load*> nil "/Users/abc/.emacs.d/init.el" nil t)  ; Readi$
  load-with-code-conversion("/Users/abc/.emacs.d/init.el" "/Users/abc/.emacs.d/$
  load("/Users/abc/.emacs.d/init" t t)
  #[nil "^H\205\276^@   \306=\203^Q^@\307^H\310Q\202A^@ \311=\2033^@\312\307\313\31$
  command-line()
  normal-top-level()



When I launch Emacs on OS X, below show for error:


Warning (initialization): An error occurred while loading `/Users/abc/.emacs.d/init.el':

File error: Cannot open load file, no such file or directory, shell-integration.el

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Question - Is this the right group to ask for GNU emacs init load errors? Thanks -Peter Below is my --debug-init error messages. What am I doing wrong?
  2016-08-06  0:50 Question - Is this the right group to ask for GNU emacs init load errors? Thanks -Peter Below is my --debug-init error messages. What am I doing wrong? GNU_BABY_STEP
@ 2016-08-06  1:38 ` John Mastro
  0 siblings, 0 replies; 2+ messages in thread
From: John Mastro @ 2016-08-06  1:38 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org; +Cc: GNU_BABY_STEP

To your question in the subject - yes, this is a good place to ask.

GNU_BABY_STEP <ptech42002@gmail.com> wrote:
> Debugger entered--Lisp error: (file-error "Cannot open load file" "package")

This error is saying Emacs couldn't find package.el, which provides
Emacs's package-management functionality.

My guess is that your init.el assumes you have package.el available, but
your Emacs binary predates it. To check what version of Emacs you're
running, invoke Emacs with "emacs -Q" (which will start Emacs without
loading your init file) and use the `emacs-version' command (i.e. type
M-x emacs-version RET) to see what version it is. The package.el library
was added in Emacs 24.

> File error: Cannot open load file, no such file or directory, shell-integration.el

And this error is saying Emacs couldn't find shell-integration.el, which
I'm not familiar with. My suggestion is to figure out the problem with
package.el first and then come back to this, since getting package.el
working may solve both.

If my hunch above is right and you need a newer Emacs, you have several
options. The ones I'm aware of are:

- "GNU Emacs for Mac OS X". These are basically vanilla GNU Emacs
  binaries but compiled by a third party. https://emacsformacosx.com/
- Use Homebrew. If you're not already familiar with Homebrew, I would
  suggest skipping this for now.
- Emacs Mac Port: https://bitbucket.org/mituharu/emacs-mac/overview
- Aquamacs: http://aquamacs.org/

I haven't used either of the last two personally, which is why I can't
say much about them. My impression is that they both seek to integrate
Emacs with OS X better or make use of OS X features that GNU Emacs
doesn't. They both seem to be actively maintained and well regarded.

If you have no idea which you prefer, I would suggest the first one,
since it's the closest to "just give me an up-to-date GNU Emacs binary".

Hope that helps

        John



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-08-06  1:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-06  0:50 Question - Is this the right group to ask for GNU emacs init load errors? Thanks -Peter Below is my --debug-init error messages. What am I doing wrong? GNU_BABY_STEP
2016-08-06  1:38 ` John Mastro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).