bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-AUCTeX] rel-0-9-1; Re: problem with preview-region and TeX-command-


From: Rajneesh Hegde
Subject: [Bug-AUCTeX] rel-0-9-1; Re: problem with preview-region and TeX-command-region
Date: Wed, 25 May 2005 02:40:42 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

> That's now the third or so problem report where the file dialog
> freezes Emacs on Windows.  And nobody until now has provided any
> debugging information. )c:

ok, sorry for not using the package's bug-reporting feature. I don't
have emacs set up to send e-mail. (I'm sure it's very easy, it's just
something I don't intend to use emacs for.) And then I forgot to copy
the info generated by preview-report-bug. Anyway, I'm including a
minimal triggering sequence here, and pasting the debugging info at
the bottom.

1. Create a minimal tex file in some directory:

\documentclass{article}
\begin{document}
\section{Rhabarber}
\end{document}

Make sure the directory does not have a "_region_.tex" file.

2. Start emacs with "emacs -q -no-site-file"

3. Evaluate the following code in *scratch*:

(setq debug-on-error t)
(require 'tex-site)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq-default TeX-master nil)
(global-font-lock-mode 1)
(load "~/Programs/CVSemacs/site-lisp/preview-latex.el")
;(setq preview-auto-cache-preamble t)

(You can uncomment the last line to get a slightly different outcome;
see below.)

3. Load the minimal file.

4. Set mark just before \section and point just before \end, and use the
*menu item* for preview-region.
The echo area now has a query asking for the master file.

5. Hit Enter a few times and notice that emacs is not responding.

6. Now quit with C-g. Here the outcome depends on whether or not I set 
preview-auto-cache-preamble to t:

(i) If I did not set it, then on C-g, I get the message:
Please answer y or n.  Cache preamble? (y or n) 
On answering, the preview is completed.

(ii) If I did set the auto-cache on, then on C-g, emacs inserts as
many newlines at point as the number of times I hit Enter, and the
preview is completed.

In particular, David, emacs doesn't freeze, the master file query
simply doesn't receive the responses I'm giving it. (Presumably, the
C-g quits it, so that preie-region can then go about its business.

If, on the other hand, I set TeX-master to t in *scratch* , so that
its *global* value is affected, then the problem doesn't happen, since
there is no master-file query to begin with. Predictably, setting it
locally in the file, as Ralf's example had, is not enough.

I hope this info is comprehensive enough. Scroll down for the debug-info.

> > misunderstanding the syntax of easy-menu-define).
> 
> Rather the semantics.

Yes, thank you. I should have known better :)

> preview-region has an "interactive" spec, and
> that supplies the arguments.

perhaps this is somehow interfering with the master-fie query?
(although, I don't know why it happens only with the menu invocation,
and not the key-binding.)

> For you.  For us, we obviously would like to find
> out what is going
> on.  You might not be the only person affected.

agreed. I meant, not a problem for me. Anyway, the least we users
could do in return for your wonderful code is to help iron out its
minor wrinkles.

> Can you find out what it is by outcommenting things
> until it works?

maybe later, I have a thesis to write :)

and now for the debug-info:

Emacs  : GNU Emacs 22.0.50.2 (i386-mingw-nt5.1.2600)
 of 2005-04-16 on LAPTOP
Package: rel-0-9-1

current state:
==============

Output from running `d:/Programs/ghostgum/gs/gs8.33/bin/gswin32c.exe -h':
AFPL Ghostscript BETA RELEASE 8.33 (2004-11-20)
Copyright (C) 2004 artofcode LLC, Benicia, CA.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet', fewer messages
 -g<width>x<height>  page size in pixels   | -r<res>  pixels/inch resolution
 -sDEVICE=<devname>  select device         | -dBATCH  exit after last file
 -sOutputFile=<file> select output file: - for stdout, |command for pipe,
                                         embed %d or %ld for page #
Input formats: PostScript PostScriptLevel1 PostScriptLevel2 PostScriptLevel3 PDF
Default output device: display
Available devices:
   bbox bit bitcmyk bitrgb bj10e bj200 bjc600 bjc800 bmp16 bmp16m bmp256
   bmp32b bmpgray bmpmono bmpsep1 bmpsep8 cdeskjet cdj550 cdjcolor cdjmono
   declj250 deskjet devicen display djet500 djet500c eps9high eps9mid epson
   epsonc epswrite ibmpro ijs jetp3852 jpeg jpeggray laserjet lbp8 lj250
   ljet2p ljet3 ljet3d ljet4 ljet4d ljetplus m8510 mswindll mswinpr2 necp6
   nullpage pbm pbmraw pcx16 pcx24b pcx256 pcxcmyk pcxgray pcxmono pdfwrite
   pgm pgmraw pgnm pgnmraw pj pjxl pjxl300 pkmraw png16 png16m png256
   pngalpha pnggray pngmono pnm pnmraw ppm ppmraw psdcmyk psdrgb psmono
   pswrite pxlcolor pxlmono r4081 spotcmyk st800 stcolor t4693d2 t4693d4
   t4693d8 tek4696 tiff12nc tiff24nc tiff32nc tiffcrle tiffg3 tiffg32d
   tiffg4 tiffgray tifflzw tiffpack tiffsep uniprint
Search path:
   . ; D:\Programs\ghostgum\gs\gs8.33\lib ; D:\Programs\ghostgum\gs\fonts ;
   D:\Programs\ghostgum\gs\gs8.33\Resource ; c:/gs/gs8.33/lib ;
   c:/gs/gs8.33/Resource ; c:/gs/fonts
For more information, see c:/gs/gs8.33/doc/Use.htm.
Report bugs to address@hidden, using the form in Bug-form.htm.

(setq
 AUC-TeX-version "11.55"
 LaTeX-command-style '(("" "%(PDF)%(latex) %S%(PDFout)"))
 image-types '(png tiff jpeg xpm xbm pbm)
 preview-image-type 'png
 preview-image-creators '((dvipng
                           (open preview-gs-open preview-dvipng-process-setup)
                           (place preview-gs-place)
                           (close preview-dvipng-close))
                          (png (open preview-gs-open) (place preview-gs-place)
                           (close preview-gs-close))
                          (jpeg (open preview-gs-open)
                           (place preview-gs-place) (close preview-gs-close))
                          (pnm (open preview-gs-open) (place preview-gs-place)
                           (close preview-gs-close))
                          (tiff (open preview-gs-open)
                           (place preview-gs-place) (close preview-gs-close))
                          )
 preview-dvipng-image-type 'png
 preview-dvipng-command "dvipng -picky -noghostscript %d -o
 \"%m/prev%%03d.png\""
 preview-pdf2dsc-command "pdf2dsc %s.pdf %m/preview.dsc"
 preview-gs-command "d:/Programs/ghostgum/gs/gs8.33/bin/gswin32c.exe"
 preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted"
                      "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4")
 preview-gs-image-type-alist '((png png "-sDEVICE=png16m")
                               (dvipng png "-sDEVICE=png16m")
                               (jpeg jpeg "-sDEVICE=jpeg")
                               (pnm pbm "-sDEVICE=pnmraw")
                               (tiff tiff "-sDEVICE=tiff12nc"))
 preview-fast-conversion t
 preview-prefer-TeX-bb nil
 preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000"
 preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps"
 preview-scale-function 'preview-scale-from-face
 preview-LaTeX-command '("%l
                         \"\\nonstopmode\\nofiles\\PassOptionsToPackage{"
                         ("," . preview-required-option-list)
                         "}{preview}\\AtBeginDocument{
\\ifx\\ifPreview\\undefined"preview-default-preamble"\\fi}\\input{%t}\"")

 preview-required-option-list '("active" "tightpage" "auctex")
 preview-default-option-list '("displaymath" "floats" "graphics" "textmath"
                               "sections" "footnotes")
 preview-default-preamble '("\\RequirePackage["
                            ("," . preview-default-option-list)
                            "]{preview}[2004/11/05]")
 preview-LaTeX-command-replacements nil
 preview-dump-replacements '(preview-LaTeX-command-replacements
                             ("\\`\\([^ ]+\\)\\(\\( -\\([^
 \"]\\|\"[^\"]*\"\\)*\\)*\\)\\(.*\\)\\'" "\\1 -ini \"&\\1\" "
 preview-format-name ".ini \\5")
                             )
 preview-undump-replacements '(("\\`\\([^ ]+\\)\\(\\( -\\([^
 \"]\\|\"[^\"]*\"\\)*\\)*\\).*\\input{\\([^}]*\\)}.*\\'" "\\1 \"&"
 preview-format-name "\" \\5")
                               )
 preview-auto-cache-preamble 'ask
 )






reply via email to

[Prev in Thread] Current Thread [Next in Thread]