Skip to Content.
Sympa Menu

texmacs-users - default behaviour when closing texmacs

Subject: mailing-list for TeXmacs Users

List archive

default behaviour when closing texmacs


Chronological Thread 
  • From: Robert Jerrard <address@hidden>
  • To: address@hidden
  • Subject: default behaviour when closing texmacs
  • Date: Wed, 07 Dec 2005 10:34:56 -0700

Version 1.0.6-1 of texmacs indicates there are unsaved files and asks
"Really quit?" when attempting to close a file to which modifications
have been made which is a good thing. However, it now also fills in the
default answer of "no" which must be removed when you really want to
close it anyway. When I use TeXmacs as a front-end for Maxima I often
use it as a scratch pad and am not interested in saving the results. I
would prefer the default not be added in but assume I would have to
modify the code controlling this default behaviour. If I change

(tm-define (safely-quit-TeXmacs)
(dialogue
(if (or (not (exists-unsaved-buffer?))
(dialogue-confirm?
"There are unsaved files. Really quit?" #f))
(quit-TeXmacs))))

in /usr/share/texmacs/TeXmacs/progs/texmacs/texmacs/tm-server.scm to

(tm-define (safely-quit-TeXmacs)
(dialogue
(if (or (not (exists-unsaved-buffer?))
(dialogue-confirm?
"There are unsaved files. Really quit?"))
(quit-TeXmacs))))

will that safely eliminate the default behaviour of supplying "no"?
Alternatively, is it possible to add a button to the file menu to quit
without saving?

Thanks, Bob
--
Dr. Robert J. Jerrard, Professor of Mathematics,
Concordia University College of Alberta,
7128 Ada Blvd., Edmonton, Alberta, T5B 4E4, Canada.
Phone: (780) 479-9291, Fax: (780) 474-1933.




Archive powered by MHonArc 2.6.19.

Top of Page