Timeline for How to change the current working directory?
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 21, 2017 at 19:33 | comment | added | Drew | See @Stefan's answer. | |
Nov 21, 2017 at 14:57 | comment | added | FunkyBaby | it is literally changing the =cwd= of emacs. "More than once"? what do you mean by that. =cwd= is not designed to be a fixed thing. In c, man 2 chdir. In python, os.chdir. I want to know how to do that in elisp (for emacs). | |
Nov 21, 2017 at 3:09 | comment | added | Drew | I see. Then your question was (and still is, to me) unclear. What does it mean to change the current working directory of the Emacs process? You want to change it after the process exists? More than once? | |
Nov 21, 2017 at 3:05 | comment | added | FunkyBaby | I mean the cwd of the emacs process, which is an entry in the process control block, and it can be easily checked via =lsof -p pid=. The =default-directory= is an internal thing to emacs. Why I need to change cwd is because tmux uses the cwd of a foreground process as the start directory of a new window/pane. | |
Nov 20, 2017 at 16:23 | history | answered | Drew | CC BY-SA 3.0 |