emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error exporting to temp buffer
@ 2009-03-19  6:03 Leo
  2009-03-19 16:40 ` Carsten Dominik
  2009-03-19 21:59 ` David Maus
  0 siblings, 2 replies; 10+ messages in thread
From: Leo @ 2009-03-19  6:03 UTC (permalink / raw)
  To: emacs-orgmode

Hi there,

Put the following sample in a buffer *not* visiting any file and try
`C-c C-e H' to get the back trace. It is reproducible in GNU Emacs
23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-28 on BREPNB with orgmode
6.21b.

Sample:
--------------------------------

*good* is /already/ very _important_. But http://www.google.com is not the
right place.

--------------------------------

,----[ Backtrace ]
| Debugger entered--Lisp error: (wrong-type-argument stringp nil)
|   file-name-nondirectory(nil)
|   org-export-html-preprocess((:emph-multiline t :for-html t :skip-before-1st-heading nil :drawers nil :todo-keywords t :tags not-in-toc :priority nil :footnotes t :timestamps t :archived-trees headline :select-tags ("export") :exclude-tags ("noexport") :add-text nil :LaTeX-fragments t))
|   org-export-preprocess-string(#("*good* is /already/ very _important_. But http://www.google.com is not the\nright place." 0 1 (fontified nil :org-license-to-kill t face (bold) font-lock-multiline t invisible org-link) 1 5 (fontified nil :org-license-to-kill t face (bold) font-lock-multiline t) 5 6 (fontified nil :org-license-to-kill t face (bold) font-lock-multiline t invisible org-link mouse-face highlight keymap (keymap ... ... ... ... ...)) 6 7 (fontified nil :org-license-to-kill t mouse-face highlight keymap (keymap ... ... ... ... ...)) 7 10 (fontified nil :org-license-to-kill t) 10 11 (fontified nil :org-license-to-kill t face (italic) font-lock-multiline t invisible org-link) 11 18 (fontified nil :org-license-to-kill t face (italic) font-lock-multiline t) 18 19 (fontified nil :org-license-to-kill t face (italic) font-lock-multiline t invisible org-link) 19 25 (fontified nil :org-license-to-kill t) 25 26 (fontified nil :org-license-to-kill t face (underline) font-lock-multiline t invisible org-link) 26 35 (fontified nil :org-license-to-kill t face (underline) font-lock-multiline t) 35 36 (fontified nil :org-license-to-kill t face (underline) font-lock-multiline t invisible org-link) 36 42 (fontified nil :org-license-to-kill t) 42 47 (fontified nil rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text) :org-license-to-kill t mouse-face highlight keymap (keymap ... ... ... ... ...) face org-link) 47 48 (fontified nil rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text) :org-license-to-kill t mouse-face highlight keymap (keymap ... ... ... ... ...) face org-link) 48 49 (fontified nil rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text) :org-license-to-kill t mouse-face highlight keymap (keymap ... ... ... ... ...) face org-link) 49 63 (fontified nil rear-nonsticky (mouse-face highlight keymap invisible intangible help-echo org-linked-text) :org-license-to-kill t mouse-face highlight keymap (keymap ... ... ... ... ...) face org-link) 63 75 (fontified nil :org-license-to-kill t) 75 87 (fontified nil)) :emph-multiline t :for-html t :skip-before-1st-heading nil :drawers nil :todo-keywords t :tags not-in-toc :priority nil :footnotes t :timestamps t :archived-trees headline :select-tags ("export") :exclude-tags ("noexport") :add-text nil :LaTeX-fragments t)
|   org-export-as-html(nil nil nil "*Org HTML Export*")
|   org-export-as-html-to-buffer(nil)
|   call-interactively(org-export-as-html-to-buffer)
|   org-export(nil)
|   call-interactively(org-export nil nil)
`----

Best,
-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

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

* Re: Error exporting to temp buffer
  2009-03-19  6:03 Error exporting to temp buffer Leo
@ 2009-03-19 16:40 ` Carsten Dominik
  2009-03-19 21:18   ` Leo
  2009-03-19 21:59 ` David Maus
  1 sibling, 1 reply; 10+ messages in thread
From: Carsten Dominik @ 2009-03-19 16:40 UTC (permalink / raw)
  To: Leo; +Cc: emacs-orgmode

Hi Leo,

I cannot reproduce this.

- Carsten

On Mar 19, 2009, at 7:03 AM, Leo wrote:

> Hi there,
>
> Put the following sample in a buffer *not* visiting any file and try
> `C-c C-e H' to get the back trace. It is reproducible in GNU Emacs
> 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-28 on BREPNB with orgmode
> 6.21b.
>
> Sample:
> --------------------------------
>
> *good* is /already/ very _important_. But http://www.google.com is  
> not the
> right place.
>
> --------------------------------
>
> ,----[ Backtrace ]
> | Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> |   file-name-nondirectory(nil)
> |   org-export-html-preprocess((:emph-multiline t :for-html t :skip- 
> before-1st-heading nil :drawers nil :todo-keywords t :tags not-in- 
> toc :priority nil :footnotes t :timestamps t :archived-trees  
> headline :select-tags ("export") :exclude-tags ("noexport") :add- 
> text nil :LaTeX-fragments t))
> |   org-export-preprocess-string(#("*good* is /already/ very  
> _important_. But http://www.google.com is not the\nright place." 0 1  
> (fontified nil :org-license-to-kill t face (bold) font-lock- 
> multiline t invisible org-link) 1 5 (fontified nil :org-license-to- 
> kill t face (bold) font-lock-multiline t) 5 6 (fontified nil :org- 
> license-to-kill t face (bold) font-lock-multiline t invisible org- 
> link mouse-face highlight keymap (keymap ... ... ... ... ...)) 6 7  
> (fontified nil :org-license-to-kill t mouse-face highlight keymap  
> (keymap ... ... ... ... ...)) 7 10 (fontified nil :org-license-to- 
> kill t) 10 11 (fontified nil :org-license-to-kill t face (italic)  
> font-lock-multiline t invisible org-link) 11 18 (fontified nil :org- 
> license-to-kill t face (italic) font-lock-multiline t) 18 19  
> (fontified nil :org-license-to-kill t face (italic) font-lock- 
> multiline t invisible org-link) 19 25 (fontified nil :org-license-to- 
> kill t) 25 26 (fontified nil :org-license-to-kill t face (underline)  
> font-lock-multiline t invisible org-link) 26 35 (fontified nil :org- 
> license-to-kill t face (underline) font-lock-multiline t) 35 36  
> (fontified nil :org-license-to-kill t face (underline) font-lock- 
> multiline t invisible org-link) 36 42 (fontified nil :org-license-to- 
> kill t) 42 47 (fontified nil rear-nonsticky (mouse-face highlight  
> keymap invisible intangible help-echo org-linked-text) :org-license- 
> to-kill t mouse-face highlight keymap (keymap ... ... ... ... ...)  
> face org-link) 47 48 (fontified nil rear-nonsticky (mouse-face  
> highlight keymap invisible intangible help-echo org-linked- 
> text) :org-license-to-kill t mouse-face highlight keymap  
> (keymap ... ... ... ... ...) face org-link) 48 49 (fontified nil  
> rear-nonsticky (mouse-face highlight keymap invisible intangible  
> help-echo org-linked-text) :org-license-to-kill t mouse-face  
> highlight keymap (keymap ... ... ... ... ...) face org-link) 49 63  
> (fontified nil rear-nonsticky (mouse-face highlight keymap invisible  
> intangible help-echo org-linked-text) :org-license-to-kill t mouse- 
> face highlight keymap (keymap ... ... ... ... ...) face org-link) 63  
> 75 (fontified nil :org-license-to-kill t) 75 87 (fontified  
> nil)) :emph-multiline t :for-html t :skip-before-1st-heading  
> nil :drawers nil :todo-keywords t :tags not-in-toc :priority  
> nil :footnotes t :timestamps t :archived-trees headline :select-tags  
> ("export") :exclude-tags ("noexport") :add-text nil :LaTeX-fragments  
> t)
> |   org-export-as-html(nil nil nil "*Org HTML Export*")
> |   org-export-as-html-to-buffer(nil)
> |   call-interactively(org-export-as-html-to-buffer)
> |   org-export(nil)
> |   call-interactively(org-export nil nil)
> `----
>
> Best,
> -- 
> .: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Error exporting to temp buffer
  2009-03-19 16:40 ` Carsten Dominik
@ 2009-03-19 21:18   ` Leo
  0 siblings, 0 replies; 10+ messages in thread
From: Leo @ 2009-03-19 21:18 UTC (permalink / raw)
  To: emacs-orgmode

On 2009-03-19 16:40 +0000, Carsten Dominik wrote:
[...]
> Hi Leo,

Hi Carsten,

> I cannot reproduce this.

I can repliably reproduce it. Actually I just tried it with a fresh
Emacs session.

Looking at

(file-name-nondirectory
    org-current-export-file)

in org-export-html-preprocess and when an org buffer is NOT visiting any
file, org-current-export-file is set to nil by org-export-as-html, thus
the error occurs.

Can anyone else reproduce this bug?

BTW, I came across this when trying to combine Gnus+Org to blog to
blogger.com. I have come up with a decent solution based on Gnus alone.
So this bug is not bugging me any more.

> - Carsten

-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

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

* Re: Error exporting to temp buffer
  2009-03-19  6:03 Error exporting to temp buffer Leo
  2009-03-19 16:40 ` Carsten Dominik
@ 2009-03-19 21:59 ` David Maus
  2009-03-19 22:10   ` Sebastian Rose
  1 sibling, 1 reply; 10+ messages in thread
From: David Maus @ 2009-03-19 21:59 UTC (permalink / raw)
  To: emacs-orgmode


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


Good evening,

> Hi there,
> 
> Put the following sample in a buffer *not* visiting any file and try
> `C-c C-e H' to get the back trace. It is reproducible in GNU Emacs
> 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-28 on BREPNB with orgmode
> 6.21b.
> 
> Sample:
> --------------------------------
> 
> *good* is /already/ very _important_. But http://www.google.com is not the
> right place.
> 
> --------------------------------
>

Cannot reprocude this either. C-x b org-bug <RET>, paste sample, C-c C-e
H gives an *Org HTML Export* buffer with the exported sample.

org-version: 6.24trans
emacs-version: GNU Emacs 23.0.91.1 (i486-pc-linux-gnu) of 2009-03-08 on
elegiac, modified by Debian

Regards,

 -- David

-- 
Email..... maus.david@gmail.com
Jabber.... dmjena@jabber.org
ICQ....... 241051416
OpenPGP... 0x316F4BE4670716FD

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Error exporting to temp buffer
  2009-03-19 21:59 ` David Maus
@ 2009-03-19 22:10   ` Sebastian Rose
  2009-03-19 22:36     ` Nick Dokos
  0 siblings, 1 reply; 10+ messages in thread
From: Sebastian Rose @ 2009-03-19 22:10 UTC (permalink / raw)
  To: David Maus; +Cc: emacs-orgmode

David Maus <maus.david@gmail.com> writes:
> Cannot reprocude this either. C-x b org-bug <RET>, paste sample, C-c C-e
> H gives an *Org HTML Export* buffer with the exported sample.

Same here.


Regards,

  Sebastian

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

* Re: Error exporting to temp buffer
  2009-03-19 22:10   ` Sebastian Rose
@ 2009-03-19 22:36     ` Nick Dokos
  2009-03-19 23:22       ` Leo
  2009-03-20 13:07       ` Carsten Dominik
  0 siblings, 2 replies; 10+ messages in thread
From: Nick Dokos @ 2009-03-19 22:36 UTC (permalink / raw)
  To: Sebastian Rose; +Cc: emacs-orgmode

Sebastian Rose <sebastian_rose@gmx.de> wrote:

> David Maus <maus.david@gmail.com> writes:
> > Cannot reprocude this either. C-x b org-bug <RET>, paste sample, C-c C-e
> > H gives an *Org HTML Export* buffer with the exported sample.
> 
> Same here.
> 
> 
Same here, but I was wondering: the function that Leo fingers looks like this

,----
| (defun org-export-html-preprocess (parameters)
|   ;; Convert LaTeX fragments to images
|   (when (plist-get parameters :LaTeX-fragments)
|     (org-format-latex
|      (concat "ltxpng/" (file-name-sans-extension
| 			(file-name-nondirectory
| 			 org-current-export-file)))
|      org-current-export-dir nil "Creating LaTeX image %s"))
|   (message "Exporting..."))
`----

and when I step through it, the when expression evaluates to nil, so the
whole thing is skipped. So it may be some setting in Leo's setup or maybe
something is missing from the fragment, that would make that expression
non-nil. So my question is:

What do I have to do to make

     (plist-get parameters :LaTeX-fragments)

non-nil?

Nick

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

* Re: Error exporting to temp buffer
  2009-03-19 22:36     ` Nick Dokos
@ 2009-03-19 23:22       ` Leo
  2009-03-20 13:07       ` Carsten Dominik
  1 sibling, 0 replies; 10+ messages in thread
From: Leo @ 2009-03-19 23:22 UTC (permalink / raw)
  To: emacs-orgmode

On 2009-03-19 22:36 +0000, Nick Dokos wrote:
> and when I step through it, the when expression evaluates to nil, so the
> whole thing is skipped. So it may be some setting in Leo's setup or maybe
> something is missing from the fragment, that would make that expression
> non-nil. So my question is:

Thank you for finding this.

> What do I have to do to make
>
>      (plist-get parameters :LaTeX-fragments)

Maybe org-export-with-LaTeX-fragments is the culprit. I set it to t in
my setup.

> non-nil?

-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

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

* Re: Error exporting to temp buffer
@ 2009-03-20  8:25 Giovanni Ridolfi
  2009-03-20 15:10 ` Leo
  0 siblings, 1 reply; 10+ messages in thread
From: Giovanni Ridolfi @ 2009-03-20  8:25 UTC (permalink / raw)
  To: Leo, Carsten Dominik; +Cc: emacs-orgmode


--- Gio 19/3/09, Carsten Dominik <dominik@science.uva.nl> ha scritto:
> On Mar 19, 2009, at 7:03 AM, Leo wrote:
> 
> > Hi there,
> > 23.0.91.1 (i386-mingw-nt5.1.2600) of 2009-02-28 on
> > BREPNB with 
> > orgmode 6.21b.
    ^^^^^^^^^^^^^^^^

Leo, would you, please, try to upgrade to 6.24b [1]
and report if this bug still happens? ;-)

> 
> I cannot reproduce this.
> 
> - Carsten

6.24b or 6.21b ? ;-)

Cheers,
Giovanni.

[1] http://orgmode.org/org-6.24b.tar.gz




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

* Re: Error exporting to temp buffer
  2009-03-19 22:36     ` Nick Dokos
  2009-03-19 23:22       ` Leo
@ 2009-03-20 13:07       ` Carsten Dominik
  1 sibling, 0 replies; 10+ messages in thread
From: Carsten Dominik @ 2009-03-20 13:07 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

Again and again:  Thank for the analysis, I have pushed a fix.

- Carsten

On Mar 19, 2009, at 11:36 PM, Nick Dokos wrote:

> Sebastian Rose <sebastian_rose@gmx.de> wrote:
>
>> David Maus <maus.david@gmail.com> writes:
>>> Cannot reprocude this either. C-x b org-bug <RET>, paste sample, C- 
>>> c C-e
>>> H gives an *Org HTML Export* buffer with the exported sample.
>>
>> Same here.
>>
>>
> Same here, but I was wondering: the function that Leo fingers looks  
> like this
>
> ,----
> | (defun org-export-html-preprocess (parameters)
> |   ;; Convert LaTeX fragments to images
> |   (when (plist-get parameters :LaTeX-fragments)
> |     (org-format-latex
> |      (concat "ltxpng/" (file-name-sans-extension
> | 			(file-name-nondirectory
> | 			 org-current-export-file)))
> |      org-current-export-dir nil "Creating LaTeX image %s"))
> |   (message "Exporting..."))
> `----
>
> and when I step through it, the when expression evaluates to nil, so  
> the
> whole thing is skipped. So it may be some setting in Leo's setup or  
> maybe
> something is missing from the fragment, that would make that  
> expression
> non-nil. So my question is:
>
> What do I have to do to make
>
>     (plist-get parameters :LaTeX-fragments)
>
> non-nil?
>
> Nick
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

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

* Re: Error exporting to temp buffer
  2009-03-20  8:25 Giovanni Ridolfi
@ 2009-03-20 15:10 ` Leo
  0 siblings, 0 replies; 10+ messages in thread
From: Leo @ 2009-03-20 15:10 UTC (permalink / raw)
  To: emacs-orgmode

On 2009-03-20 08:25 +0000, Giovanni Ridolfi wrote:
[...]
> Leo, would you, please, try to upgrade to 6.24b [1]
> and report if this bug still happens? ;-)

These days I tend to use whatever comes with Emacs to save time and also
to help with pretest ;)

-- 
.: Leo :. [ sdl.web AT gmail.com ] .: I use Emacs :.

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

end of thread, other threads:[~2009-03-20 15:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-19  6:03 Error exporting to temp buffer Leo
2009-03-19 16:40 ` Carsten Dominik
2009-03-19 21:18   ` Leo
2009-03-19 21:59 ` David Maus
2009-03-19 22:10   ` Sebastian Rose
2009-03-19 22:36     ` Nick Dokos
2009-03-19 23:22       ` Leo
2009-03-20 13:07       ` Carsten Dominik
  -- strict thread matches above, loose matches on Subject: below --
2009-03-20  8:25 Giovanni Ridolfi
2009-03-20 15:10 ` Leo

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