auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] "No connection to bus" message in Cygwin Emacs


From: Sebastien Vauban
Subject: Re: [AUCTeX] "No connection to bus" message in Cygwin Emacs
Date: Wed, 10 Jun 2015 17:13:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (cygwin)

Tassilo Horn <address@hidden> writes:
> Sebastien Vauban <address@hidden> writes:
>
>>>> What's not clear to me at this instant is that `C-h
>>>> f TeX-evince-dbus-p' doesn't return me a link to the file where the
>>>> function is defined, as you can see on
>>>> http://screencast.com/t/7HSPqoXIJm.
>>>
>>> That's indeed strange.  Is than only with this function, also with
>>> other AUCTeX functions,
>>
>> Trying functions at random: `C-h f tex-region-header RET' returns
>>
>>   ┌────
>>   │ tex-region-header is a compiled Lisp function in `tex-mode.el'.
>>   │ 
>>   │ (tex-region-header FILE &optional BEG)
>>   │ 
>>   │ If there is a TeX header in the current buffer, write it to FILE.
>>   │ Return point at the end of the region so written, or zero.  If
>>   │ the optional buffer position BEG is specified, then the region
>>   │ written out starts at BEG, if this lies before the start of the header.
>>   │ 
>>   │ If the first line matches `tex-first-line-header-regexp', it is
>>   │ also written out.  The variables `tex-start-of-header' and
>>   │ `tex-end-of-header' are used to locate the header.  Note that the
>>   │ start of the header is required to be within the first 100 lines.
>>   └────
>>
>> but... `tex-mode.el' is found in `/usr/share/emacs/24.5/lisp/textmodes'!
>> So, there is well an installation problem?
>
> Nope, that's.  Emacs ships with tex-mode.el but that's a separate thing
> from AUCTeX.  All AUCTeX functions start with TeX-* or LaTeX-* (case
> matters) or font-latex-*.

Yes, I know, but sometimes tend to forget about that peculiarity.

    Note -- I've never understood why AUCTeX doesn't have a simpler
    naming scheme, like functions beginning with the `auctex' prefix.
    I guess many of us have been bit by this at least once...

>> Well, maybe, I should have tested `TeX-*' functions, right?
>
> Yup!
>
>> Let's do it.  `C-h f TeX-kill-job RET' (chosen at random) returns:
>>
>>   ┌────
>>   │ TeX-kill-job is an interactive autoloaded Lisp function in `tex-buf.el'.
>>   │ 
>>   │ [Arg list not available until function definition is loaded.]
>>   │ 
>>   │ Not documented.
>>   └────
>>
>> which is well found in `/cygdrive/d/Users/sva/.emacs.d/elpa/auctex-11.88.6'.
>>
>> If the above is good, it shows that there is a link for some (most?)
>> AUCTeX functions.
>
> Well, that's all good.  Really strange that the link isn't there for at
> least one function...

Yes.  I don't come up yet with any reasonable explanation for that.

Except the MELPA thing?  (see below)

>>>> Installation problem?  I'm using the ELPA version!
>>>
>>> I've also checked with 11.88.6 from ELPA and Emacs 24.5, and there
>>> the link is there.
>>
>> Note -- I'm using the ~/.emacs.d/elpa for both Emacs versions.
>
> You mean, the older cygwin emacs and the more recent windows version?

No.

> It could be the case that auctex has been compiled with the newer
> version resulting in byte-code which is not completely compatible with
> the older emacs version on cygwin.

I meant:  I've installed AUCTeX a couple of weeks ago, when I still used
Windows Emacs (though, same version: 24.5.1).

Can it be a problem to install via the Windows Emacs, and reuse the
MELPA files with the Cygwin Emacs (or reversed, BTW)?

>>>> `C-h v AUCTeX-version' returns "11.88.6"...
>>>>
>>>> And `M-x locate-library RET tex-site' returns "Library is file
>>>> ~/.emacs.d/elpa/auctex-11.88.6/tex-site.elc".
>>>>
>>>> So, it seems well installed, nope?
>>>
>>> Yes, that's what's expected.  Locating the libraries tex and latex
>>> also suggests tex.el and latex.el in that directory, right?  (There
>>> has been a problem with some special distribution of Emacs which did
>>> some setup in default.el and thereby overwrote user and package.el
>>> settings.  There, the result was that tex-site.el from AUCTeX ELPA
>>> eventually triggered loading of a bundled, system-wide AUCTeX install
>>> so effectively you couldn't upgrade your AUCTeX version.)
>>
>> Let's test it.
>>
>> - `M-x locate-library tex RET' returns:
>>   Library is file ~/.emacs.d/elpa/auctex-11.88.6/tex.elc
>>
>> - `M-x locate-library latex RET' returns:
>>   Library is file ~/.emacs.d/elpa/auctex-11.88.6/latex.elc
>>
>> So far, so good?
>
> Yes.

Fantastic.

>>>> PS- I don't have `evince' installed on my Windows.  I'm using
>>>> SumatraPDF to view the PDF files.  I don't know about evince, but
>>>> that one refreshes automatically the PDF after each compilation.
>>>
>>> Yes, evince does that, too.  And forward and backward search with
>>> evince as a viewer are implemented using DBus communication if
>>> possible in AUCTeX.
>>
>> I could go the Evince route in the future.  But, right now, I'm happy
>> with SumatraPDF which opens very fast (unlike Acrobat Reader).
>>
>>> Now I see where the error probably comes from.  When dbus.el gets
>>> loaded, it'll call `dbus--init-bus' defined in dbusbind.c, and that
>>> can possibly throw a "No connection to bus" error.  However, when
>>> I test with cygwin's emacs 24.4.1 and auctex 11.88.6, I get no such
>>> error and the source link in the help buffer is also there.
>>>
>>> Anyway, you could try the following things:
>>>
>>>   1. Wrap a (let ((dbus-debug nil)) ...) around the (and ...) in
>>>     `TeX-evince-dbus-p'.
>>>   2. If that doesn't help, also wrap the (require 'dbus nil :no-error)
>>>      form in a (dbus-ignore-errors ...).
>>>
>>> Then do `M-x byte-recompile-directory' for
>>> ~/.emacs.d/elpa/auctex-11.88.6/ and restart emacs.  Do you still get
>>> the error then?
>>
>> I tried to implement #1, removed the `tex.elc' file (to be really sure),
>> `C-M-x'ed the function, and directly tried to revert the `.tex' buffer
>> to see if the mode changed from Fundamental to something else.
>>
>> Without restarting Emacs, the above worked (well, almost).  I now have
>> a buffer in "LaTeX/P" mode, much better.
>
> Ah, great.  I guess recompiling with the (older) cygwin will also do the
> trick then.  (See my guess above.)

To restate it, there is no difference in versions between the Windows
Emacs and the Cygwin Emacs.  They both are 24.5.1.

But I've compiled files within one, and use them now within the other.

>> Though, when pressing `C-c C-c', I now have:
>>
>>   ┌────
>>   │ Running `LaTeX' on `haie-ecm' with ``pdflatex  -file-line-error   
>> -interaction=nonstopmode "\input" haie-ecm.tex''
>>   │ This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/W32TeX) 
>> (preloaded format=pdflatex)
>>   │  restricted \write18 enabled.
>>   │ entering extended mode
>>   │ LaTeX2e <2014/05/01>
>>   │ Babel <3.9l> and hyphenation patterns for 79 languages loaded.
>>   │ ! I can't find file `haie-ecm.tex'.
>>   │ <*> \input haie-ecm.tex
>>   │                        
>>   │ (Press Enter to retry, or Control-Z to exit)
>>   │ Please type another input file name
>>   │ ! Emergency stop.
>>   │ <*> \input haie-ecm.tex
>>   │                        
>>   │ !  ==> Fatal error occurred, no output PDF file produced!
>>   │ Transcript written on texput.log.
>>   │ 
>>   │ TeX Output exited abnormally with code 1 at Wed Jun 10 16:32:24
>>   └────
>>
>> If I now run `which pdflatex' in a Shell buffer inside Cygwin Emacs,
>> I get:
>>
>>     /cygdrive/c/texlive/2014/bin/win32/pdflatex
>>
>> Problem using my TeX Live PDFLaTeX from Cygwin Emacs?
>
> Well, what happens when you execute the same pdflatex command in the
> cygwin bash from the directory containing the master file haie-ecm.tex?

I was expecting a potential problem, but got a PDF as expected:

--8<---------------cut here---------------start------------->8---
> pdflatex  -file-line-error   -interaction=nonstopmode "\input" haie-ecm.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014/W32TeX) 
(preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(./haie-ecm.tex (d:/Users/sva/texmf/tex/latex/isodoc.cls
Document Class: isodoc 2010/12/03 v0.8a isodoc class for letters and invoices
(c:/texlive/2014/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(c:/texlive/2014/texmf-dist/tex/latex/base/size11.clo))
(c:/texlive/2014/texmf-dist/tex/latex/ctable/ctable.sty
(c:/texlive/2014/texmf-dist/tex/generic/oberdiek/ifpdf.sty)
(c:/texlive/2014/texmf-dist/tex/latex/xcolor/xcolor.sty
(c:/texlive/2014/texmf-dist/tex/latex/latexconfig/color.cfg)
(c:/texlive/2014/texmf-dist/tex/latex/pdftex-def/pdftex.def
(c:/texlive/2014/texmf-dist/tex/generic/oberdiek/infwarerr.sty)
(c:/texlive/2014/texmf-dist/tex/generic/oberdiek/ltxcmds.sty)))
(c:/texlive/2014/texmf-dist/tex/latex/xkeyval/xkeyval.sty
(c:/texlive/2014/texmf-dist/tex/generic/xkeyval/xkeyval.tex
(c:/texlive/2014/texmf-dist/tex/generic/xkeyval/xkvutils.tex
(c:/texlive/2014/texmf-dist/tex/generic/xkeyval/keyval.tex))))
(c:/texlive/2014/texmf-dist/tex/latex/tools/array.sty)
(c:/texlive/2014/texmf-dist/tex/latex/tools/tabularx.sty)
(c:/texlive/2014/texmf-dist/tex/latex/booktabs/booktabs.sty)
(c:/texlive/2014/texmf-dist/tex/latex/rotating/rotating.sty
(c:/texlive/2014/texmf-dist/tex/latex/graphics/graphicx.sty
(c:/texlive/2014/texmf-dist/tex/latex/graphics/graphics.sty
(c:/texlive/2014/texmf-dist/tex/latex/graphics/trig.sty)
(c:/texlive/2014/texmf-dist/tex/latex/latexconfig/graphics.cfg)))
(c:/texlive/2014/texmf-dist/tex/latex/base/ifthen.sty))
(c:/texlive/2014/texmf-dist/tex/latex/oberdiek/transparent.sty
(c:/texlive/2014/texmf-dist/tex/latex/oberdiek/auxhook.sty)))
(c:/texlive/2014/texmf-dist/tex/latex/eurosym/eurosym.sty)
(c:/texlive/2014/texmf-dist/tex/latex/stringstrings/stringstrings.sty)
(c:/texlive/2014/texmf-dist/tex/latex/tools/calc.sty)
(c:/texlive/2014/texmf-dist/tex/latex/geometry/geometry.sty
(c:/texlive/2014/texmf-dist/tex/generic/oberdiek/ifvtex.sty)
(c:/texlive/2014/texmf-dist/tex/generic/ifxetex/ifxetex.sty))
(c:/texlive/2014/texmf-dist/tex/latex/textpos/textpos.sty
Package: textpos 2014/01/03 1.7j, absolute positioning of text on the page
(c:/texlive/2014/texmf-dist/tex/latex/ms/everyshi.sty)
Grid set 16 x 16 = 38.39343pt x 49.68562pt
TextBlockOrigin set to 0pt x 0pt
)
Grid set 210 x 297 = 2.84526pt x 2.84526pt
(c:/texlive/2014/texmf-dist/tex/latex/fancyhdr/fancyhdr.sty))
(c:/texlive/2014/texmf-dist/tex/latex/hyperref/hyperref.sty
(c:/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-hyperref.sty
(c:/texlive/2014/texmf-dist/tex/generic/oberdiek/hobsub-generic.sty))
(c:/texlive/2014/texmf-dist/tex/latex/oberdiek/kvoptions.sty)
(c:/texlive/2014/texmf-dist/tex/latex/hyperref/pd1enc.def)
(c:/texlive/2014/texmf-dist/tex/latex/latexconfig/hyperref.cfg)
(c:/texlive/2014/texmf-dist/tex/latex/url/url.sty))

Package hyperref Message: Driver (autodetected): hpdftex.

(c:/texlive/2014/texmf-dist/tex/latex/hyperref/hpdftex.def
(c:/texlive/2014/texmf-dist/tex/latex/oberdiek/rerunfilecheck.sty))
(c:/texlive/2014/texmf-dist/tex/latex/base/inputenc.sty
(c:/texlive/2014/texmf-dist/tex/latex/ucs/utf8x.def))
(c:/texlive/2014/texmf-dist/tex/latex/ucs/ucs.sty
(c:/texlive/2014/texmf-dist/tex/latex/ucs/data/uni-global.def))
(c:/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty
(c:/texlive/2014/texmf-dist/tex/latex/base/t1enc.def))
(c:/texlive/2014/texmf-dist/tex/latex/datatool/datatool.sty
(c:/texlive/2014/texmf-dist/tex/latex/xfor/xfor.sty)
(c:/texlive/2014/texmf-dist/tex/latex/substr/substr.sty)
(c:/texlive/2014/texmf-dist/tex/latex/etoolbox/etoolbox.sty
(c:/texlive/2014/texmf-dist/tex/latex/etex-pkg/etex.sty))
(c:/texlive/2014/texmf-dist/tex/latex/datatool/datatool-base.sty
(c:/texlive/2014/texmf-dist/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(c:/texlive/2014/texmf-dist/tex/latex/amsmath/amstext.sty
(c:/texlive/2014/texmf-dist/tex/latex/amsmath/amsgen.sty))
(c:/texlive/2014/texmf-dist/tex/latex/amsmath/amsbsy.sty)
(c:/texlive/2014/texmf-dist/tex/latex/amsmath/amsopn.sty))
(c:/texlive/2014/texmf-dist/tex/latex/datatool/datatool-fp.sty
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp.sty
`Fixed Point Package', Version 0.8, April 2, 1995 (C) Michael Mehlich
(c:/texlive/2014/texmf-dist/tex/latex/fp/defpattern.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-basic.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-addons.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-snap.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-exp.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-trigo.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-pas.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-random.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-eqn.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-upn.sty)
(c:/texlive/2014/texmf-dist/tex/latex/fp/fp-eval.sty)))))
(d:/Users/sva/texmf/tex/latex/isodoc-style.sty
(c:/texlive/2014/texmf-dist/tex/latex/psnfss/bookman.sty)
Saw option `mygooglest'.
Saw option `scorpios'.
(c:/texlive/2014/texmf-dist/tex/latex/parskip/parskip.sty))
No file haie-ecm.aux.
(c:/texlive/2014/texmf-dist/tex/latex/psnfss/t1pbk.fd)
(c:/texlive/2014/texmf-dist/tex/context/base/supp-pdf.mkii
[Loading MPS to PDF converter (version 2006.09.02).]
) (c:/texlive/2014/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
(c:/texlive/2014/texmf-dist/tex/latex/oberdiek/grfext.sty)
(c:/texlive/2014/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
*geometry* driver: auto-detecting
*geometry* detected driver: pdftex
ABD: EveryShipout initializing macros
(c:/texlive/2014/texmf-dist/tex/latex/hyperref/nameref.sty
(c:/texlive/2014/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
(c:/texlive/2014/texmf-dist/tex/latex/ucs/ucsencs.def)
(c:/texlive/2014/texmf-dist/tex/latex/ucs/data/uni-0.def)
<scorpios-logo-big.pdf, id=4, 73.10207pt x 45.99513pt>
<use scorpios-logo-big.pdf>
(c:/texlive/2014/texmf-dist/tex/latex/psnfss/t1pag.fd)
(c:/texlive/2014/texmf-dist/tex/latex/marvosym/umvs.fd)
Underfull \hbox (badness 10000) in paragraph at lines 33--33


Underfull \hbox (badness 10000) in paragraph at lines 33--33

<signature.png, id=6, 46.4937pt x 36.3759pt>
<use signature.png>
./haie-ecm.tex:34: Undefined control sequence.
<argument> isodoc v\fileversion

l.34 \end{document}

./haie-ecm.tex:34: Undefined control sequence.
<argument> isodoc v\fileversion

l.34 \end{document}

[1{c:/texlive/2014/texmf-var/fonts/map/pdftex/updmap/pdftex.map} <d:/Users/sva/
texmf/tex/latex/images/signature.png> <d:/Users/sva/texmf/tex/latex/images/
scorpios-logo-big.pdf>] (./haie-ecm.aux)

Package rerunfilecheck Warning: File `haie-ecm.out' has changed.
(rerunfilecheck)                Rerun to get outlines right
(rerunfilecheck)                or use package `bookmark'.


LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.

 )
(see the transcript file for additional information){c:/texlive/2014/texmf-dist
/fonts/enc/dvips/base/8r.enc}<c:/texlive/2014/texmf-dist/fonts/type1/public/mar
vosym/marvosym.pfb><c:/texlive/2014/texmf-dist/fonts/type1/urw/avantgar/uagd8a.
pfb><c:/texlive/2014/texmf-dist/fonts/type1/urw/avantgar/uagk8a.pfb><c:/texlive
/2014/texmf-dist/fonts/type1/urw/bookman/ubkd8a.pfb><c:/texlive/2014/texmf-dist
/fonts/type1/urw/bookman/ubkl8a.pfb>
Output written on haie-ecm.pdf (1 page, 109356 bytes).
Transcript written on haie-ecm.log.

> which pdflatex
/cygdrive/c/texlive/2014/bin/win32/pdflatex
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban



reply via email to

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