Re: [O] HTML export hides URLs in table of contents

2017-10-14 Thread Nicolas Goaziou
ConcreteVitamin  writes:

> Thanks for your quick fix!  When can I expect to see this in the next
> release?

If there is no description, the path is inserted, without link
decoration.

> (Alternatively, is there a way to patch in your commit for now?
> I'm using spacemacs.)

The patch lands Monday on ELPA.

Regards,



Re: [O] HTML export hides URLs in table of contents

2017-10-14 Thread ConcreteVitamin
Thanks for your quick fix!  When can I expect to see this in the next
release?  (Alternatively, is there a way to patch in your commit for now?
I'm using spacemacs.)

On Sat, Oct 14, 2017 at 3:33 AM Nicolas Goaziou 
wrote:

> Hello,
>
> ConcreteVitamin  writes:
>
> > I am exporting an org file to html with a table of contents.  In the
> file,
> > some subheadings are/have URLs.  There are not shown in the ToC in the
> > exported HTML page -- as if they are blank.  Exporting to latex yields no
> > such issues.
>
> Fixed. Thank you.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
That did it. Thanks.

On Sat, Oct 14, 2017 at 1:58 PM, Nicolas Goaziou 
wrote:

> Lawrence Bottorff  writes:
>
> > I don't get the image displayed -- without manually taking out the
> >
> > #+RESULTS: line. I'm saying
> >
> > #+begin_src gnuplot :exports code :file images/test1.png
> > reset
> > set title "Putting it All Together"
> > set xlabel "X"
> > set xrange [-8:8]
> > set xtics -8,2,8
> > set ylabel "Y"
> > set yrange [-2:70]
> > set ytics -20,10,70
> > f(x) = x**2
> > g(x) = x**3
> > h(x) = 10*sqrt(abs(x))
> > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> > #+end_src
> >
> >
> > #+RESULTS:
> > [[file:images/test1.png]]
> >
> > doesn't display the plot image, while. . .
> >
> > #+begin_src gnuplot :exports code :file images/test1.png
> > reset
> > set title "Putting it All Together"
> > set xlabel "X"
> > set xrange [-8:8]
> > set xtics -8,2,8
> > set ylabel "Y"
> > set yrange [-2:70]
> > set ytics -20,10,70
> > f(x) = x**2
> > g(x) = x**3
> > h(x) = 10*sqrt(abs(x))
> > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> > #+end_src
> >
> > [[file:images/test1.png]]
> >
> > . . . does display the plot image:
>
> Try
>
>   :exports both
>
> instead of
>
>   :exports code
>
> then.
>
> Regards,
>


Re: [O] HTML output of gnuplot pic

2017-10-14 Thread Nicolas Goaziou
Lawrence Bottorff  writes:

> I don't get the image displayed -- without manually taking out the
>
> #+RESULTS: line. I'm saying
>
> #+begin_src gnuplot :exports code :file images/test1.png
> reset
> set title "Putting it All Together"
> set xlabel "X"
> set xrange [-8:8]
> set xtics -8,2,8
> set ylabel "Y"
> set yrange [-2:70]
> set ytics -20,10,70
> f(x) = x**2
> g(x) = x**3
> h(x) = 10*sqrt(abs(x))
> plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> #+end_src
>
>
> #+RESULTS:
> [[file:images/test1.png]]
>
> doesn't display the plot image, while. . .
>
> #+begin_src gnuplot :exports code :file images/test1.png
> reset
> set title "Putting it All Together"
> set xlabel "X"
> set xrange [-8:8]
> set xtics -8,2,8
> set ylabel "Y"
> set yrange [-2:70]
> set ytics -20,10,70
> f(x) = x**2
> g(x) = x**3
> h(x) = 10*sqrt(abs(x))
> plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> #+end_src
>
> [[file:images/test1.png]]
>
> . . . does display the plot image:

Try 

  :exports both

instead of

  :exports code

then.

Regards,



Re: [O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
I don't get the image displayed -- without manually taking out the
#+RESULTS: line. I'm saying

#+begin_src gnuplot :exports code :file images/test1.png
reset
set title "Putting it All Together"
set xlabel "X"
set xrange [-8:8]
set xtics -8,2,8
set ylabel "Y"
set yrange [-2:70]
set ytics -20,10,70
f(x) = x**2
g(x) = x**3
h(x) = 10*sqrt(abs(x))
plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
#+end_src

#+RESULTS:
[[file:images/test1.png]]

doesn't display the plot image, while. . .

#+begin_src gnuplot :exports code :file images/test1.png
reset
set title "Putting it All Together"
set xlabel "X"
set xrange [-8:8]
set xtics -8,2,8
set ylabel "Y"
set yrange [-2:70]
set ytics -20,10,70
f(x) = x**2
g(x) = x**3
h(x) = 10*sqrt(abs(x))
plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
#+end_src

[[file:images/test1.png]]

. . . does display the plot image:

. . .





On Sat, Oct 14, 2017 at 1:30 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Lawrence Bottorff  writes:
>
> > I'm playing with the tutorial for babel-gnuplot
> > 
> ,
> > however I keep getting this upon C-c C-c:
> >
> > #+begin_src gnuplot :exports code :file images/test1.png
> > reset
> >
> > set title "Putting it All Together"
> >
> > set xlabel "X"
> > set xrange [-8:8]
> > set xtics -8,2,8
> >
> >
> > set ylabel "Y"
> > set yrange [-2:70]
> > set ytics -20,10,70
> >
> > f(x) = x**2
> > g(x) = x**3
> > h(x) = 10*sqrt(abs(x))
> >
> > plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> > #+end_src
> >
> > #+RESULTS:
> > [[file:images/test1.png]]
> >
> > Many different :results attempts keep giving me
> >
> > #+RESULTS:
> > [[file:images/test1.png]]
> >
> > . . . which doesn't export to HTML.
>
> Why? I have no trouble exporting to HTML this document.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] HTML output of gnuplot pic

2017-10-14 Thread Nicolas Goaziou
Hello,

Lawrence Bottorff  writes:

> I'm playing with the tutorial for babel-gnuplot
>  ,
> however I keep getting this upon C-c C-c:
>
> #+begin_src gnuplot :exports code :file images/test1.png
> reset
>
> set title "Putting it All Together"
>
> set xlabel "X"
> set xrange [-8:8]
> set xtics -8,2,8
>
>
> set ylabel "Y"
> set yrange [-2:70]
> set ytics -20,10,70
>
> f(x) = x**2
> g(x) = x**3
> h(x) = 10*sqrt(abs(x))
>
> plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
> #+end_src
>
> #+RESULTS:
> [[file:images/test1.png]]
>
> Many different :results attempts keep giving me
>
> #+RESULTS:
> [[file:images/test1.png]]
>
> . . . which doesn't export to HTML.

Why? I have no trouble exporting to HTML this document.

Regards,

-- 
Nicolas Goaziou



[O] HTML output of gnuplot pic

2017-10-14 Thread Lawrence Bottorff
I'm playing with the tutorial for babel-gnuplot
 ,
however I keep getting this upon C-c C-c:

#+begin_src gnuplot :exports code :file images/test1.png
reset

set title "Putting it All Together"

set xlabel "X"
set xrange [-8:8]
set xtics -8,2,8


set ylabel "Y"
set yrange [-2:70]
set ytics -20,10,70

f(x) = x**2
g(x) = x**3
h(x) = 10*sqrt(abs(x))

plot f(x) w lp lw 1, g(x) w p lw 2, h(x) w l lw 3
#+end_src

#+RESULTS:
[[file:images/test1.png]]

Many different :results attempts keep giving me

#+RESULTS:
[[file:images/test1.png]]

. . . which doesn't export to HTML. Of course removing #+RESULTS: and the
image displays. How can I get results without the #+RESULTS: label above,
which HTML export doesn't like?

LB


Re: [O] enhancement - cross-reference to another file?

2017-10-14 Thread Martin Alsinet
Hello Sharon:

On Sat, Oct 14, 2017 at 7:45 AM Sharon Kimble 
wrote:

>
> Is it possible to cross reference to another org-mode file in a
> different directory?
>

Yes, it is possible, you have to use the following syntax:

[[file:/path/to/other/org/file.org:* heading][My other org file]]

You can check the manual for the different link types and examples
http://orgmode.org/manual/External-links.html




> Example - cooking 1 has an entry for Mayonnaise, so can file 2 have an
> entry for mayonnaise but cross-referenced to cooking 1?
>
> --8<---cut here---start->8---
> id1=cooking1.org
>
> ** Mayonnaise
> [[*Mayonnaise][Mayonnaise]]
> blurb and blah
> --8<---cut here---end--->8---
>
> --8<---cut here---start->8---
> id2=cooking2.org
>
> ** Mayonnaise 3
>
> See also [[*id1:Mayonnaise][Mayonnaise]] and also [[*Mayonnaise
> 2][Mayonnaise 2]]
>
> --8<---cut here---end--->8---
>
>
In your example, the references would be written:

See also [[file:cooking1.org:** Mayonnaise][this mayonnaise recipe]] and
also [[*Mayonnaise 2][this other one]]


Re: [O] Manual errata suggestions

2017-10-14 Thread Nicolas Goaziou
Hello,

TonyMc  writes:

> I have read through the org mode manual (something I have meant to redo
> for ages) and found some typos, or sentences that might be worded more
> felicitously. I updated my org-mode from 9.1.1 to 9.1.2 part way
> through this reading, so some of the items may already have been
> fixed.

Thank you. Would you want to provide a proper patch for this?

Regards,

-- 
Nicolas Goaziou



[O] enhancement - cross-reference to another file?

2017-10-14 Thread Sharon Kimble

Is it possible to cross reference to another org-mode file in a
different directory?

Example - cooking 1 has an entry for Mayonnaise, so can file 2 have an
entry for mayonnaise but cross-referenced to cooking 1?

--8<---cut here---start->8---
id1=cooking1.org

** Mayonnaise
[[*Mayonnaise][Mayonnaise]]
blurb and blah
--8<---cut here---end--->8---

--8<---cut here---start->8---
id2=cooking2.org

** Mayonnaise 3

See also [[*id1:Mayonnaise][Mayonnaise]] and also [[*Mayonnaise 2][Mayonnaise 
2]]

--8<---cut here---end--->8---

Can it be done do you think please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
TGmeds = http://www.tgmeds.org.uk
DrugFacts = https://www.drugfacts.org.uk  
Debian 9.2, fluxbox 1.3.5-2, emacs 25.3.2, org-mode 9.1.1


signature.asc
Description: PGP signature


[O] Manual errata suggestions

2017-10-14 Thread TonyMc
Hello,

I have read through the org mode manual (something I have meant to redo
for ages) and found some typos, or sentences that might be worded more
felicitously. I updated my org-mode from 9.1.1 to 9.1.2 part way
through this reading, so some of the items may already have been fixed.

My suggestions are after the -> below, with headings for the relevant
section:


2.5 Structure Editing

subtrees of the same level than the marked subtree  -> of the same level
as the marked subtree

2.10 Footnotes

If it is a the definition  -> at the definition

3.2 Column width and alignment

In the example of fixed width columns, should there be a <6> in the top
row of the left-hand table?

3.3 Column groups

Why does the header line of the first table wrap e.g., sqrt(N) in
tildes, but not the header line in the second table?

3.5.8 Editing and debugging formulas

If you would like see  -> like to see

3.5.10 Advanced features

Such names must start by an alphabetic character  -> start with an 

5.1 Basic TODO functionality

See also see  -> See also 

5.2.3 Multiple keyword sets in one file

‘S-’ and ‘S-’ and walk through  -> omit second and

7.5.1.2 Column attributes

If more than one summary type apply to the property  -> applies to

9.1 Capture

John Wiegley excellent  -> Wiegley's

9.4 Protocols for external access

Org protocol is a mean to trigger  -> a means (or "provides a way to
trigger")

10.1 Agenda files

When with a prefix argument - > When used with (or when called with)

11.4 Images and Tables

if a link to an image files  -> an image file

11.6 Special symbols

Entities may also be used as a may to escape markup  -> as a way

12.7 ASCII/Latin-1/UTF-8 export

This is the most simplest and direct text output.  -> simplest and most
direct

It does not contain any Org markup either.  -> omit either

12.8 Beamer export

tree structure into a high-quality interactive slides -> omit "a"

12.8.4 Beamer specific syntax

at the beginning the object -> of the object

12.12.5 Applying custom styles

To apply and ODT style -> an ODT style

12.12.8 Images in ODT export

The dimensions of this size is measured in centimeters.  -> are measured
 
12.12.12 Advanced topics in ODT export - Creating one-off styles

Such direct formatting are useful -> is useful

12.12.12 Advanced topics in ODT export - Customizing tables in ODT
export

Footnote references and numbering of steps in a sequence are confused in
this section.

12.14.6 Headings and sectioning structure

to an equivalent Texinfo structuring commands.  -> omit "an"

12.17 Advanced configuration

specific parts of conversion process  -> the conversion process

13.1.2 Sources and destinations for files

There is no space between the variable and its description in this list.

13.1.4 Publishing action

But you also can publish  -> But you can also publish

(Footnote 1) If the publishing directory is the same than the source
directory, ‘file.org’ will be exported as ‘file.org.org’, so probably
don’t want to do this.  -> If the publishing directory is the same as
the source directory... so you probably don't want...

13.1.6 Links between published files

Eventually, links between published documents  -> Finally instead of
Eventually?

13.2 Uploading files

preferable not to use the built in  -> built-in

14.7 Languages

Additional documentation for some languages are at  -> is at

14.8.2 Specific header arguments

In some subsections, examples are introduced with "Usage example".  In
others they are introduced with "Example".  It might be better to be
consistent here.

14.8.2.1 ‘:var’

query and pass file name  -> pas the file name

14.8.2.5 ‘:file-ext’

auto generated  -> auto-generated

14.8.2.7 ‘:dir’ and remote execution

supply a remote s directory  -> should "s" be omitted here?

14.8.2.22 ‘:rownames’

can take on values ‘yes’ or ‘no’ values.  -> remove one of the "values"

14.8.2.27 ‘:post’

When ‘:post’ has any value, Org binds the results to ‘*this*’ variable
for easy passing to *note var:: header argument specifications.  -> This
sentence seems to be missing at least one word.

or for even  -> or even for

14.8.2.28 ‘:prologue’

See also see  -> omit one "see"

14.9.1.2 ‘:results output’

as as text results  -> omit one "as"

14.9.2.1 ‘:results value’

Even those that do support, such as ‘Python’ and ‘Haskell’, they impose
-> Suggest: "Even languages such as 'Python' and 'Haskell' that do
support interactive evaluation impose..."

14.9.2.2 ‘:results output’

Org concatenates whatever text output emitted by the interpreter  ->
the output from the interpreter

Note that this collection is not the same as collected from  -> as that
collected from (or "that would be collected from")

15.3 Speed keys

Emacs keychords  -> Suggest: Emacs key chords

This section also refers the reader to the docstring for the variable
org-speed-commands-user, which contains the following typo:
The car if each entry  -> The car of each entry

15.4 Code evaluation and security issues

Re: [O] function for inserting a block

2017-10-14 Thread Nicolas Goaziou
Hello,

Eric Abrahamsen  writes:

> How does this look?

Thank you! I have some questions and remarks.

> * etc/ORG-NEWS: Mention in news.

This doesn't need to be added to the commit message.

> +Do not be put off by having to remember the source block syntax.  Org mode
> +offers two ways of speeding up the creation of @samp{src} code blocks:

  src code blocks

is enough, IMO. There are may of them across the manual, and it just
makes reading more tedious.

> +@findex org-insert-structure-template

I would also add

  @kindex C-c C-x t

> +  (let ((s (copy-marker (if (use-region-p)
> + (region-beginning)
> +   (point

Does it really need to be a marker? AFAICT, nothing really changes this
position.

> +(back-to-indentation)
> +(insert (format "#+BEGIN_%s\n"
> + type))
> +(indent-to column)

What about

  (beginning-of-line)
  (indent-to column)
  (insert (format "#+BEGIN_%s\n" type))

?

It avoids `back-to-indentation'.

> +(if (bolp)
> + (progn
> +   (skip-chars-backward " \n\t")
> +   (forward-char))
> +  (end-of-line)
> +  (insert "\n"))

I don't understand this part. In particular, the `forward-char' looks
wrong. Do you mean `forward-line' ? If so, do you handle the case where
buffer doesn't end with a newline character?

> +(set-marker s nil)

See above.

Regards,

-- 
Nicolas Goaziou



Re: [O] HTML export hides URLs in table of contents

2017-10-14 Thread Nicolas Goaziou
Hello,

ConcreteVitamin  writes:

> I am exporting an org file to html with a table of contents.  In the file,
> some subheadings are/have URLs.  There are not shown in the ToC in the
> exported HTML page -- as if they are blank.  Exporting to latex yields no
> such issues.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: Wrong type argument: listp, "" [9.1.2 (9.1.2-7-g027cfc-elpa @ /home/sane/.emacs.d/elpa/org-20171009/)]

2017-10-14 Thread Nicolas Goaziou
Hello,

Michael Ziems  writes:

> i wanted to normally start the org-agenda, how i always do it and now it
> just runs into the mentioned lisp error: Wrong type argument: listp, ""

[...]

>  org-agenda-time-grid '((daily today require-timed) ""
>             (800 1000 1200 1400 1600 1800 2000))

`org-agenda-time-grid' changed in Org 9.1. You may want to have a look
into ORG-NEWS.

Regards,

-- 
Nicolas Goaziou



Re: [O] tiny bug in ox-koma-letter.el

2017-10-14 Thread Nicolas Goaziou
Hello,

Alan Schmitt  writes:

> I'm exporting a letter without a to-address, and it generates a spurious
> "mbox" in the letter. I found that if I change line 708 of
> ox-koma-letter.el from "mbox{}" to "\\mbox{}" the problem goes away.
> Is this a (known) bug?

It looks like a typo. Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] The error "Opening input file: No such file or directory" should show the source org file

2017-10-14 Thread Nicolas Goaziou
Hello,

Joon Ro  writes:

> I often see the error message: "Opening input file: No such file or
> directory" for one of the org files that has wrong file path for
> a #+SETUPFILE. It usually happens when I change the path of the setup
> file which is used by multiple org files.
>
> However, currently it is hard to locate the file where the error is
> originated from. I think it would be great if the error message shows
> the location of the file as well.

Fixed. Thank you.

Note that you can also use M-x org-lint to find wrong SETUPFILE keywords
in the document.

Regards,

-- 
Nicolas Goaziou



Re: [O] Solved: Bug: org-encrypt-entry fails [9.1.2 (9.1.2-elpa @ /Users/dmm/.emacs.d/elpa/org-20171004/)]

2017-10-14 Thread David Maslen
I’m sorry I don’t know how to implement, or provide a patch, but I checked 
*messages* for a clue to what was going wrong.
I now think this isn’t an org issue, but the epa functions worked, and the 
org-encrypt (which I read uses epg) failed silently, so I reported here.

If the *messages* said something like “prompting for passphrase”, I’d have 
realised earlier that was not occurring.



> On 14 Oct 2017, at 7:33 pm, Nicolas Goaziou  wrote:
> 
> Hello,
> 
> David Maslen  writes:
> 
>> Problem was that in graphical mode I saw no password prompt. Failed without 
>> a useful failure message.
>> Perhaps org-crypt could be improved to catch this situation?
> 
> What would you suggest?
> 
> Regards,
> 
> -- 
> Nicolas Goaziou




Re: [O] Solved: Bug: org-encrypt-entry fails [9.1.2 (9.1.2-elpa @ /Users/dmm/.emacs.d/elpa/org-20171004/)]

2017-10-14 Thread Nicolas Goaziou
Hello,

David Maslen  writes:

> Problem was that in graphical mode I saw no password prompt. Failed without a 
> useful failure message.
> Perhaps org-crypt could be improved to catch this situation?

What would you suggest?

Regards,

-- 
Nicolas Goaziou