emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-export-string
@ 2010-10-31  6:45 Aidan Gauland
  2010-10-31  7:04 ` org-export-string Puneeth
  2010-10-31  8:48 ` org-export-string Noorul Islam
  0 siblings, 2 replies; 6+ messages in thread
From: Aidan Gauland @ 2010-10-31  6:45 UTC (permalink / raw)
  To: emacs-orgmode

Evaluating (org-export-string "plain plain *bold* plain" "html")
prompts me (in the minibuffer) with...

File to save in: /tmp/

I can't see any obvious s-exp in the definition of org-export-string
that would be bringing up the prompt.  Aside from the prompt, this
function does exactly what I need.  Any idea how I could get rid of
the prompt so I can run the function non-interactively?

--Aidan

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

* Re: org-export-string
  2010-10-31  6:45 org-export-string Aidan Gauland
@ 2010-10-31  7:04 ` Puneeth
  2010-10-31  7:46   ` org-export-string Aidan Gauland
  2010-10-31  8:48 ` org-export-string Noorul Islam
  1 sibling, 1 reply; 6+ messages in thread
From: Puneeth @ 2010-10-31  7:04 UTC (permalink / raw)
  To: Aidan Gauland; +Cc: emacs-orgmode

On Sun, Oct 31, 2010 at 12:15 PM, Aidan Gauland
<aidalgol@no8wireless.co.nz> wrote:
> Evaluating (org-export-string "plain plain *bold* plain" "html")
> prompts me (in the minibuffer) with...
>
> File to save in: /tmp/

Which version of Org-mode and Emacs are you using? I'm unable to
reproduce this with

 - GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
 - Org-mode version 7.02trans (release_7.02.21.g598be)


-- Puneeth

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

* Re: org-export-string
  2010-10-31  7:04 ` org-export-string Puneeth
@ 2010-10-31  7:46   ` Aidan Gauland
  0 siblings, 0 replies; 6+ messages in thread
From: Aidan Gauland @ 2010-10-31  7:46 UTC (permalink / raw)
  To: Puneeth; +Cc: emacs-orgmode


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

On Sun, Oct 31, 2010 at 12:34:18PM +0530, Puneeth wrote:
> On Sun, Oct 31, 2010 at 12:15 PM, Aidan Gauland
> <aidalgol@no8wireless.co.nz> wrote:
> > Evaluating (org-export-string "plain plain *bold* plain" "html")
> > prompts me (in the minibuffer) with...
> >
> > File to save in: /tmp/
> 
> Which version of Org-mode and Emacs are you using? I'm unable to
> reproduce this with
> 
>  - GNU Emacs 24.0.50.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0)
>  - Org-mode version 7.02trans (release_7.02.21.g598be)

Oh, sorry.  If I knew that this might be an issue, I would have
included this information in my first post.

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
of 2010-08-15 on raven, modified by Debian

7.02trans

--Aidan

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

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

_______________________________________________
Emacs-orgmode mailing list
Please 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: org-export-string
  2010-10-31  6:45 org-export-string Aidan Gauland
  2010-10-31  7:04 ` org-export-string Puneeth
@ 2010-10-31  8:48 ` Noorul Islam
  2010-10-31 14:14   ` org-export-string Eric Schulte
  1 sibling, 1 reply; 6+ messages in thread
From: Noorul Islam @ 2010-10-31  8:48 UTC (permalink / raw)
  To: Aidan Gauland; +Cc: emacs-orgmode

On Sun, Oct 31, 2010 at 12:15 PM, Aidan Gauland
<aidalgol@no8wireless.co.nz> wrote:
> Evaluating (org-export-string "plain plain *bold* plain" "html")
> prompts me (in the minibuffer) with...
>
> File to save in: /tmp/
>
> I can't see any obvious s-exp in the definition of org-export-string
> that would be bringing up the prompt.  Aside from the prompt, this
> function does exactly what I need.  Any idea how I could get rid of
> the prompt so I can run the function non-interactively?
>

I am not able to reproduce this on

Org-mode version 7.01trans (release_7.02.22.gde21)
GNU Emacs 23.2.2 (i686-pc-linux-gnu)
 of 2010-06-08 on sajida

Thanks and Regards
Noorul

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

* Re: org-export-string
  2010-10-31  8:48 ` org-export-string Noorul Islam
@ 2010-10-31 14:14   ` Eric Schulte
  2010-11-01  8:02     ` org-export-string Aidan Gauland
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Schulte @ 2010-10-31 14:14 UTC (permalink / raw)
  To: Noorul Islam; +Cc: emacs-orgmode, Aidan Gauland

It should be possible to use edebug to locate the source of this prompt.

Evaluate the definition of `org-export-string' with a prefix argument
(i.e. C-u C-M-x).  Then when you call `org-export-string' you can step
through all S-expressions in the definition, until you reach the one
which is generating the prompt.  Then evaluate *that* function with
edebug and recurse.

This should lead you to the prompt and from there we should be able to
figure out how to avoid it.

Best -- Eric

Noorul Islam <noorul@noorul.com> writes:

> On Sun, Oct 31, 2010 at 12:15 PM, Aidan Gauland
> <aidalgol@no8wireless.co.nz> wrote:
>> Evaluating (org-export-string "plain plain *bold* plain" "html")
>> prompts me (in the minibuffer) with...
>>
>> File to save in: /tmp/
>>
>> I can't see any obvious s-exp in the definition of org-export-string
>> that would be bringing up the prompt.  Aside from the prompt, this
>> function does exactly what I need.  Any idea how I could get rid of
>> the prompt so I can run the function non-interactively?
>>
>
> I am not able to reproduce this on
>
> Org-mode version 7.01trans (release_7.02.22.gde21)
> GNU Emacs 23.2.2 (i686-pc-linux-gnu)
>  of 2010-06-08 on sajida
>
> Thanks and Regards
> Noorul
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please 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: org-export-string
  2010-10-31 14:14   ` org-export-string Eric Schulte
@ 2010-11-01  8:02     ` Aidan Gauland
  0 siblings, 0 replies; 6+ messages in thread
From: Aidan Gauland @ 2010-11-01  8:02 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode


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

On Sun, Oct 31, 2010 at 08:14:27AM -0600, Eric Schulte wrote:
> It should be possible to use edebug to locate the source of this prompt.
>
> Evaluate the definition of `org-export-string' with a prefix argument
> (i.e. C-u C-M-x).  Then when you call `org-export-string' you can step
> through all S-expressions in the definition, until you reach the one
> which is generating the prompt.  Then evaluate *that* function with
> edebug and recurse.
>
> This should lead you to the prompt and from there we should be able to
> figure out how to avoid it.
>
> Best -- Eric
>
>> On Sun, Oct 31, 2010 at 12:15 PM, Aidan Gauland
>> <aidalgol@no8wireless.co.nz> wrote:
>> Evaluating (org-export-string "plain plain *bold* plain" "html")
>> prompts me (in the minibuffer) with...
>>
>> File to save in: /tmp/

The prompt came up when evaluating
(run-hooks 'org-export-html-after-blockquotes-hook)
(which is in the function org-export-as-html).  I had the following
export hook that was a workaround for a problem with footnotes (which
I need to try and fix when I get a chance).  Removing this hook
restores sane behaviour (i.e. no prompt).

(add-hook 'org-export-html-final-hook  'gio/replace-square-brackets)
(add-hook 'org-export-ascii-final-hook 'gio/replace-square-brackets)
(defun gio/replace-square-brackets ()
  "Replace #91; with [ and #93; with ] "
  (interactive)
  (setq a "#91;")  ; use "\[" for LaTeX export
  (setq b "#93;")  ; use "\]" for LaTeX export
  (setq a1 "[")
  (setq b1 "]")

  (ignore-errors (goto-char 1) (setq p (point))
                 (while (< p (point-max))
                   (re-search-forward a nil nil) (replace-match a1)  (setq p (point)) )  )
  (ignore-errors (goto-char 1) (setq p (point))
                 (while (< p (point-max))
                   (re-search-forward b nil nil) (replace-match b1)  (setq p (point)) )  )
  (save-buffer))

--Aidan

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

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

_______________________________________________
Emacs-orgmode mailing list
Please 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:[~2010-11-01  8:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-31  6:45 org-export-string Aidan Gauland
2010-10-31  7:04 ` org-export-string Puneeth
2010-10-31  7:46   ` org-export-string Aidan Gauland
2010-10-31  8:48 ` org-export-string Noorul Islam
2010-10-31 14:14   ` org-export-string Eric Schulte
2010-11-01  8:02     ` org-export-string Aidan Gauland

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