Dan Maftei | 14 Jul 2012 00:53
Picon

What does Aquamacs do for previews besides patch gs flags in preview-mode.el?

I have a preview-latex problem in my non-Aquamacs emacs distro and since Aquamacs does previews perfectly I am wondering what fixes it uses. It's a long shot, but I've posted to the Auctex mailing list and stackoverflow with no luck.


In short, .png files are being generated (inside the .prv folder) but in the buffer they appear as small white boxes. emacs has .png support.

I've tried the auctex files from Aquamacs.app, the latest development version, and the latest stable version (11.86) with this notorious patch to gs (not coincidentally, the preview-mode.el file which comes bundled with Aquamacs.app is identical to the patched stable version).

This is emacs 24.1.1, gs 9.05, running under X on OS X 10.7. Presumably this is an X11 problem on OS X, and I tried the latest Xquartz (2.7.2) which didn't fix the problem.

So, what does Aquamacs do to get previews working, besides changing the gs flags through the patch to preview-mode.el?

Dan
_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
Peter Dyballa | 14 Jul 2012 11:09
Picon

Re: What does Aquamacs do for previews besides patch gs flags in preview-mode.el?


Am 14.07.2012 um 00:53 schrieb Dan Maftei:

> In short, .png files are being generated (inside the .prv folder) but in
> the buffer they appear as small white boxes. emacs has .png support.

Could you go in Emacs to the Help menu and choose "Send Bug Report…"? The function will ask for a subject –
give it something! The you'll have *mail* buffer which will report the configure options. I would like to
see these.

Have you also tried to launch Emacs with -Q and activate AUCTeX and preview manually from the *scratch*
buffer or as function call from the command line? Maybe you have a faulty init file…

--
Greetings

  Pete

Every instructor assumes that you have nothing else to do except study for that instructor's course. 
				– Fourth Law of Applied Terror

_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
David Reitter | 14 Jul 2012 17:28
Picon
Gravatar

Re: What does Aquamacs do for previews besides patch gs flags in preview-mode.el?

On Jul 13, 2012, at 6:53 PM, Dan Maftei wrote:

> This is emacs 24.1.1, gs 9.05, running under X on OS X 10.7. Presumably this is an X11 problem on OS X, and I
tried the latest Xquartz (2.7.2) which didn't fix the problem.

You said it's got PNG support - so if you open a PNG directly, does it display it?

That said, Aquamacs comes with a lot of Lisp and binary-level modifications.  You can compare nsimage.m
perhaps and also read auctex-config.el from the Aquamacs source code.

- D

--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and support the Aquamacs Project!_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

Dan Maftei | 15 Jul 2012 00:57
Picon

Re: Re: What does Aquamacs do for previews besides patch gs flags in preview-mode.el?

Fixed. I deleted X11 and upgraded to the latest Xquartz. This broke all previews - I was now getting the road-block sign. gs was returning an error due to Free Type 2. I downgraded to 2.4.8 (https://bbs.archlinux.org/viewtopic.php?id=137638). All emacsen work now!

There's no telling anymore what was causing the strange error I was getting before.

For completeness' sake:

Prof. Reitter: Yes, PNG files were viewable, both in the image-dired and in image-view-mode.

Pete: Yes, I had tried disabling my init file and loading auctex/preview from *scratch*.

Dan

Am 14.07.2012 um 00:53 schrieb Dan Maftei:

> In short, .png files are being generated (inside the .prv folder) but in
> the buffer they appear as small white boxes. emacs has .png support.

Could you go in Emacs to the Help menu and choose "Send Bug Report…"? The function will ask for a subject – give it something! The you'll have *mail* buffer which will report the configure options. I would like to see these.

Have you also tried to launch Emacs with -Q and activate AUCTeX and preview manually from the *scratch* buffer or as function call from the command line? Maybe you have a faulty init file…

--
Greetings

  Pete

Every instructor assumes that you have nothing else to do except study for that instructor's course.
                                – Fourth Law of Applied Terror
 
Date: Sat, 14 Jul 2012 11:28:36 -0400
From: David Reitter <david.reitter <at> gmail.com>
Subject: Re: [OS X Emacs] What does Aquamacs do for previews besides
        patch gs        flags in preview-mode.el?
To: Emacs on Mac OS X Mailing List <macosx-emacs <at> email.esm.psu.edu>
Message-ID: <B2014D98-4EA2-485B-8887-A0A9265E30EE <at> gmail.com>
Content-Type: text/plain; charset=iso-8859-1

On Jul 13, 2012, at 6:53 PM, Dan Maftei wrote:

> This is emacs 24.1.1, gs 9.05, running under X on OS X 10.7. Presumably this is an X11 problem on OS X, and I tried the latest Xquartz (2.7.2) which didn't fix the problem.

You said it's got PNG support - so if you open a PNG directly, does it display it?

That said, Aquamacs comes with a lot of Lisp and binary-level modifications.  You can compare nsimage.m perhaps and also read auctex-config.el from the Aquamacs source code.

- D
_____________________________________________________________
MacOSX-Emacs mailing list
MacOSX-Emacs <at> email.esm.psu.edu
http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

Gmane