emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* #+bind: org-html-preamble
@ 2013-03-29 12:57 Dieter Wilhelm
  2013-03-29 13:00 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Dieter Wilhelm @ 2013-03-29 12:57 UTC (permalink / raw)
  To: emacs-orgmode

Dear list,

for a creating navigation bars (e. g. in duenenhof-wilhelm.de.  I used
to include the respective information e.g. with

#+SETUPFILE: "template_de.org"

and bound in template_de.org org-html-preamble with:

#+BIND: org-html-preamble "<ul id=\"Navigation\"><li><img src=\"img/Aufgescheuchtes-Huhn.png\" width=\"160\" alt=\"image\"/></li><li><a href=\"index.html\">Startseite</a></li><li><hr /></li><li><a href=\"members.html\">Hof und Lebewesen</a></li><li><a href=\"recipies.html\">Rezepte</a></li><li><a href=\"directions.html\">Lage und Anfahrt</a></li><li><a href=\"history.html\">Historie</a></li><li><a href=\"impressum.html\">Impressum / Kontakt</a></li><li><hr /></li><li><a href=\"hewi/index.html\" target=\"_blank\">HeWi Galerie</a></li><li><hr /></li><li><a href=\"dancing/index.html\" target=\"_blank\">Tanzlokalseite</a></li></ul>"

Now in 8.0-pre this mechanism is not working (nothing is included in the
html export files).  Could you please tell me if this is a bug or what I
have missed or - even better - suggest a better/more general way of
including navigation information in html exports.

-- 
Thank you & 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany

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

* Re: #+bind: org-html-preamble
  2013-03-29 12:57 #+bind: org-html-preamble Dieter Wilhelm
@ 2013-03-29 13:00 ` Nicolas Goaziou
  2013-03-29 13:10   ` Dieter Wilhelm
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2013-03-29 13:00 UTC (permalink / raw)
  To: Dieter Wilhelm; +Cc: emacs-orgmode

Hello,

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

> for a creating navigation bars (e. g. in duenenhof-wilhelm.de.  I used
> to include the respective information e.g. with
>
>
> #+SETUPFILE: "template_de.org"
>
>
> and bound in template_de.org org-html-preamble with:
>
>
> #+BIND: org-html-preamble "<ul id=\"Navigation\"><li><img src=\"img/Aufgescheuchtes-Huhn.png\" width=\"160\" alt=\"image\"/></li><li><a href=\"index.html\">Startseite</a></li><li><hr /></li><li><a href=\"members.html\">Hof und Lebewesen</a></li><li><a href=\"recipies.html\">Rezepte</a></li><li><a href=\"directions.html\">Lage und Anfahrt</a></li><li><a href=\"history.html\">Historie</a></li><li><a href=\"impressum.html\">Impressum / Kontakt</a></li><li><hr /></li><li><a href=\"hewi/index.html\" target=\"_blank\">HeWi Galerie</a></li><li><hr /></li><li><a href=\"dancing/index.html\" target=\"_blank\">Tanzlokalseite</a></li></ul>"
>
>
> Now in 8.0-pre this mechanism is not working (nothing is included in the
> html export files).  Could you please tell me if this is a bug or what I
> have missed or - even better - suggest a better/more general way of
> including navigation information in html exports.

What is the value of `org-export-allow-bind-keywords'?


Regards,

-- 
Nicolas Goaziou

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

* Re: #+bind: org-html-preamble
  2013-03-29 13:00 ` Nicolas Goaziou
@ 2013-03-29 13:10   ` Dieter Wilhelm
  2013-03-29 13:12     ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Dieter Wilhelm @ 2013-03-29 13:10 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Hello,
>
> Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

> What is the value of `org-export-allow-bind-keywords'?

org-export-allow-bind-keywords is a variable defined in `ox.el'.
Its value is nil

ahaaaa  there is a new variable! :-)

So this must be set even though

(setq org-export-allow-BIND t)

is already there, or is it replacing this variable?

Thank you for you fast reply!

-- 
Best wishes

H. Dieter Wilhelm
Darmstadt
Germany

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

* Re: #+bind: org-html-preamble
  2013-03-29 13:10   ` Dieter Wilhelm
@ 2013-03-29 13:12     ` Nicolas Goaziou
  2013-04-04 12:38       ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2013-03-29 13:12 UTC (permalink / raw)
  To: Dieter Wilhelm; +Cc: emacs-orgmode

Dieter Wilhelm <dieter@duenenhof-wilhelm.de> writes:

> org-export-allow-bind-keywords is a variable defined in `ox.el'.
> Its value is nil
>
> ahaaaa  there is a new variable! :-)
>
> So this must be set even though
>
> (setq org-export-allow-BIND t)
>
> is already there, or is it replacing this variable?

It is replacing old `org-export-allow-BIND' (note that they do not share
the same set of possible values).


Regards,

-- 
Nicolas Goaziou

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

* Re: #+bind: org-html-preamble
  2013-03-29 13:12     ` Nicolas Goaziou
@ 2013-04-04 12:38       ` Bastien
  2013-04-04 13:32         ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2013-04-04 12:38 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Dieter Wilhelm, emacs-orgmode

Hi Nicolas,

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> It is replacing old `org-export-allow-BIND' (note that they do not share
> the same set of possible values).

Is there a reason for not allowing 'confirm?

Also, I'd rather stick to the old name since it is good enough
and will spare many users with the hassle of finding out how to
correctly set the new variable, which is very sensitive.

What do you think?

-- 
 Bastien

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

* Re: #+bind: org-html-preamble
  2013-04-04 12:38       ` Bastien
@ 2013-04-04 13:32         ` Nicolas Goaziou
  2013-04-04 13:58           ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2013-04-04 13:32 UTC (permalink / raw)
  To: Bastien; +Cc: Dieter Wilhelm, emacs-orgmode

Hello,

Bastien <bzg@altern.org> writes:

> Hi Nicolas,
>
> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>
>> It is replacing old `org-export-allow-BIND' (note that they do not share
>> the same set of possible values).
>
> Is there a reason for not allowing 'confirm?

Yes. It is a pain in the neck to implement, and not vital since you can
specify it as a buffer-local variable anyway.

> Also, I'd rather stick to the old name since it is good enough
> and will spare many users with the hassle of finding out how to
> correctly set the new variable, which is very sensitive.

It isn't sensitive: it defaults to nil. Therefore a user unable to find
it is still safe. Moreover, it will be documented, won't it?

> What do you think?

I didn't like gratuitous caps in the old name. I prefer the new one.
Other than dubious aesthetics reason, I don't mind its name.


Regards,

-- 
Nicolas Goaziou

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

* Re: #+bind: org-html-preamble
  2013-04-04 13:32         ` Nicolas Goaziou
@ 2013-04-04 13:58           ` Bastien
  0 siblings, 0 replies; 7+ messages in thread
From: Bastien @ 2013-04-04 13:58 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Dieter Wilhelm, emacs-orgmode

Hi Nicolas,

Nicolas Goaziou <n.goaziou@gmail.com> writes:

> Bastien <bzg@altern.org> writes:
>
>> Hi Nicolas,
>>
>> Nicolas Goaziou <n.goaziou@gmail.com> writes:
>>
>>> It is replacing old `org-export-allow-BIND' (note that they do not share
>>> the same set of possible values).
>>
>> Is there a reason for not allowing 'confirm?
>
> Yes. It is a pain in the neck to implement, and not vital since you can
> specify it as a buffer-local variable anyway.

But it *was* implemented?  If re-using the previous implementation 
is not a pain in the neck, I'd favor re-using it.

>> Also, I'd rather stick to the old name since it is good enough
>> and will spare many users with the hassle of finding out how to
>> correctly set the new variable, which is very sensitive.
>
> It isn't sensitive: it defaults to nil. Therefore a user unable to find
> it is still safe. Moreover, it will be documented, won't it?

See below.

>> What do you think?
>
> I didn't like gratuitous caps in the old name. I prefer the new one.
> Other than dubious aesthetics reason, I don't mind its name.

I'd like to re-use the old name.  I don't like gratuitous caps
in variable names too, but here they directly refer to the normal
appearance of #+BIND.

If we re-introduce the old name, whether it defaults to nil or not
will potentially break users configuration, since a 'confirm value
will either throw an error or (more dangerously) be interpreted as t.

So, if we can re-use the old implementation and the old name, I'm 
for it as it is more flexible.

-- 
 Bastien

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

end of thread, other threads:[~2013-04-04 13:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-29 12:57 #+bind: org-html-preamble Dieter Wilhelm
2013-03-29 13:00 ` Nicolas Goaziou
2013-03-29 13:10   ` Dieter Wilhelm
2013-03-29 13:12     ` Nicolas Goaziou
2013-04-04 12:38       ` Bastien
2013-04-04 13:32         ` Nicolas Goaziou
2013-04-04 13:58           ` Bastien

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