Questions tagged [inhibit]
3 questions
4
votes
1 answer
Making sure that a pair of functions is executed even if C-g is pressed in the middle
Based on the documentation, I am trying the following:
(let ((inhibit-quit t))
(my-fun)
(y-or-n-p "Prompt")
(cancel-effects-of-my-fun))
Here, my-fun performs changes to configuration and cancel-effects-of-my-fun restores the…

AlwaysLearning
- 749
- 4
- 14
3
votes
0 answers
Avoiding screen flickering when one theme is disabled and another enabled (inhibit redraw???)
Is it possible to temporarily disable buffer (and frame) redraws? I particuarly mean situation, when I disable some theme and enable another one, and would like to avoid a moment when emacs flashes with white background.
Illustration
To prepare,…

Mekk
- 1,017
- 7
- 14
2
votes
0 answers
How to make ansi-term output read only?
When using ansi-term in line mode emacs lets you edit the buffer arbitrarily, not just after the last prompt. I'm trying to make it read only so I stop fudging with command output. The problem is all the solutions I've come up with also prevent me…

Joseph Garvin
- 2,061
- 8
- 21