From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Emacs Lisp Depth Date: Tue, 16 Sep 2014 15:38:43 +0200 Message-ID: <87sijrk7mk.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: 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 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 In-Reply-To: (Fabrice Popineau's message of "Tue, 16 Sep 2014 15:01:01 +0200") 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 Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Fabrice Popineau Cc: "emacs-orgmode@gnu.org" , Emacs developers 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