[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX] How to disable question "kill it?"

From: Ivan Andrus
Subject: Re: [AUCTeX] How to disable question "kill it?"
Date: Sat, 25 Aug 2012 09:20:09 +0200

On Aug 24, 2012, at 8:10 PM, Tassilo Horn wrote:
> Marius Hofert <address@hidden> writes:
>> I already set this, but was wondering if there is even a faster
>> way.
> Sure.
>  (defun yes-or-no-p (&rest ignored) t)
>  (defun y-or-n-p (&rest ignored) t)
> Or for even more fun.
>  (defun yes-or-no-p (&rest ignored) (oddp (random)))
>  (defun y-or-n-p (&rest ignored) (oddp (random)))
> ;-)

You could advise `TeX-command-master' and flet yes-or-no-p there.  I actually 
do the opposite.  I have a minor-mode that runs preview-at-point every time 
autofill triggers and I flet yes-or-no-p to return nil so that it doesn't ever 
run more than once.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]