emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer Stengele <rainer.stengele@online.de>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: strange error "tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size" when exporting to odt
Date: Tue, 12 Jul 2011 19:16:48 +0200	[thread overview]
Message-ID: <4E1C8180.2070502@online.de> (raw)
In-Reply-To: <81vcv7iwkw.fsf@gmail.com>

Am 12.07.2011 13:10, schrieb Jambunathan K:
> Rainer Stengele <rainer.stengele@online.de> writes:
> 
>> Dear list,
>>
>> exporting an org file to odt I get this error under debian Linux
>> (Windows works fine) [excerpt from *Messages*]:
>>
>>
>> Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
>> ODT export done, pushed to kill ring and clipboard
>> OVERVIEW
>> CONTENTS...done
>> Using schema ~/.emacs.d/org/contrib/odt/etc/schema/od-schema-v1.2-cs01.rnc
>> tramp-file-name-handler: Variable binding depth exceeds
>> max-specpdl-size
> 
> Can you do M-x toggle-debug-on-error and post the stack trace? 
> 
> This is more likely to happen when a file/directory is being read or
> written in to and the prefix of the path looks as though it is a remote
> file. May be there is a bug in odt when it expands/abbrevs filename and
> directories.
> 
> Btw, what is different in your current setup. Why it didn't happen with
> earlier invocations. (I assume you were able to export to odt in earlier
> trial runs successfully)
> 
>> I cannot find the connection to tramp. I do not use tramp anywhere.
>> Anyone could imagine what's wrong?
>>
>> Thanks,
>> Rainer
>>
>>
>>
> 
Ok, solved. I had to remove some Windows settings and paths from my
.emacs - or better, only load them when being under Windows. Obviously
the exporting process somewhere took the Windows path patterns as
trampable triggers.


Thanks!
Rainer.


Here the stacktrace that brought the insight:



Debugger entered--Lisp error: (error "Variable binding depth exceeds
max-specpdl-size")
  browse-url-delete-temp-file()
  tramp-file-name-handler(expand-file-name
"/C:/Programme/Emacs/emacs/share/emacs/site-lisp/w3m" "/")

...

  tramp-file-name-handler(expand-file-name
"/C:/Programme/Emacs/emacs/share/emacs/site-lisp/w3m" "/")
  tramp-file-name-handler(expand-file-name "/c:/cygwin/bin/" "/")
  expand-file-name("c:/cygwin/bin/" "/")
  apply(expand-file-name ("c:/cygwin/bin/" "/"))
  (let* ((inhibit-file-name-handlers ...) (inhibit-file-name-operation
operation)) (apply operation args))
  tramp-completion-run-real-handler(expand-file-name ("c:/cygwin/bin/" "/"))
  (if (and fn tramp-mode (or ... ... ... ... ...)) (save-match-data
(apply ... args)) (tramp-completion-run-real-handler operation args))
  (let ((directory-sep-char 47) (fn ...)) (if (and fn tramp-mode ...)
(save-match-data ...) (tramp-completion-run-real-handler operation args)))
  tramp-completion-file-name-handler(expand-file-name "c:/cygwin/bin/" "/")
  call-process-region(1 57640 "sha1sum" "/tmp/emacs8vkk6R" t nil)
  apply(call-process-region 1 57640 "sha1sum" "/tmp/emacs8vkk6R" t nil nil)
  sha1-string-external("<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n<office:document-styles
xmlns:office=\"urn:oasis:names:tc:opendocument:xmlns:office:1.0\"
xmlns:style=\"urn:oasis:names:tc:opendocument:xmlns:style:1.0\"

...

  org-do-lparse(nil hidden nil nil nil nil)
  (let* ((org-lparse-backend ...) (org-lparse-other-backend ...))
(unless (org-lparse-backend-is-native-p native-backend) (error "Don't
know how to export natively to backend %s" native-backend)) (unless (or
... ... ...) (error "Don't know how to export to backend %s %s"
target-backend ...)) (run-hooks (quote org-export-first-hook))
(org-do-lparse arg hidden ext-plist to-buffer body-only pub-dir))
  org-lparse("odt" "odt" nil hidden)
  (let (f (file-or-buf ...)) (when file-or-buf (setq f ...) (message
"Opening file %s" f) (org-open-file f) (when
org-export-kill-product-buffer-when-displayed ...)))
  org-lparse-and-open("odt" "odt" nil)
  org-export-as-odt-and-open(nil)
  call-interactively(org-export-as-odt-and-open)
  org-export(nil)
  call-interactively(org-export nil nil)
  recursive-edit()
  byte-code("\306\x10	@\307=\203!

      reply	other threads:[~2011-07-12 17:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-12  8:32 strange error "tramp-file-name-handler: Variable binding depth exceeds max-specpdl-size" when exporting to odt Rainer Stengele
2011-07-12  8:41 ` Rainer Stengele
2011-07-12  9:01   ` Bastien
2011-07-12  9:04     ` Rainer Stengele
2011-07-12 11:10 ` Jambunathan K
2011-07-12 17:16   ` Rainer Stengele [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E1C8180.2070502@online.de \
    --to=rainer.stengele@online.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).