Re: Invasive changes in preview-latex
David Kastrup <[email protected]>
| Newsgroups | gmane.emacs.auc-tex |
|---|---|
| Message-ID | <[email protected]> |
[email protected] (Frank Küster) writes: > David Kastrup <[email protected]> schrieb: > >> In order to get rid of all the security bunk from switching between >> safe and unsafe mode, I have reorganized the GhostScript calls, and >> now file names of the generated previews are completely different, >> and lots of code has changed. So please test-drive this change >> (no, the installation changes are not yet finished and checked in, >> I still have to do this). I need to know when temporary files >> don't get removed and similar things. > > The bug I reported to preview-latex this week is still there. The gs > trace is now, with gs-afpl: > > gs -q -dSAFER -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r123.035x122.862 > GS>/.preview-BP currentpagedevice/BeginPage get dup null eq {pop{pop}bind}if def <</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne or{.preview-BP gsave 0.705882 0.933333 0.705882 setrgbcolor false setstrokeadjust 3 setlinewidth clippath strokepath matrix setmatrix true {2 index{newpath}if round exch round exch moveto pop false}{round exch round exch lineto}{curveto}{closepath}pathforall pop fill grestore }{pop}ifelse}bind/PageSize[1 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll{setpagedevice}stopped{handleerror quit}if cvx systemdict/.runandhide known{.setsafe(AFPL Ghostscript)product ne{<<>>setpagedevice}if{.runandhide}}if stopped{handleerror quit}if count 1 ne{quit}if aload pop restore<</OutputFile(/dev/null)>>setpagedevice}bind def (_region_.prv/tmp2013Dou/preview.dsc)(r)file dup dup 0 setfileposition 425()/SubFileDecode filter cvx exec dup dup 425 setfileposition 50()/SubFileDecode filter cvx <</OutputFile(_region_.prv/tmp2013Dou/prev001.png)>>preview-do This is not a report about the new code that I checked in half an hour ago. Please resynch, reinstall and try again. I should have mentioned in the mail I sent out that it came immediately after checking the stuff in, so please don't test this right now with a nightly snapshot or similar: they don't have the new code right now. In case you want to help but don't use CVS to update, you can also just fetch preview.el from the Sourceforge web interface to CVS. It is the only file containing _relevant_ changes. I'd really appreciate hearing about it. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum