From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Goaziou Newsgroups: gmane.emacs.orgmode,gmane.emacs.devel Subject: Re: Emacs Lisp Depth Date: Tue, 16 Sep 2014 15:38:43 +0200 Message-ID: <87sijrk7mk.fsf@nicolasgoaziou.fr> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410874763 6346 80.91.229.3 (16 Sep 2014 13:39:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2014 13:39:23 +0000 (UTC) Cc: "emacs-orgmode@gnu.org" , Emacs developers To: Fabrice Popineau Original-X-From: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Tue Sep 16 15:39:17 2014 Return-path: Envelope-to: geo-emacs-orgmode@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XTsyR-0005Tp-Hm for geo-emacs-orgmode@m.gmane.org; Tue, 16 Sep 2014 15:39:15 +0200 Original-Received: from localhost ([::1]:38049 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTsyR-0002By-6J for geo-emacs-orgmode@m.gmane.org; Tue, 16 Sep 2014 09:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTsxk-0001HG-9i for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 09:38:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTsxc-0001Gu-DV for emacs-orgmode@gnu.org; Tue, 16 Sep 2014 09:38:32 -0400 Original-Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:59614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTsxM-0001CX-EN; Tue, 16 Sep 2014 09:38:08 -0400 Original-Received: from mfilter15-d.gandi.net (mfilter15-d.gandi.net [217.70.178.143]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id E3F39A80E5; Tue, 16 Sep 2014 15:37:59 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter15-d.gandi.net Original-Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter15-d.gandi.net (mfilter15-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id A9cH9PXBxO-s; Tue, 16 Sep 2014 15:37:58 +0200 (CEST) X-Originating-IP: 91.224.148.150 Original-Received: from selenimh (unknown [91.224.148.150]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id E891DA80AF; Tue, 16 Sep 2014 15:37:57 +0200 (CEST) In-Reply-To: (Fabrice Popineau's message of "Tue, 16 Sep 2014 15:01:01 +0200") Mail-Followup-To: Fabrice Popineau , "emacs-orgmode\@gnu.org" , Emacs developers X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4b98:c:538::195 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Original-Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.orgmode:90763 gmane.emacs.devel:174357 Archived-At: Hello, Fabrice Popineau writes: > Am I the only one to have hit the bottom of the default max_specpdl_size > and max_lisp_eval_depth values ? > I had already set max_specpdl_size to 2600 and I had to raise it again. > > I have an Org file of about 10000 lines, and I am exporting x100 beamer > slides and a latex document for about 200 pages . > > Curious to hear about other reports. This is likely due to a bug or an inefficient algorithm. Does it happen with other back-ends as well? Does it happen when parsing (i.e., simply calling `org-element-parse-buffer'? Could you send the file you're exporting in private? If needed, you can use the following function (provided you can parse the buffer) to hide contents (defun ngz-scramble-contents () (interactive) (let ((tree (org-element-parse-buffer))) (org-element-map tree '(code comment comment-block example-block fixed-width keyword link node-property plain-text verbatim) (lambda (obj) (case (org-element-type obj) ((code comment comment-block example-block fixed-width keyword node-property verbatim) (let ((value (org-element-property :value obj))) (org-element-put-property obj :value (replace-regexp-in-string "[[:alnum:]]" "x" value)))) (link (unless (string= (org-element-property :type obj) "radio") (org-element-put-property obj :raw-link "http://orgmode.org"))) (plain-text (org-element-set-element obj (replace-regexp-in-string "[[:alnum:]]" "x" obj))))) nil nil nil t) (let ((buffer (get-buffer-create "*Scrambled text*"))) (with-current-buffer buffer (insert (org-element-interpret-data tree)) (goto-char (point-min))) (switch-to-buffer buffer)))) Regards, -- Nicolas Goaziou