Re: rel-0-8-1; Default options are always used, even when package is loaded

David Kastrup <[email protected]> Tue, 22 Feb 2005 18:19:51 +0100
Newsgroups gmane.emacs.latex.preview.devel
Message-ID <x5y8dg1phk.fsf__27957.2512409233$1109092938$gmane$org@lola.goethe.zz>
[email protected] (Frank K=FCster) writes:

> David Kastrup <[email protected]> schrieb:
>
>> Something like that?
>
> Yes, at least from what it is intended to signify. It's rather
> small, and you have to look very closely to see what it is. Maybe it
> can get some refinement. And why is it in grey? Why not some
> "terrifying" colors?

Hey, that was a joke.  Could not use that, anyway, since Edvard Munch
has been dead only since 1944.

>> Oh, crap.  _ANOTHER_ broken GhostScript version in the wild.
>
> $ gs --version
> 8.01
> $ ll /usr/bin/gs
> lrwxrwxrwx  1 root root 20 2005-02-12 17:04 /usr/bin/gs -> /etc/alternati=
ves/gs
> $ ll /etc/alternatives/gs
> lrwxrwxrwx  1 root root 15 2005-02-15 15:11 /etc/alternatives/gs -> /usr/=
bin/gs-gpl
>
> (But see below)
>
>> Why can't they get this right, _ever_?  I hate them.  Does it help
>> if you remove the ".setsafe" string in preview.el?  Or if you
>> rename the "AFPL" in the line after that into "GPL"?
>
> - With original preview.el (actually, the byte-compiled version is
>   loaded):
>
>   nice preview in LaTeX mode, exclamation mark sign in PDFLaTeX mode
>
> - With original preview.elc renamed, M-x locate-library RET preview RET
>   gives the edited version, and ".setsafe" removed so that the two lines
>   read:
>
> {handleerror quit}if cvx systemdict/.runandhide known{\
> \(AFPL Ghostscript)product ne{<<>>setpagedevice}if{.runandhide}}if \
>
>   Nothing at all in LaTeX mode (not even roadwork signs, at least
>   not for a time long enough that I can see them). C-c ` brings up
>   the usual "helpful" error message and places the cursor in
>   _region_.tex which _does_ show a previewed \alpha!

That's a different problem.

>   Nothing at all in PDFLaTeX mode, not even a roadwork sign
>   visible. C-c ` brings me a help buffer and point in _region_.tex
>   with the exclamation mark sign and the following gs output:

Again, a different problem.  Probably a file name change.

> gs -q -dSAFER -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaB=
its\=3D4 -dGraphicsAlphaBits\=3D4 -sDEVICE\=3Dpng16m -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 g=
et 1 ne or{.preview-BP gsave 0.705882 0.933333 0.705882 setrgbcolor false s=
etstrokeadjust 3 setlinewidth clippath strokepath matrix setmatrix true {2 =
index{newpath}if round exch round exch moveto pop false}{round exch round e=
xch lineto}{curveto}{closepath}pathforall pop fill grestore }{pop}ifelse}bi=
nd/PageSize[1 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll{setp=
agedevice}stopped{handleerror quit}if cvx systemdict/.runandhide known{.set=
safe(GPL Ghostscript)product ne{<<>>setpagedevice}if{.runandhide}}if stoppe=
d{handleerror quit}if count 1 ne{quit}if aload pop restore<</OutputFile(/de=
v/null)>>setpagedevice}bind def (_region_.prv/tmp6966SB2/preview.dsc)(r)fil=
e dup dup 0 setfileposition 425()/SubFileDecode filter cvx exec dup dup 425=
 setfileposition 50()/SubFileDecode filter cvx <</OutputFile(_region_.prv/t=
mp6966SB2/prev001.png)>>preview-do

I am an idiot, sorry.  "GNU Ghostscript", not "GPL Ghostscript".

> And I still have the same behavior in the unchanged version (LaTeX okay,
> PDFLaTeX shows exclamation mark sign with gs backtrace:
>
> gs -q -dSAFER -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaB=
its\=3D4 -dGraphicsAlphaBits\=3D4 -sDEVICE\=3Dpng16m -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 g=
et 1 ne or{.preview-BP gsave 0.705882 0.933333 0.705882 setrgbcolor false s=
etstrokeadjust 3 setlinewidth clippath strokepath matrix setmatrix true {2 =
index{newpath}if round exch round exch moveto pop false}{round exch round e=
xch lineto}{curveto}{closepath}pathforall pop fill grestore }{pop}ifelse}bi=
nd/PageSize[1 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll{setp=
agedevice}stopped{handleerror quit}if cvx systemdict/.runandhide known{.set=
safe(AFPL Ghostscript)product ne{<<>>setpagedevice}if{.runandhide}}if stopp=
ed{handleerror quit}if count 1 ne{quit}if aload pop restore<</OutputFile(/d=
ev/null)>>setpagedevice}bind def (_region_.prv/tmp97202N2/preview.dsc)(r)fi=
le dup dup 0 setfileposition 425()/SubFileDecode filter cvx exec dup dup 42=
5 setfileposition 50()/SubFileDecode filter cvx <</OutputFile(_region_.prv/=
tmp97202N2/prev001.png)>>preview-do
> AFPL Ghostscript 8.14: **** Could not open the file  .
> Error: /invalidfileaccess in --.outputpage--

And the directory you are running it in has appropriate permissions
for creating a _region_.prv directory?

--=20
David Kastrup, Kriemhildstr. 15, 44793 Bochum


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
preview-latex-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/preview-latex-bugs


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click