Martin Rubey <[email protected]> writes:

> Ralf Hemmecke <[email protected]> writes:
>
>> Hello,
>>
>> after I've run and quit efricas, I see some strange files in my directory
>>
>> fricas162228co.tex
>> fricas16222D-q.input
>>
>> Any idea why they are not remove during quitting efricas?
>> Maybe I give some possible hint. The directory where these files are is 
>> the same as my $TMP environment variable. Is that common practice to 
>> clutter up the TMP directory? I'd prefer if these files are removed when 
>> shutting down the fricas proces within efricas.
>
> Please do!  No time here, but Franz will certainly appreciate a fix,
> too!

hints: the files are set up in

(define-derived-mode fricas-mode fundamental-mode "FriCAS"
...
  (make-local-variable 'fricas-yank-file)
  (setq fricas-yank-file (make-temp-file "fricas" nil ".input"))
  (make-local-variable 'fricas-TeX-file)
  (setq fricas-TeX-file (make-temp-file "fricas" nil ".tex"))
;; this is not completely right: we are going to write to the files with
;; extension dvi, log, aux, too, so we should check for their presence.

I guess that all these files could be deleted in

fricas-query-kill

which is hooked via

  (add-hook 'kill-buffer-query-functions 'fricas-query-kill)

in define-derived-mode, but maybe there is a more appropriate hook.  I
know too little about elisp to be sure.

Martin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to