[O] make compile fails

2017-08-18 Thread Jarmo Hurri

Greetings.

Just pulled the latest version and tried to compile it. I get the
following error:

--
[jarmo@localhost org-mode]$ make compile
make -C doc clean;  make -C lisp clean;
make[1]: Entering directory '/home/jarmo/src/org-mode/doc'
rm -f org *.pdf *.html *_letter.tex org-version.inc org-version.tex \
  *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.pg *.pgs \
  *.toc *.tp *.tps *.vr *.vrs *.log *.html *.ps
make[1]: Leaving directory '/home/jarmo/src/org-mode/doc'
make[1]: Entering directory '/home/jarmo/src/org-mode/lisp'
rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc 
org-install.elc
rm -f *.elc
make[1]: Leaving directory '/home/jarmo/src/org-mode/lisp'
make -C lisp compile
make[1]: Entering directory '/home/jarmo/src/org-mode/lisp'
rm -f org-version.el org-loaddefs.el org-version.elc org-loaddefs.elc 
org-install.elc
install -m 644 -p  .
install: missing destination file operand after '.'
Try 'install --help' for more information.
make[1]: *** [Makefile:64: addcontrib] Error 1
make[1]: Leaving directory '/home/jarmo/src/org-mode/lisp'
make: *** [mk/targets.mk:95: compile] Error 2
--

System specs:
--
[jarmo@localhost org-mode]$ uname -a
Linux localhost.localdomain 4.12.5-300.fc26.x86_64 #1 SMP Mon Aug 7 15:27:25 
UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
[jarmo@localhost org-mode]$ dnf list installed emacs
Installed Packages
emacs.x86_64   1:25.2-3.fc26@updates
--

Any ideas?

Jarmo




[O] Suggestion for tiniest of manual changes

2017-08-18 Thread Peter Tomhas
Not being a lisp programmer, I stubbed my toe on section "9.1.3.2
Template expansion" of the manual. I was trying to use %\1, %\2 etc,
following the instructions in the second last item of the big table:
where it says:

%\1 ... %\N   Insert the text entered at the Nth %^{prompt}, where N is
a number, starting from 1.

I inserted %\1 into my template and it failed to work. After a wee
while of testing what might be wrong, I guessed that I needed to
backslash-escape the backslash, and it worked. Because that escaping
is both: a. made necessary (as I understand it) by the %\N  being in a
string; and b. only /ever/ invoked within a string, at first I
considered this to be a documentation bug, and I reckoned the entry
should start, "%\\1 ... %\\N". However, it was explained to me on
Reddit[1], that anyone who knows lisp would know to add the escape,
and that having %\\1 in the documentation could cause them to try to
use %1.

Sounds reasonable, but I still think at least a footnote could help.
As far as I can make out, the current texinfo is as follows:

%\1 @dots{} %\N @r{Insert the text entered at the Nth
%^@{@var{prompt}@}, where @code{N} is}
@r{a number, starting from 1.}

Perhaps that could become something like (apologies for poorly
formatted texinfo):

%\1 @dots{} %\N @r{Insert the text entered at the Nth
%^@{@var{prompt}@}, where @code{N} is}
@r{a number, starting from 1.@footnote{As is standard in elisp,
to insert a backslash character within a string, as is required here, it is
necessary to escape it with another backslash. So to insert %\1, %\2 and so
on, one should actually insert %\\1, %\\2, etc.}}

pt

[1] 
https://www.reddit.com/r/orgmode/comments/6uksnz/orgcapture_in_templates_n_needs_to_be_n/dltsth0/n



[O] named anchors in HTML export

2017-08-18 Thread Adam Spiers
Hi there,

I'm using org2blog and trying to mark certain parts of a blog post
with a named anchor for permanent linking. However, org2blog relies on
Org's native HTML export, so really this post is just questions about
HTML Export.

I've managed to get sections anchored using a CUSTOM_ID property.
However based on

http://orgmode.org/manual/Internal-links.html#Internal-links

I was also expecting to be able to use #+NAME: foo in front of a
headline or even other elements like paragraphs, but this doesn't
work. Is this a bug, or am I misreading the manual?

 Is there any way of creating an anchor for an arbitrary element,
short of some ugly "+HTML" hack?

By the way, this question is also being tracked here:

https://github.com/org2blog/org2blog/issues/239

Thanks!
Adam



[O] TIMEZONE property for ical export

2017-08-18 Thread Eric Abrahamsen
Nicolas Goaziou  writes:

> Hello,
>
> Eric Abrahamsen  writes:
>
>> Hey, now's the time to bring up something I've wanted to do for
>> a while:
>
> I think this deserves its own thread.

Here we go!

>> adding support for per-entry timezones to the ical export. 
>
> It sounds good.
>
>> I've attached a draft patch that shows what I mean. Basically you give
>> an entry a TIMEZONE property in the tz database format (eg
>> "Europe/London") and it will pass that on to the DTSTART/DTEND
>> properties.
>>
>> I suppose it would also be possible to have separate properties for
>> start and end timezones, then we could do plane trips!
>
> Right. But since Org doesn't support time zones, the usefulness may be
> limited.

Yeah, I'm not convinced it's worthwhile. It's really only the one
use-case, though it would be handy.

Out of curiosity, what's your stance on supporting time zones in Org's
timestamps? It would be an enormous amount of work, obviously, but in
principle?

>> +When optional argument TZ is non-nil, timezone data time will be
>> +added to the timestamp.  It can be the string \"UTC\", to use UTC
>> +time, or a string in the IANA TZ database
>> +format (e.g. \"Europe/London\").  In either case, the value of
>> +`org-icalendar-date-time-format' will be ignored."
>
> I suggest to have symbol t as an equivalent to "UTC", for compatibility
> with, e.g., ZONE in `format-time-string'.

That's pretty much what it was before I messed with it, and I was a
little confused because no callers of `org-icalendar-convert-timestamp'
ever used the optional fourth argument at all. My thinking was that
users might want to explicitly set the timezone to "UTC". To be honest
I'm not sure why they would, but I also don't know why we'd accept t
when nothing uses it. I found the whole handling of utc-or-not a bit
confusing. What do you think?

Thanks,
Eric




Re: [O] Display inline images for shortcuts links

2017-08-18 Thread Nicolas Goaziou
Hello,

Fabrice Popineau  writes:

> While we are at it, would it be possible to display an inline image when
> the image is in the contents part of the link?
>
> The rationale is that something like:
>
> [[file:book.pdf][file:cover.jpg]]
>
> is exported to html as:
>
> 
>
> The result would be a clickable image in the Org buffer the same way it is
> in HTML.
>
> Is there any drawback in doing this ?

Yes there is. Org syntax doesn't support nested links. Most export
back-ends do not either. I introduced `org-export-insert-image-links'
a few ago to let other export back-ends have nested links. See its
docstring for details.

Display would not be on par with underlying syntax. I find this
inconvenient. More inconvenient than not displaying the clickable image,
that is.

Regards,

-- 
Nicolas Goaziou0x80A93738



Re: [O] Slides with columns export problem

2017-08-18 Thread Nicolas Goaziou
Hello,

Stéphane Genaud  writes:

> I think these kind of incompatibilities should be documented, it drove
> me crazy many hours since of course the pdflatex error messages are
> totally useless to find out.

Quoting the manual

 Also, a headline with an ‘ignoreheading’ environment will have its
 contents only inserted in the output.  This special value is useful
 to have data between frames, or to properly close a ‘column’
 environment.

[...]

   Moreover, headlines handle the ‘BEAMER_COL’ property.  Its value
should be a decimal number representing the width of the column as a
fraction of the total text width.  If the headline has no specific
environment, its title will be ignored and its contents will fill the
column created.

so there is no incentive to use "ignoreheading" in conjunction with
BEAMER_COL property.

Of course, if you see an improvement on the wording, suggestions are
welcome.

Regards,

-- 
Nicolas Goaziou0x80A93738



Re: [O] Display inline images for shortcuts links

2017-08-18 Thread Fabrice Popineau
While we are at it, would it be possible to display an inline image when
the image is in the contents part of the link?

The rationale is that something like:

[[file:book.pdf][file:cover.jpg]]

is exported to html as:



The result would be a clickable image in the Org buffer the same way it is
in HTML.

Is there any drawback in doing this ?

Fabrice

2017-08-17 22:05 GMT+02:00 Fabrice Popineau :

>
>
> 2017-08-17 15:59 GMT+02:00 Nicolas Goaziou :
>
>> Hello,
>>
>> I simply extended the link search to all link abbrevs, discarding those
>> that do not ultimately match a file.
>>
>> Does it solve your issue?
>>
>>
> Yes thanks. Much lighter.
>
> I like link abbreviations, because they allow to change the reference
> point where the files are stored (if needed some day)
>
> Regards,
>
> Fabrice
>
>


Re: [O] Slides with columns export problem

2017-08-18 Thread Stéphane Genaud

Thanks Eric and Nicolas for finding out quickly.
Indeed, changing the PROPERTY: ignoreheading to block solved the issue.

I think these kind of incompatibilities should be documented, it drove me crazy 
many hours since
of course the pdflatex error messages are totally useless to find out. 

I would be pleased to help but unfortunately i am totally ignorant of these 
subtleties.

Thanks.

—Stéphane.



> On 17 Aug 2017, at 23:06, Eric S Fraga  wrote:
> 
> On Thursday, 17 Aug 2017 at 19:55, Stéphane Genaud wrote:
>> Hello,
>> i am using org-mode 8.2.10 to export to a beamer tex source. 
>> When running pdflatex my org-mode source file, and once i finally isolated 
>> the problematic bit in a single frame, pdflatex says: 
> 
> Try removing the ignoreheading property.  The new exporter (okay, not so
> new any more ;-)) defaults to ignoring the headline contents unless you
> say otherwise.
> 
> -- 
> : Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-573-g09e612



Re: [O] Patch that enables visibility settings in org-mode iCalendar export

2017-08-18 Thread Nicolas Goaziou
Hello,

Eric Abrahamsen  writes:

> Hey, now's the time to bring up something I've wanted to do for
> a while:

I think this deserves its own thread.

> adding support for per-entry timezones to the ical export. 

It sounds good.

> I've attached a draft patch that shows what I mean. Basically you give
> an entry a TIMEZONE property in the tz database format (eg
> "Europe/London") and it will pass that on to the DTSTART/DTEND
> properties.
>
> I suppose it would also be possible to have separate properties for
> start and end timezones, then we could do plane trips!

Right. But since Org doesn't support time zones, the usefulness may be
limited.

> +When optional argument TZ is non-nil, timezone data time will be
> +added to the timestamp.  It can be the string \"UTC\", to use UTC
> +time, or a string in the IANA TZ database
> +format (e.g. \"Europe/London\").  In either case, the value of
> +`org-icalendar-date-time-format' will be ignored."

I suggest to have symbol t as an equivalent to "UTC", for compatibility
with, e.g., ZONE in `format-time-string'.

Thank you for the work.


Regards,

-- 
Nicolas Goaziou



Re: [O] [PATCH] org-agenda: Add 'none setting for org-agenda-overriding-header

2017-08-18 Thread Nicolas Goaziou
Hello,

Adam Porter  writes:

> I almost did that, making it not insert a header if it was set to an
> empty string, but I thought that this approach gives more flexibility,
> allowing users to insert a blank header if they want.

"\n" would allow to insert a blank header.

> But if you would prefer it that way, I'll adjust the patch. Let me
> know.

Let's adjust the patch, then. Thank you!

Regards,

-- 
Nicolas Goaziou



Re: [O] Firefox extension "Org-capture" stopped working after update

2017-08-18 Thread Adam Porter
Colin Baxter  writes:

> Conkeror is "just" a bunch of javascripts. You need a runtime
> environment, like Gecko or XULRunner, to launch it. As we know, Mozilla is no
> longer actively developing XULRunner. One option is to use Gecko or Goanna
> (or XULRunner) in palemoon and launch conkeror by means of the app
> switch, as in
>
> palemoon --app /path/to/conkeror/application.ini "$@" 

I see, thanks!




Re: [O] Firefox extension "Org-capture" stopped working after update

2017-08-18 Thread Colin Baxter
Dear Adam,

> "Adam" == Adam Porter  writes:

Adam> Colin Baxter  writes: Hi Colin,

>> You can also launch conkeror using palemoon, and this looks like
>> the future.

Adam> Thanks, I have heard of conkeror but never got around to
Adam> trying it.  I'm not sure what you mean about launching it from
Adam> palemoon though.  Why would you do that?

Conkeror is "just" a bunch of javascripts. You need a runtime
environment, like Gecko or XULRunner, to launch it. As we know, Mozilla is no
longer actively developing XULRunner. One option is to use Gecko or Goanna
(or XULRunner) in palemoon and launch conkeror by means of the app
switch, as in

palemoon --app /path/to/conkeror/application.ini "$@" 

See http://www.conkeror.org/.

Best wishes,

-- 
--
Colin Baxter
m43...@yandex.com
GnuPG fingerprint: 68A8 799C 0230 16E7 BF68  2A27 BBFA 2492 91F5 41C8



Re: [O] org-plus-contrib, where is library-of-babel.org?

2017-08-18 Thread Bastien Guerry
Hi Kyle,

the library of Babel now lives in Worg here:
http://orgmode.org/worg/library-of-babel.html

I’ve checked and fixed references to it in Org’s documentation,
but if I missed something please let me know.

Thanks,

-- 
 Bastien