emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Error exporting indirect buffer to ASCII
@ 2008-10-21  8:25 Vladi Solutka
  2008-10-21 16:00 ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Vladi Solutka @ 2008-10-21  8:25 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

I get a "wrong type argument: stringp, nil" when exporting to ASCII from
an indirect buffer. I guess the problem is in the file 

org-6.09a/org-exp.el at line 1052: 

 (file-name-nondirectory (buffer-file-name))

(using emacs 22.3.1)

--- \\/ladi
--- \\/ladi

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

* Re: Error exporting indirect buffer to ASCII
  2008-10-21  8:25 Error exporting indirect buffer to ASCII Vladi Solutka
@ 2008-10-21 16:00 ` Carsten Dominik
  2008-10-22  8:02   ` Vladi Solutka
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2008-10-21 16:00 UTC (permalink / raw)
  To: Vladi Solutka; +Cc: emacs-orgmode

Hi Vladi,

have you customized org-export-run-in-background?

- Carsten

On Oct 21, 2008, at 10:25 AM, Vladi Solutka wrote:

> Hi!
>
> I get a "wrong type argument: stringp, nil" when exporting to ASCII  
> from
> an indirect buffer. I guess the problem is in the file
>
> org-6.09a/org-exp.el at line 1052:
>
> (file-name-nondirectory (buffer-file-name))
>
> (using emacs 22.3.1)
>
> --- \\/ladi
> --- \\/ladi
>
>
>
> _______________________________________________
> 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] 6+ messages in thread

* Re: Error exporting indirect buffer to ASCII
  2008-10-21 16:00 ` Carsten Dominik
@ 2008-10-22  8:02   ` Vladi Solutka
  2008-10-22  8:21     ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Vladi Solutka @ 2008-10-22  8:02 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

> > I get a "wrong type argument: stringp, nil" when exporting to ASCII  
> > from
> > an indirect buffer. I guess the problem is in the file
> >
> > org-6.09a/org-exp.el at line 1052:
> >
> > (file-name-nondirectory (buffer-file-name))

> have you customized org-export-run-in-background?

No, C-h v org-export-run-in-background results in:

-------snip--------------
org-export-run-in-background is a variable defined in `org-exp.el'.
Its value is nil
-------snip--------------


--- \\/ladi

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

* Re: Re: Error exporting indirect buffer to ASCII
  2008-10-22  8:02   ` Vladi Solutka
@ 2008-10-22  8:21     ` Carsten Dominik
  2008-10-22 11:18       ` Vladi Solutka
  0 siblings, 1 reply; 6+ messages in thread
From: Carsten Dominik @ 2008-10-22  8:21 UTC (permalink / raw)
  To: Vladi Solutka; +Cc: emacs-orgmode

Well, the code snippet you mentioned is only reached if that variable  
is set, or f you export using a double prefix argument..

Anyway, I believe this problem is now fixed, get back to me if it  
persists in the latest git version.

- Carsten

On Oct 22, 2008, at 10:02 AM, Vladi Solutka wrote:

> Hi!
>
>>> I get a "wrong type argument: stringp, nil" when exporting to ASCII
>>> from
>>> an indirect buffer. I guess the problem is in the file
>>>
>>> org-6.09a/org-exp.el at line 1052:
>>>
>>> (file-name-nondirectory (buffer-file-name))
>
>> have you customized org-export-run-in-background?
>
> No, C-h v org-export-run-in-background results in:
>
> -------snip--------------
> org-export-run-in-background is a variable defined in `org-exp.el'.
> Its value is nil
> -------snip--------------
>
>
> --- \\/ladi
>
>
>
>
> _______________________________________________
> 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] 6+ messages in thread

* Re: Error exporting indirect buffer to ASCII
  2008-10-22  8:21     ` Carsten Dominik
@ 2008-10-22 11:18       ` Vladi Solutka
  2008-10-22 15:37         ` Carsten Dominik
  0 siblings, 1 reply; 6+ messages in thread
From: Vladi Solutka @ 2008-10-22 11:18 UTC (permalink / raw)
  To: emacs-orgmode

Hi!

> Well, the code snippet you mentioned is only reached if that variable  
> is set, or f you export using a double prefix argument..
> 
> Anyway, I believe this problem is now fixed, get back to me if it  
> persists in the latest git version.

I just took the latest git snapshot and get the same error
(after doing an "M-x org-export-as-ascii" from an indirect org buffer):

-----------------------snip----------------------------
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  file-name-nondirectory(nil)
  org-export-as-ascii(nil)
  call-interactively(org-export-as-ascii)
  execute-extended-command(nil)
  call-interactively(execute-extended-command)
-----------------------snip----------------------------

As far as I can see, the variable org-export-run-in-background is never
referenced in the function 'org-export-as-ascii'. 

Instead, in org-exp.el:2193 the filename is build up from using 
'buffer-file-name' (line 2199) which is nil since the indirect 
buffer doesn't have an associated filename.

--- \\/ladi

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

* Re: Re: Error exporting indirect buffer to ASCII
  2008-10-22 11:18       ` Vladi Solutka
@ 2008-10-22 15:37         ` Carsten Dominik
  0 siblings, 0 replies; 6+ messages in thread
From: Carsten Dominik @ 2008-10-22 15:37 UTC (permalink / raw)
  To: Vladi Solutka; +Cc: emacs-orgmode

OK, thanks, I got it now.  Fixed.

- Carsten

On Oct 22, 2008, at 1:18 PM, Vladi Solutka wrote:

> Hi!
>
>> Well, the code snippet you mentioned is only reached if that variable
>> is set, or f you export using a double prefix argument..
>>
>> Anyway, I believe this problem is now fixed, get back to me if it
>> persists in the latest git version.
>
> I just took the latest git snapshot and get the same error
> (after doing an "M-x org-export-as-ascii" from an indirect org  
> buffer):
>
> -----------------------snip----------------------------
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>  file-name-nondirectory(nil)
>  org-export-as-ascii(nil)
>  call-interactively(org-export-as-ascii)
>  execute-extended-command(nil)
>  call-interactively(execute-extended-command)
> -----------------------snip----------------------------
>
> As far as I can see, the variable org-export-run-in-background is  
> never
> referenced in the function 'org-export-as-ascii'.
>
> Instead, in org-exp.el:2193 the filename is build up from using
> 'buffer-file-name' (line 2199) which is nil since the indirect
> buffer doesn't have an associated filename.
>
> --- \\/ladi
>
>
>
>
> _______________________________________________
> 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] 6+ messages in thread

end of thread, other threads:[~2008-10-22 15:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-21  8:25 Error exporting indirect buffer to ASCII Vladi Solutka
2008-10-21 16:00 ` Carsten Dominik
2008-10-22  8:02   ` Vladi Solutka
2008-10-22  8:21     ` Carsten Dominik
2008-10-22 11:18       ` Vladi Solutka
2008-10-22 15:37         ` Carsten Dominik

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