Code Monkey home page Code Monkey logo

Comments (7)

eschulte avatar eschulte commented on July 20, 2024

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.

from emacs24-starter-kit.

jyby avatar jyby commented on July 20, 2024

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

from emacs24-starter-kit.

jyby avatar jyby commented on July 20, 2024

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

from emacs24-starter-kit.

eschulte avatar eschulte commented on July 20, 2024

jyby [email protected] 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

from emacs24-starter-kit.

jyby avatar jyby commented on July 20, 2024

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!

from emacs24-starter-kit.

jyby avatar jyby commented on July 20, 2024

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

from emacs24-starter-kit.

eschulte avatar eschulte commented on July 20, 2024

jyby [email protected] 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

from emacs24-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.