emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rustom Mody <rustompmody@gmail.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
Date: Sat, 29 Jun 2013 09:23:55 +0530	[thread overview]
Message-ID: <CAJ+TeodyvqBQBB=VT=8du=0z--9BXAV8cL=OdKw-NLZOUx2TTA@mail.gmail.com> (raw)
In-Reply-To: <CAJ+TeocUi2AH-QNhRW6eedbo8yfHec4SpfGKyLu=Ozofd+MN=Q@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 681 bytes --]

Nick Dokos wrote:

> emacs version? org version? backtrace?
> I cannot reproduce with ...
>

 Ok I thought the org-submit-bug takes care of all this. Find it is partly
true -- dont see emacs version in my report. So

GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.12) of 2012-09-22
on allspice, modified by Debian

Org-mode version 8.0.3 (release_8.0.3-295-g91a4c8.dirty @
~/pdsw/org-mode-8/lisp/)

$ git pull
Already up-to-date.

$ make autoloads
$ make all done

Now I find the crash occurs between
org-export-preprocess-string and org-footnote-normalize
edebug messages attached

However the 'dirty' in may subject line (created by org-submit-bug) makes
me suspicious

[-- Attachment #1.2: Type: text/html, Size: 913 bytes --]

[-- Attachment #2: edebugmessages.txt --]
[-- Type: text/plain, Size: 3563 bytes --]

Saving file /home/rusi/courses/vertis/withdebug.txt...
Wrote /home/rusi/courses/vertis/withdebug.txt
Quit
Making completion list... [3 times]
Quit
Type C-x 1 to delete the help window.
org-export-preprocess-string
help-follow: No cross-reference here
call-interactively: Command attempted to use minibuffer while in minibuffer [3 times]
Quit
org-footnote-normalize
Exporting...
progn: Wrong number of arguments: (lambda (&optional sort-only) "Collect the footnotes in various formats and normalize them.

This finds the different sorts of footnotes allowed in Org, and
normalizes them to the usual [N] format.

When SORT-ONLY is set, only sort the footnote definitions into the
referenced sequence." (let* ((limit-level (and (boundp (quote org-inlinetask-min-level)) org-inlinetask-min-level (1- org-inlinetask-min-level))) (nstars (and limit-level (if org-odd-levels-only (1- (* limit-level 2)) limit-level))) (org-outline-regexp (concat "\\*" (if nstars (format "\\{1,%d\\} " nstars) "+ "))) (count 0) ins-point ref ref-table) (save-excursion (goto-char (point-min)) (while (setq ref (org-footnote-get-next-reference)) (let* ((lbl (car ref)) (pos (nth 1 ref)) (a (and lbl (assoc lbl ref-table))) (marker (or (nth 1 a) (incf count))) (inlinep (or (stringp (nth 3 ref)) (nth 3 a)))) (if sort-only (goto-char (nth 2 ref)) (delete-region (nth 1 ref) (nth 2 ref)) (goto-char (nth 1 ref)) (insert (format "[%d]" marker)) (and inlinep org-footnote-fill-after-inline-note-extraction (org-fill-paragraph))) (unless a (let ((def (or ... ...))) (push (list lbl marker def inlinep (copy-marker pos)) ref-table))))) (cond ((and org-footnote-section (derived-mode-p (quote org-mode))) (goto-char (point-min)) (if (re-search-forward (concat "^\\*[ 	]+" (regexp-quote org-footnote-section) "[ 	]*$") nil t) (delete-region (match-beginning 0) (org-end-of-subtree t t))) (goto-char (point-max)) (skip-chars-backward " \r	
") (forward-line) (unless (bolp) (newline))) ((derived-mode-p (quote org-mode))) (t (when org-footnote-tag-for-non-org-mode-files (let ((tag (concat "^" ... "[ 	]*$"))) (goto-char (point-min)) (while (re-search-forward tag nil t) (replace-match "") (delete-region (point) (progn ... ...))))) (if (and (derived-mode-p (quote message-mode)) (goto-char (point-max)) (re-search-backward message-signature-separator nil t)) (beginning-of-line) (goto-char (point-max))))) (setq ins-point (point-marker)) (setq ref-table (delq nil (mapcar (lambda (x) (cond ((and sort-only ...) (set-marker ... nil) nil) ((not ...) (append ... ...)) (t x))) ref-table))) (setq ref-table (nreverse ref-table)) (mapc (lambda (x) (unless (nth 3 x) (org-footnote-delete-definitions (car x)))) ref-table) (goto-char ins-point) (cond ((not ref-table)) ((or (not (derived-mode-p (quote org-mode))) org-footnote-section) (if (not (derived-mode-p (quote org-mode))) (progn (skip-chars-backward " 	
\r") (delete-region (point) ins-point) (unless (bolp) (newline)) (when org-footnote-tag-for-non-org-mode-files (insert "
" org-footnote-tag-for-non-org-mode-files "
"))) (when (and (cdr (assq ... org-blank-before-new-entry)) (zerop (save-excursion ...))) (insert "
")) (insert "* " org-footnote-section "
")) (set-marker ins-point nil) (insert (mapconcat (lambda (x) (set-marker (nth 4 x) nil) (format "
[%s] %s" (nth ... x) (nth 2 x))) ref-table "
")) (unless (eobp) (insert "

"))) (t (mapc (lambda (x) (let ((pos ...)) (goto-char pos) (set-marker pos nil)) (org-footnote-goto-local-insertion-point) (insert (format "
[%s] %s
" (if sort-only ... ...) (nth 2 x)))) ref-table)))))), 2
Mark set

  parent reply	other threads:[~2013-06-29  3:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28 17:12 Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)] Rustom Mody
2013-06-28 17:21 ` Rustom Mody
2013-06-28 18:26   ` Nick Dokos
2013-06-29  3:53   ` Rustom Mody [this message]
2013-06-29  7:41     ` Nicolas Goaziou
2013-06-29 11:45       ` Rustom Mody
2013-06-29 12:19         ` Rustom Mody
2013-06-29 12:37           ` Nicolas Goaziou

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='CAJ+TeodyvqBQBB=VT=8du=0z--9BXAV8cL=OdKw-NLZOUx2TTA@mail.gmail.com' \
    --to=rustompmody@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).