On Aug 24, 2012, at 8:10 PM, Tassilo Horn wrote: > Marius Hofert <[email protected]> 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. HTH, Ivan _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex
