emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug: invalid export key in export visible region
@ 2011-02-24 18:17 Samuel Wales
  2011-03-06 18:09 ` David Maus
  0 siblings, 1 reply; 6+ messages in thread
From: Samuel Wales @ 2011-02-24 18:17 UTC (permalink / raw)
  To: emacs-orgmode

The following commands error out, seeming to say that the keys are wrong.

  c-c c-e v H
  c-c c-e v R

Emacs 22, latest org git master.

Thanks.

Samuel

-- 
The Kafka Pandemic:
http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
I support the Whittemore-Peterson Institute (WPI)
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

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

* Re: bug: invalid export key in export visible region
  2011-02-24 18:17 bug: invalid export key in export visible region Samuel Wales
@ 2011-03-06 18:09 ` David Maus
  2011-03-06 18:34   ` Bastien
  0 siblings, 1 reply; 6+ messages in thread
From: David Maus @ 2011-03-06 18:09 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

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

At Thu, 24 Feb 2011 11:17:48 -0700,
Samuel Wales wrote:
>
> The following commands error out, seeming to say that the keys are wrong.
>
>   c-c c-e v H
>   c-c c-e v R
>
> Emacs 22, latest org git master.

Thanks for the report, should be fixed by now.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

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

* Re: Re: bug: invalid export key in export visible region
  2011-03-06 18:09 ` David Maus
@ 2011-03-06 18:34   ` Bastien
  2011-03-14  3:11     ` Samuel Wales
  0 siblings, 1 reply; 6+ messages in thread
From: Bastien @ 2011-03-06 18:34 UTC (permalink / raw)
  To: David Maus; +Cc: emacs-orgmode

David Maus <dmaus@ictsoc.de> writes:

> At Thu, 24 Feb 2011 11:17:48 -0700,
> Samuel Wales wrote:
>>
>> The following commands error out, seeming to say that the keys are wrong.
>>
>>   c-c c-e v H
>>   c-c c-e v R
>>
>> Emacs 22, latest org git master.
>
> Thanks for the report, should be fixed by now.

Thanks for this David!

-- 
 Bastien

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

* Re: Re: bug: invalid export key in export visible region
  2011-03-06 18:34   ` Bastien
@ 2011-03-14  3:11     ` Samuel Wales
  2011-03-15  5:15       ` David Maus
  0 siblings, 1 reply; 6+ messages in thread
From: Samuel Wales @ 2011-03-14  3:11 UTC (permalink / raw)
  To: Bastien; +Cc: David Maus, emacs-orgmode

On 2011-03-06, Bastien <bzg@altern.org> wrote:
> David Maus <dmaus@ictsoc.de> writes:
>> Samuel Wales wrote:
>>>   c-c c-e v H
>>>   c-c c-e v R
>>>
>>> Emacs 22, latest org git master.
>>
>> Thanks for the report, should be fixed by now.

Thanks, David.  Doesn't work for me.

Also, the region gets set to only one visible line for some reason.

Error is long:

funcall: Wrong number of arguments: (lambda (beg end
&optional body-only buffer) "Convert region from BEG to END
in org-mode buffer to HTML.  If prefix arg BODY-ONLY is set,
omit file header, footer, and table of contents, and only
produce the region of converted text, useful for
cut-and-paste operations.  If BUFFER is a buffer or a
string, use/create that buffer as a target of the converted
HTML.  If BUFFER is the symbol `string', return the produced
HTML as a string and leave not buffer behind.  For example,
a Lisp program could call this function in the following
way:

  (setq html (org-export-region-as-html beg end t 'string))

When called interactively, the output buffer is selected,
and shown in a window.  A non-interactive call will only
return the buffer." (interactive "r P") (when
(interactive-p) (setq buffer "*Org HTML Export*")) (let
((transient-mark-mode t) (zmacs-regions t) ext-plist rtn)
(setq ext-plist (plist-put ext-plist :ignore-subtree-p t))
(goto-char end) (set-mark (point)) (goto-char beg) (setq rtn
(org-export-as-html nil nil ext-plist buffer body-only)) (if
(fboundp (quote deactivate-mark)) (deactivate-mark)) (if
(and (interactive-p) (bufferp rtn))
(switch-to-buffer-other-window rtn) rtn))), 1

Backtrace (how come Emacs doesn't include the error in the backtrace?):

  org-export-region-as-html(nil)
  funcall(org-export-region-as-html nil)
  (if keepp nil (funcall binding arg))
  (unless keepp (funcall binding arg))
  (let ((buffer-file-name file) (org-inhibit-startup t)) (org-mode)
(show-all) (unless keepp (funcall binding arg)))
  (save-excursion (setq s (goto-char ...)) (while (not ...) (goto-char
...) (append-to-buffer buffer s ...) (setq s ...))
(org-cycle-hide-drawers (quote all)) (goto-char (point-min)) (unless
keepp (if ... ...) (when ... ...)) (set-buffer buffer) (let (... ...)
(org-mode) (show-all) (unless keepp ...)))
  (let* ((binding ...) (keepp ...) (file buffer-file-name) (buffer
...) s e) (save-excursion (goto-char ...) (while ... ... ...))
(with-current-buffer buffer (erase-buffer)) (save-excursion (setq s
...) (while ... ... ... ...) (org-cycle-hide-drawers ...) (goto-char
...) (unless keepp ... ...) (set-buffer buffer) (let ... ... ... ...))
(if (not keepp) (kill-buffer buffer) (switch-to-buffer-other-window
buffer) (goto-char ...)))
  org-export-visible(82 nil)
  call-interactively(org-export-visible)
  (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...)
(set-process-sentinel p ...) (message "Background process \"%s\":
started" p)) (if subtree-p (progn ... ...)) (call-interactively (nth 1
ass)) (when (and bpos ...) (let ... ... ... ... ...)))
  (let* ((bg ...) (subtree-p ...) (help "[t]   insert the export option template
[v]   limit export to visible part of outline tree
[1]   switch buffer/subtree export
[SPC] publish enclosing subtree (with LaTeX_CLASS or EXPORT_FILE_NAME prop)

[a/n/u] export as ASCII/Latin-1/UTF-8         [A/N/U] to temporary buffer

[h] export as HTML      [H] to temporary buffer   [R] export region
[b] export as HTML and open in browser

[l] export as LaTeX     [L] to temporary buffer
[p] export as LaTeX and process to PDF            [d] ... and open PDF file

[D] export as DocBook   [V] export as DocBook, process to PDF, and open

[j] export as TaskJuggler                         [J] ... and open

[m] export as Freemind mind map
[x] export as XOXO
[g] export using Wes Hardaker's generic exporter

[i] export current file as iCalendar file
[I] export all agenda files as iCalendar files   [c] ...as one combined file

[F] publish current file          [P] publish current project
[X] publish a project...          [E] publish every projects") (cmds
...) r1 r2 ass (cpos ...) (cbuf ...) bpos) (save-excursion
(save-window-excursion ... ... ... ... ... ...)) (redisplay) (and bpos
(goto-char bpos)) (setq r2 (if ... ... r1)) (unless (setq ass ...)
(error "No command associated with key %c" r1)) (if (and bg ... ...
...) (let ... ... ...) (if subtree-p ...) (call-interactively ...)
(when ... ...)))
  ad-Orig-org-export(nil)
  org-export(nil)
  call-interactively(org-export)

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

* Re: Re: bug: invalid export key in export visible region
  2011-03-14  3:11     ` Samuel Wales
@ 2011-03-15  5:15       ` David Maus
  2011-03-15  6:01         ` Samuel Wales
  0 siblings, 1 reply; 6+ messages in thread
From: David Maus @ 2011-03-15  5:15 UTC (permalink / raw)
  To: Samuel Wales; +Cc: Bastien, emacs-orgmode, David Maus

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

At Sun, 13 Mar 2011 20:11:03 -0700,
Samuel Wales wrote:
>
> On 2011-03-06, Bastien <bzg@altern.org> wrote:
> > David Maus <dmaus@ictsoc.de> writes:
> >> Samuel Wales wrote:
> >>>   c-c c-e v H
> >>>   c-c c-e v R
> >>>
> >>> Emacs 22, latest org git master.
> >>
> >> Thanks for the report, should be fixed by now.
>
> Thanks, David.  Doesn't work for me.
>

I can at least confirm this problem: Limit to visible part of outline
tree and export regions as html does currently not work. Among all
functions that are accesible in `org-export-visible' export html as
region is the only one that (obviously) requires more than the
universal prefix argument to function properly.

I wonder: Does it make sense to combine 'limit to visible part' and
'export region as html'? If you've narrowed the outline and want to
export only a region, the regular export region function (C-c C-e R)
should do the job, shouldn't it? Because the boundaries of the region
are same.

Or am I missing a particular use case?

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #2: Type: application/pgp-signature, Size: 230 bytes --]

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

* Re: Re: bug: invalid export key in export visible region
  2011-03-15  5:15       ` David Maus
@ 2011-03-15  6:01         ` Samuel Wales
  0 siblings, 0 replies; 6+ messages in thread
From: Samuel Wales @ 2011-03-15  6:01 UTC (permalink / raw)
  To: David Maus; +Cc: Bastien, emacs-orgmode

Hi David,

Right now all of the export commands that I use are broken.

My needs are visible region to HTML, ASCII region, ASCII subtree, HTML
region, and HTML subtree.  All not to file but to temporary buffer.  I
never export a whole file.  I have the variable set, but it does not
seem to work for ASCII.  Ideally, there would be a command for each
backend that would export to region-or-subtree depending on whether
the region is active.  Having issues with export of <<...>> in
headlines.  Etc.

I can't make proper bug reports now.

The visible region to HTML is the least important.  I wanted to use it
to work around the fact that there is no way to insert TOC in HTML
region-or-subtree export.  So I wanted to fold with text hidden, then
run that command.  I don't think that is emulable with simple region
export, if I understand your meaning correctly.

It's OK, however, to just use keep-lines or something, so it's not important.

Again, the various issues with ASCII and HTML export are more
important, but I can't make bug reports on those now.

Samuel

-- 
AIDS 2.0 is here now:
  http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
I support the Whittemore-Peterson Institute (WPI)
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MRV paper.

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

end of thread, other threads:[~2011-03-15 10:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-24 18:17 bug: invalid export key in export visible region Samuel Wales
2011-03-06 18:09 ` David Maus
2011-03-06 18:34   ` Bastien
2011-03-14  3:11     ` Samuel Wales
2011-03-15  5:15       ` David Maus
2011-03-15  6:01         ` Samuel Wales

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