emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
@ 2013-06-28 17:12 Rustom Mody
  2013-06-28 17:21 ` Rustom Mody
  0 siblings, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2013-06-28 17:12 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1775 bytes --]

export as html is crashing with this (from *Messages* buffer)

org-export-preprocess-string: Wrong number of arguments: (then all sorts of
unprintable chars)


---------------
(setq
 org-speed-command-hook '(org-speed-command-default-hook
              org-babel-speed-command-hook)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-export-preprocess-hook '(org-export-blocks-preprocess)
 org-tab-first-hook '(org-hide-block-toggle-maybe
              org-src-native-tab-command-maybe
              org-babel-hide-result-toggle-maybe
              org-babel-header-arg-expand)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
             org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
          org-cycle-hide-inline-tasks org-cycle-show-empty-lines
          org-optimize-window-after-visibility-change)
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
           [org-add-hook change-major-mode-hook org-show-block-all
            append local]
           5]
         #[nil "\300\301\302\303\304$\207"
           [org-add-hook change-major-mode-hook
            org-babel-show-result-all append local]
           5]
         org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
              org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-occur-hook '(org-first-headline-recenter)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 )

[-- Attachment #2: Type: text/html, Size: 2013 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
  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
  0 siblings, 2 replies; 8+ messages in thread
From: Rustom Mody @ 2013-06-28 17:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

On Fri, Jun 28, 2013 at 10:42 PM, Rustom Mody <rustompmody@gmail.com> wrote:

> export as html is crashing with this (from *Messages* buffer)
>
> org-export-preprocess-string: Wrong number of arguments: (then all sorts
> of unprintable chars)
>


I should have added this information

The file I am exporting is just these 2 lines:

--------------
* head
some text
----------

I am starting emacs with -Q, then just doing this
(add-to-list 'load-path (expand-file-name "~/pdsw/org-mode-8/lisp"))

then exporting

[-- Attachment #2: Type: text/html, Size: 827 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
  2013-06-28 17:21 ` Rustom Mody
@ 2013-06-28 18:26   ` Nick Dokos
  2013-06-29  3:53   ` Rustom Mody
  1 sibling, 0 replies; 8+ messages in thread
From: Nick Dokos @ 2013-06-28 18:26 UTC (permalink / raw)
  To: emacs-orgmode

Rustom Mody <rustompmody@gmail.com> writes:

> On Fri, Jun 28, 2013 at 10:42 PM, Rustom Mody <rustompmody@gmail.com> wrote:
>
>     export as html is crashing with this (from *Messages* buffer)
>    
>     org-export-preprocess-string: Wrong number of arguments: (then all sorts of unprintable chars)
>
> I should have added this information
>
> The file I am exporting is just these 2 lines:
>
> --------------
> * head
> some text
> ----------
>
> I am starting emacs with -Q, then just doing this
> (add-to-list 'load-path (expand-file-name "~/pdsw/org-mode-8/lisp"))
>
> then exporting
>

emacs version? org version? backtrace? 

I cannot reproduce with

GNU Emacs 24.3.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.24.10) of
2013-06-17 on pierrot

Org-mode version 8.0.3 (release_8.0.3-293-g911c5d @
/home/nick/elisp/org-mode/lisp/)

or (just pulled)

Org-mode version 8.0.3 (release_8.0.3-295-g91a4c8 @
/home/nick/elisp/org-mode/lisp/)

-- 
Nick

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
  2013-06-28 17:21 ` Rustom Mody
  2013-06-28 18:26   ` Nick Dokos
@ 2013-06-29  3:53   ` Rustom Mody
  2013-06-29  7:41     ` Nicolas Goaziou
  1 sibling, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2013-06-29  3:53 UTC (permalink / raw)
  To: emacs-orgmode


[-- 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
  2013-06-29  3:53   ` Rustom Mody
@ 2013-06-29  7:41     ` Nicolas Goaziou
  2013-06-29 11:45       ` Rustom Mody
  0 siblings, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2013-06-29  7:41 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

Hello,

Rustom Mody <rustompmody@gmail.com> writes:

> Now I find the crash occurs between
> org-export-preprocess-string and org-footnote-normalize

These functions do not exist in the current export framework. You're
calling the old exporter.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
  2013-06-29  7:41     ` Nicolas Goaziou
@ 2013-06-29 11:45       ` Rustom Mody
  2013-06-29 12:19         ` Rustom Mody
  0 siblings, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2013-06-29 11:45 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 762 bytes --]

On Sat, Jun 29, 2013 at 1:11 PM, Nicolas Goaziou <n.goaziou@gmail.com>wrote:

> Hello,
>
> Rustom Mody <rustompmody@gmail.com> writes:
>
> > Now I find the crash occurs between
> > org-export-preprocess-string and org-footnote-normalize
>
> These functions do not exist in the current export framework. You're
> calling the old exporter.
>
>
> Regards,
>
> --
> Nicolas Goaziou
>

So then something is wrong with my git.
[I am on a different machine right now so following is from memory...]

a. git pull shows upto date
b. org version shows 8.0.2 (or thereabouts)

Is there some 'git reset --hard ...' magic that I can try?
Of course I could just download whole again but that seems strange thing to
do...

-- 
http://www.the-magus.in
http://blog.languager.org

[-- Attachment #2: Type: text/html, Size: 1379 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
  2013-06-29 11:45       ` Rustom Mody
@ 2013-06-29 12:19         ` Rustom Mody
  2013-06-29 12:37           ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Rustom Mody @ 2013-06-29 12:19 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 964 bytes --]

On Sat, Jun 29, 2013 at 5:15 PM, Rustom Mody <rustompmody@gmail.com> wrote:

>
>
> On Sat, Jun 29, 2013 at 1:11 PM, Nicolas Goaziou <n.goaziou@gmail.com>wrote:
>
>> Hello,
>>
>> Rustom Mody <rustompmody@gmail.com> writes:
>>
>> > Now I find the crash occurs between
>> > org-export-preprocess-string and org-footnote-normalize
>>
>> These functions do not exist in the current export framework. You're
>> calling the old exporter.
>>
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
> So then something is wrong with my git.
> [I am on a different machine right now so following is from memory...]
>
> a. git pull shows upto date
> b. org version shows 8.0.2 (or thereabouts)
>
> Is there some 'git reset --hard ...' magic that I can try?
> Of course I could just download whole again but that seems strange thing
> to do...
>


Well finally! C-c C-e works (at least on one machine!) I was using
org-export-as-html

Maybe if it is non-working it should be removed?

[-- Attachment #2: Type: text/html, Size: 1736 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Bug: Export is crashing [8.0.3 (release_8.0.3-295-g91a4c8.dirty @ ~/org-mode-8/lisp/)]
  2013-06-29 12:19         ` Rustom Mody
@ 2013-06-29 12:37           ` Nicolas Goaziou
  0 siblings, 0 replies; 8+ messages in thread
From: Nicolas Goaziou @ 2013-06-29 12:37 UTC (permalink / raw)
  To: Rustom Mody; +Cc: emacs-orgmode

Hello,

Rustom Mody <rustompmody@gmail.com> writes:

> Well finally! C-c C-e works (at least on one machine!) I was using
> org-export-as-html
>
> Maybe if it is non-working it should be removed?

It is removed from Org 8.0. But it is also an autoloaded function from
Org 7.9 bundled with Emacs.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-06-29 12:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).