Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs foo.txt does not open foo.txt #34

Closed
jyby opened this issue Jan 26, 2013 · 7 comments
Closed

emacs foo.txt does not open foo.txt #34

jyby opened this issue Jan 26, 2013 · 7 comments

Comments

@jyby
Copy link

jyby commented Jan 26, 2013

After instalation of the emacs24-starter-kit, the instruction "emacs foo.txt" does open the file foo.txt, but after adding a single notes.org file with
#+begin_src emacs-lisp
(starter-kit-load "python")
#+end_src
the instruction "emacs foo.txt" does not open the file foo.txt.

Should personal configuration files contain something special?

@eschulte
Copy link
Owner

I can not reproduce this problem. When I start from a bare bones checkout of the starter kit, with your snippet above in my eschulte.org user init file. "emacs foo.txt" does indeed open the file foo.txt.

@jyby
Copy link
Author

jyby commented Feb 26, 2013

Hi Eric.

I apologize for the lack of reproducibility information (a shame when I want to try myself at writing reproducible research). Here is more information about my configuration.

The machine on which I run those tests is a new laptop that I take my time configuring (while rethinking my emacs, backup and synch configuration): for now it has none of my personal emacs configuration installed on it, and only the default packages of Ubuntu 12.10, and the latest version of emacs,org-mode and the starter kit.
I do not doubt that the error is on my side and not in your project, but I would be very grateful if you could find me finding what the error is, and hopefully it can be helpful to others later.

  1. I am running GNU Emacs 24.3.50.1 and Org-mode version 7.9.3d (7.9.3d-GNU-Emacs-24-3 (commit e8f5b0ad))
  2. The starter-kit is under git. I have one branch Master, up to date, and one branch jbarbay.org, which only adds the file .emacs.d/jbarbay.org which contains the snippet above.
  3. git checkout master; emacs foo.txt does open the file.
  4. git checkout jbarbay.org; emacs foo.txt does not open the file.
  5. emacs -q foo.txt does open the file (independantly from the content of .emacs.d, obviously)
  6. Here is the content of Messages after executing "emacs foo.txt" (which does not open foo.txt)

Loading /home/jbarbay/.emacs.d/starter-kit.el (source)...
Loading /home/jbarbay/.emacs.d/starter-kit-defuns.el (source)...done
Loaded /home/jbarbay/.emacs.d/starter-kit-defuns.el
Loading /home/jbarbay/.emacs.d/starter-kit-bindings.el (source)...done
Loaded /home/jbarbay/.emacs.d/starter-kit-bindings.el
Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...
Loading /home/jbarbay/.recentf...done
Cleaning up the recentf list...done (0 removed)
Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...done
Loaded /home/jbarbay/.emacs.d/starter-kit-misc.el
Loading /home/jbarbay/.emacs.d/starter-kit-registers.el (source)...done
Loaded /home/jbarbay/.emacs.d/starter-kit-registers.el
starter-kit.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. Starting new Ispell process [/usr/bin/aspell::default] ... Package assoc is obsolete! Loading vc-git...done (No changes need to be saved) Wrote /home/jbarbay/.emacs.d/jbarbay.el Tangled 1 code block from jbarbay.org Loading /home/jbarbay/.emacs.d/jbarbay.el (source)... Loading /home/jbarbay/.emacs.d/starter-kit-python.el (source)... Warning: no abbrev-file found, customizeabbrev-file-name' in order to make mode-specific abbrevs work.
byte-code: Don't know how to make a localized variable an alias

@jyby
Copy link
Author

jyby commented Feb 26, 2013

Post Scriptum: foo.txt does not exist, but I reproduce exactly the same behavior with loading an existing file, such as jbarbay.org.

@eschulte
Copy link
Owner

jyby notifications@github.com writes:

Hi Eric.

I apologize for the lack of reproducibility information (a shame when
I want to try myself at writing reproducible research). Here is more
information about my configuration.

The machine on which I run those tests is a new laptop that I take my
time configuring (while rethinking my emacs, backup and synch
configuration): for now it has none of my personal emacs configuration
installed on it, and only the default packages of Ubuntu 12.10, and
the latest version of emacs,org-mode and the starter kit.
I do not doubt that the error is on my side and not in your project,
but I would be very grateful if you could find me finding what the
error is, and hopefully it can be helpful to others later.

  1. I am running GNU Emacs 24.3.50.1 and Org-mode version 7.9.3d (7.9.3d-GNU-Emacs-24-3 (commit e8f5b0ad))
  2. The starter-kit is under git. I have one branch Master, up to date,
    and one branch jbarbay.org, which only adds the file
    .emacs.d/jbarbay.org which contains the snippet above.
  3. git checkout master; emacs foo.txt does open the file.
  4. git checkout jbarbay.org; emacs foo.txt does not open the file.
  5. emacs -q foo.txt does open the file (independantly from the content of .emacs.d, obviously)
  6. Here is the content of Messages after executing "emacs foo.txt" (which does not open foo.txt)

Loading /home/jbarbay/.emacs.d/starter-kit.el (source)...
Loading /home/jbarbay/.emacs.d/starter-kit-defuns.el (source)...done
Loaded /home/jbarbay/.emacs.d/starter-kit-defuns.el
Loading /home/jbarbay/.emacs.d/starter-kit-bindings.el (source)...done
Loaded /home/jbarbay/.emacs.d/starter-kit-bindings.el
Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...
Loading /home/jbarbay/.recentf...done
Cleaning up the recentf list...done (0 removed)
Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...done
Loaded /home/jbarbay/.emacs.d/starter-kit-misc.el
Loading /home/jbarbay/.emacs.d/starter-kit-registers.el (source)...done
Loaded /home/jbarbay/.emacs.d/starter-kit-registers.el
starter-kit.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. Starting new Ispell process [/usr/bin/aspell::default] ... Package assoc is obsolete! Loading vc-git...done (No changes need to be saved) Wrote /home/jbarbay/.emacs.d/jbarbay.el Tangled 1 code block from jbarbay.org Loading /home/jbarbay/.emacs.d/jbarbay.el (source)... Loading /home/jbarbay/.emacs.d/starter-kit-python.el (source)... Warning: no abbrev-file found, customizeabbrev-file-name' in order to make mode-specific abbrevs work.
byte-code: Don't know how to make a localized variable an alias

The only differences between our setups appears to be that you are using
a more recent version of Emacs 24. Are you building Emacs from git? If
so that may be part of the problem.

It looks like Emacs is throwing an error during startup (the
"byte-code:" line from Messages). Please start emacs using the
--debug-init flag, and send me the error output.

emacs --debug-init

Thanks,


Reply to this email directly or view it on GitHub:
#34 (comment)

Eric Schulte
http://cs.unm.edu/~eschulte

@jyby
Copy link
Author

jyby commented Feb 26, 2013

Thanks Eric:
Problem solved on my side by downloading, compiling and installing emacs 24.2 via ftp from http://ftp.gnu.org/pub/gnu/emacs/. (I should have done it from the start, I guess, 24.2 being the stable version) Thanks a lot! Now I will go on with revamping my emacs config on the new laptop, and hopefully write a draft of reproducible article with algorithms implemented in python.

In case you want to still work on it in anticipation of future releases:

  1. I was using the Emacs version from bzr (24.3.50.1)
  2. Here are
    • the result of emacs -debug-init in my branch jbarbay.org (where the problem occur)
      Loading /home/jbarbay/.emacs.d/starter-kit.el (source)...
      Loading /home/jbarbay/.emacs.d/starter-kit-defuns.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-defuns.el
      Loading /home/jbarbay/.emacs.d/starter-kit-bindings.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-bindings.el
      Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...
      Loading /home/jbarbay/.recentf...done
      Cleaning up the recentf list...done (0 removed)
      Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-misc.el
      Loading /home/jbarbay/.emacs.d/starter-kit-registers.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-registers.el
      starter-kit.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. Loading /home/jbarbay/.emacs.d/jbarbay.el (source)... Loading /home/jbarbay/.emacs.d/starter-kit-python.el (source)... Warning: no abbrev-file found, customizeabbrev-file-name' in order to make mode-specific abbrevs work.
      byte-code: Don't know how to make a localized variable an alias
      Package assoc is obsolete!
    • the result of emacs -debug-init in my branch master (where all works well)
      Loading /home/jbarbay/.emacs.d/starter-kit.el (source)...
      Loading /home/jbarbay/.emacs.d/starter-kit-defuns.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-defuns.el
      Loading /home/jbarbay/.emacs.d/starter-kit-bindings.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-bindings.el
      Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...
      Loading /home/jbarbay/.recentf...done
      Cleaning up the recentf list...
      File /home/jbarbay/.emacs.d/foo.txt removed from the recentf list
      Cleaning up the recentf list...done (1 removed)
      Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-misc.el
      Loading /home/jbarbay/.emacs.d/starter-kit-registers.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-registers.el
      starter-kit.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or `cl-letf'.
      Loading /home/jbarbay/.emacs.d/jbarbay/test.el (source)...done
      Loaded /home/jbarbay/.emacs.d/jbarbay/test.el
      Loading /home/jbarbay/.emacs.d/custom.el (source)...done
      Loading /home/jbarbay/.emacs.d/starter-kit.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit.el
      For information about GNU Emacs and the GNU system, type C-h C-a.
      (New file)
      Starting new Ispell process [/usr/bin/aspell::default] ...
      Package assoc is obsolete!
      Loading vc-git...done

Cheers!

@jyby
Copy link
Author

jyby commented Feb 26, 2013

Post-scriptum: this is the content of Messages with emacs -debug-init and emacs 24.2 (what is in my last comment is with 24.3.50): there is still a warning about abbrev-file

Loading /home/jbarbay/.emacs.d/starter-kit.el (source)...
Loading /home/jbarbay/.emacs.d/starter-kit-defuns.el (source)...done
loaded /home/jbarbay/.emacs.d/starter-kit-defuns.el
Loading /home/jbarbay/.emacs.d/starter-kit-bindings.el (source)...done
loaded /home/jbarbay/.emacs.d/starter-kit-bindings.el
Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...
Loading /home/jbarbay/.recentf...done
Cleaning up the recentf list...
File /home/jbarbay/.emacs.d/foo.txt removed from the recentf list
Cleaning up the recentf list...done (1 removed)
Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...done
loaded /home/jbarbay/.emacs.d/starter-kit-misc.el
Loading /home/jbarbay/.emacs.d/starter-kit-registers.el (source)...done
loaded /home/jbarbay/.emacs.d/starter-kit-registers.el
Loading /home/jbarbay/.emacs.d/jbarbay.el (source)...
Loading /home/jbarbay/.emacs.d/starter-kit-python.el (source)...
Warning: no abbrev-file found, customize `abbrev-file-name' in order to make mode-specific abbrevs work.
Loading /home/jbarbay/.emacs.d/starter-kit-python.el (source)...done
loaded /home/jbarbay/.emacs.d/starter-kit-python.el
Loading /home/jbarbay/.emacs.d/jbarbay.el (source)...done
loaded /home/jbarbay/.emacs.d/jbarbay.el
Loading /home/jbarbay/.emacs.d/jbarbay/test.el (source)...done
loaded /home/jbarbay/.emacs.d/jbarbay/test.el
Loading /home/jbarbay/.emacs.d/custom.el (source)...done
Loading /home/jbarbay/.emacs.d/starter-kit.el (source)...done
loaded /home/jbarbay/.emacs.d/starter-kit.el
For information about GNU Emacs and the GNU system, type C-h C-a.
(New file)
Starting new Ispell process [default] ...
Loading vc-git...done

@eschulte
Copy link
Owner

jyby notifications@github.com writes:

Thanks Eric:
Problem solved on my side by downloading, compiling and installing emacs 24.2 via ftp from http://ftp.gnu.org/pub/gnu/emacs/. (I should have done it from the start, I guess, 24.2 being the stable version) Thanks a lot! Now I will go on with revamping my emacs config on the new laptop, and hopefully write a draft of reproducible article with algorithms implemented in python.

In case you want to still work on it in anticipation of future releases:

  1. I was using the Emacs version from bzr (24.3.50.1)
  2. Here are
    • the result of emacs -debug-init in my branch jbarbay.org (where the problem occur)
      Loading /home/jbarbay/.emacs.d/starter-kit.el (source)...
      Loading /home/jbarbay/.emacs.d/starter-kit-defuns.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-defuns.el
      Loading /home/jbarbay/.emacs.d/starter-kit-bindings.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-bindings.el
      Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...
      Loading /home/jbarbay/.recentf...done
      Cleaning up the recentf list...done (0 removed)
      Loading /home/jbarbay/.emacs.d/starter-kit-misc.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-misc.el
      Loading /home/jbarbay/.emacs.d/starter-kit-registers.el (source)...done
      Loaded /home/jbarbay/.emacs.d/starter-kit-registers.el
      starter-kit.el: flet' is an obsolete macro (as of 24.3); use eithercl-flet' or cl-letf'. Loading /home/jbarbay/.emacs.d/jbarbay.el (source)... Loading /home/jbarbay/.emacs.d/starter-kit-python.el (source)... Warning: no abbrev-file found, customizeabbrev-file-name' in order to make mode-specific abbrevs work.
      byte-code: Don't know how to make a localized variable an alias

Looks like this is a known problem in python.el [1], it is fixed in
their git repository, so it should be fixed soon in package.el (the
version used by the started kit).

Sometimes googling the text of an error is the best way to find out
what's going on.

Cheers,

Footnotes:
[1] fgallina/python.el#95

Eric Schulte
http://cs.unm.edu/~eschulte

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants