Questions tagged [interactive-development]
8 questions
27
votes
5 answers
How do I force re-evaluation of a defvar?
Suppose I have an Emacs lisp buffer that contains:
(defvar foo 1)
If I call eval-last-sexp or eval-buffer, foo is bound to 1. If I then edit this buffer to:
(defvar foo 2)
eval-last-sexp and eval-buffer do not re-execute this line, so foo is still…

Wilfred Hughes
- 6,890
- 2
- 29
- 59
18
votes
1 answer
What are good tools for Emacs package development?
We already have a question about tools useful specifically for testing, but what about actually writing the code? Which packages do you find speed up your development? Which aids do you use to quickly and easily navigate and understand your…

Sean Allred
- 6,861
- 16
- 85
17
votes
1 answer
How can I bring back `nil`?
I've accidentally run the following:
(unintern variable)
where variable's value was nil.
How do I get nil back without restarting Emacs?

Sean Allred
- 6,861
- 16
- 85
12
votes
1 answer
Methods for examining large/complicated lisp objects
I've been working with some org export engine code which passes around some rather large and complex list objects. It's rather tedious to explore an object by reading through a long word-wrapped printed representation of an object or iteratively…

ebpa
- 7,319
- 26
- 53
11
votes
2 answers
How can I unbind all symbol definitions with a certain prefix?
I'm changing up the API of my package pretty frequently, but company-mode pulls every defined symbol (as it should) in its completions. I don't want to accidentally use an unbound name, so how can I unbind all variables and functions that start…

Sean Allred
- 6,861
- 16
- 85
1
vote
0 answers
run python code interactively with emacs 25 on macos
I have always used emacs with python. I generally run my code on the ipython interpreter using C-c C-c.
This is my ~/.emacs.d/init.el in ubuntu where everything works fine.
(setq python-shell-interpreter "ipython" …

Donbeo
- 111
- 3
1
vote
0 answers
Detect a region in markdown and run a compilation
It would be really useful if emacs could detect the cursor is currently inside a code-block in my markdown-file and compiles the fragment automatically.
I am editing a large markdown file with a lot of code sections in it. Most code sections begin…

towi
- 111
- 4
1
vote
0 answers
Suggestions for a well-thought structure, for instant results inside browser from buffers
Situation
First, I hope you will not mind my poor English. When you're working with websites/webapplications, there is a good chance that you will work with HTML/CSS files. When editing such files in buffers, I save it every time and reload the…

ReneFroger
- 3,855
- 22
- 63