emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* org-info.js not displaying document?
@ 2015-11-26  4:31 Greg Minshall
  2015-11-26 13:44 ` Greg Minshall
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Minshall @ 2015-11-26  4:31 UTC (permalink / raw)
  To: org mode

hi.  i'm trying to export a file using org-info.js, but i'm not getting
anything (other than the footer with my name, creation date, and an
offer to validate the file) when i open the resulting html file
(everything is *in* the html file, it just isn't showing up).  i'm using
a very simple
----
#+INFOJS_OPT: view:showall toc:2
----
a simple test case is below

i know nothing about javascript.  but Firefox (42.0) on my macosx
(10.10.5) has Tools:Web Developer:Console, which says:
----
TypeError: k.T is undefined
----
on org-info 81:85

possibly the offending section of code is:
----
k.T=k.B.getElementsByTagName("h1")[0];
----

i'm running
----
Org-mode version 8.3.2 (release_8.3.2-338-g522ec9 @
/Users/minshall/usr/share/emacs/site-lisp/org/)
----
on
----
GNU Emacs 24.5.2 (x86_64-apple-darwin14.4.0, GTK+ Version 2.18.9) of 2015-11-22 on greg-minshalls-mbp-2.local
----

any thoughts?  if i didn't see the error message, i'd be sure i was
doing something wrong (but, possibly i still am).

cheers, Greg Minshall

ps -- here is a trivial file that fails for me:
----
* testing
#+INFOJS_OPT: view:showall toc:2

this is a test

** here is something
** here is something else

with some text after it
----

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

* Re: org-info.js not displaying document?
  2015-11-26  4:31 org-info.js not displaying document? Greg Minshall
@ 2015-11-26 13:44 ` Greg Minshall
  2015-11-27 17:42   ` Matthieu Caneill
  0 siblings, 1 reply; 4+ messages in thread
From: Greg Minshall @ 2015-11-26 13:44 UTC (permalink / raw)
  To: org mode

oof.  my problem does *not* happen with "emacs -Q".  sorry about not
checking that before complaining.  (if anyone has any hints...)
----
Greg Minshall <minshall@acm.org> wrote:

> hi.  i'm trying to export a file using org-info.js, but i'm not getting
> anything (other than the footer with my name, creation date, and an
> offer to validate the file) when i open the resulting html file
> (everything is *in* the html file, it just isn't showing up).  i'm using
> a very simple
> ----
> #+INFOJS_OPT: view:showall toc:2
> ----
> a simple test case is below
> 
> i know nothing about javascript.  but Firefox (42.0) on my macosx
> (10.10.5) has Tools:Web Developer:Console, which says:
> ----
> TypeError: k.T is undefined
> ----
> on org-info 81:85
> 
> possibly the offending section of code is:
> ----
> k.T=k.B.getElementsByTagName("h1")[0];
> ----
> 
> i'm running
> ----
> Org-mode version 8.3.2 (release_8.3.2-338-g522ec9 @
> /Users/minshall/usr/share/emacs/site-lisp/org/)
> ----
> on
> ----
> GNU Emacs 24.5.2 (x86_64-apple-darwin14.4.0, GTK+ Version 2.18.9) of 2015-11-22 on greg-minshalls-mbp-2.local
> ----
> 
> any thoughts?  if i didn't see the error message, i'd be sure i was
> doing something wrong (but, possibly i still am).
> 
> cheers, Greg Minshall
> 
> ps -- here is a trivial file that fails for me:
> ----
> * testing
> #+INFOJS_OPT: view:showall toc:2
> 
> this is a test
> 
> ** here is something
> ** here is something else
> 
> with some text after it
> ----
> 

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

* Re: org-info.js not displaying document?
  2015-11-26 13:44 ` Greg Minshall
@ 2015-11-27 17:42   ` Matthieu Caneill
  2015-11-29 16:33     ` Greg Minshall
  0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Caneill @ 2015-11-27 17:42 UTC (permalink / raw)
  To: Greg Minshall; +Cc: org mode

On Thu, Nov 26, 2015 at 03:44:42PM +0200, Greg Minshall wrote:
> oof.  my problem does *not* happen with "emacs -Q".  sorry about not
> checking that before complaining.  (if anyone has any hints...)

Hi,
Why not diff-ing the 2 html files, the one produced with your settings
and the other one produced with -Q ? This may give you a pointer.

Cheers,
--
Matthieu Caneill
matt@brokenwa.re - http://matthieu.io

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

* Re: org-info.js not displaying document?
  2015-11-27 17:42   ` Matthieu Caneill
@ 2015-11-29 16:33     ` Greg Minshall
  0 siblings, 0 replies; 4+ messages in thread
From: Greg Minshall @ 2015-11-29 16:33 UTC (permalink / raw)
  To: org mode; +Cc: Matthieu Caneill

Matthew,

> Why not diff-ing the 2 html files, the one produced with your settings
> and the other one produced with -Q ? This may give you a pointer.

thanks, that helps a lot.  this *does* seem to be an org-mode bug
(modulo my brain functioning).

the actual thing that seems to break things is running the current git
version of org-mode.  if i revert to 8.2.10 (that came with emacs
24.5.2), and *really* move my local org out of the way, things work
well.  (this is effectively what -Q was doing for me.)

a diff of the two html files shows a number of differences.  but, if i
add one line from the good file to the bad html file:
----
bash greg-minshalls-mbp: {1373} diff -wu bad-foo.html try-foo.html 
--- bad-foo.html        2015-11-29 17:14:17.000000000 +0200
+++ try-foo.html        2015-11-29 17:47:57.000000000 +0200
@@ -215,6 +215,7 @@
 </head>
 <body>
 <div id="content">
+    <h1 class="title">foo</h1>
 <div id="table-of-contents">
 <h2>Table of Contents</h2>
 <div id="text-table-of-contents">
----
(the name of the file i was exporting was "foo.org"), the browser
displays the contents of my file.

and, in fact, if i add
----
#+TITLE: foo
----
my browser again displays the contents of my file.

however, even with that change, it doesn't start off showing the file in
the view:overview i was expecting.

given that i'm running off the git version, and maybe things are
changing under me, i'm not sure if i should try to track this down any
more.  but, if i should, i'm happy to debug further.  thoughts?

cheers, Greg Minshall

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

end of thread, other threads:[~2015-11-29 16:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-26  4:31 org-info.js not displaying document? Greg Minshall
2015-11-26 13:44 ` Greg Minshall
2015-11-27 17:42   ` Matthieu Caneill
2015-11-29 16:33     ` Greg Minshall

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