Giter Site home page Giter Site logo

Comments (8)

immerrr avatar immerrr commented on June 5, 2024 1

Ok, if you need to alter execution path inside Emacs, you need to alter exec-path variable.

(add-to-list 'exec-path "/usr/local/bin")

exec-path is populated at startup and altering PATH afterwards doesn't change behavior of start-process function, it only affects shell-command. But I'd really suggest one of the following:

  • if Lua is not in path, but you'd like to use it on day-to-day basis, you need to alter $PATH in $HOME/.profile as I've shown in commentary above
  • if Lua is not in path, but you only want to use it as inferior process for lua-mode, change value of lua-default-application variable

Why does it lock your Emacs is an interesting question, but I can't really reproduce it and given the fact that subprocess management code is outdated and really far from perfect, I'm going to rewrite it anyway. So, no use in fixing bugs in what's going to be rewritten soon (hopefully).

PS. you can try C-g or ESC ESC ESC to unlock Emacs, it usually helps.

from lua-mode.

immerrr avatar immerrr commented on June 5, 2024

What does it say when you do M-! lua (which is M-x shell-command lua) ?

from lua-mode.

wolfand11 avatar wolfand11 commented on June 5, 2024

it say: Shell command succeeded with no output
thank you for your response

from lua-mode.

wolfand11 avatar wolfand11 commented on June 5, 2024

when i M+x lua-send-buffer. it show me:
Wrote /var/folders/hj/3mbrpy_j5xs2_......./T/lua-7714es
Searching for program: No such file or directory, lua

then, i invoke lua-send-buffer again, my emacs is blocked. it's dead.

from lua-mode.

immerrr avatar immerrr commented on June 5, 2024

One more thing to check: M-x shell-command echo $PATH

from lua-mode.

wolfand11 avatar wolfand11 commented on June 5, 2024

it show me "/usr/local/bin/"

from lua-mode.

immerrr avatar immerrr commented on June 5, 2024

Unrelated to the original question -- or maybe related, I'm not sure yet -- that seems wrong. This means that emacs won't be able to access programs in /bin & /usr/bin. Usually, if you need to alter path, you prepend it with something, e.g.

PATH=/my/other/bindir:$PATH

from lua-mode.

wolfand11 avatar wolfand11 commented on June 5, 2024

thank you very much
i change (setenv "PATH" "/usr/local/bin/") to (add-to-list 'exec-path "/usr/local/bin") in .emacs. it worked!

from lua-mode.

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.