Re: [O] Bug report: export to HTML does not escape * in example

2017-02-26 Thread Nicolas Goaziou
Hello,

dmg  writes:

> The following example:
>
>
> * Example
>
> #+begin_example
> hello world
> #+end_example
>
> #+begin_example
> * hello world
> #+end_example
>
> exports an HTML file where the second "hello word" is interpreted as a
> header, ignoring that it is within begin_example. See below

A star at the beginning of a line is always a headline. It has
precedence over the block around it. You need to escape the star
character:

  #+begin_example
  ,* hello world
  #+end_example

Regards,

-- 
Nicolas Goaziou



[O] Bug report: export to HTML does not escape * in example

2017-02-26 Thread dmg
The following example:


* Example

#+begin_example
hello world
#+end_example

#+begin_example
* hello world
#+end_example

exports an HTML file where the second "hello word" is interpreted as a
header, ignoring that it is within begin_example. See below

I am using org-mode version 9.0.3, under emacs-25.




Table of Contents


1. Example
2. hello world 2




1 Example


hello world 1



#+beginexample




2 hello world
2


#+endexample








-- 
--dmg

---
Daniel M. German
http://turingmachine.org


Re: [O] Bug: Latest org and goto-addr problems [9.0.5 (9.0.5-elpaplus @ /home/tim/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-26 Thread Tim Cross
I need some help with this one as I'm running out of ideas.

What I have done -

1. Completely removed all other org installs to eliminate possible 'mixed
version' issues. This includes the org bundled with emacs 25.1. Made no
difference.

2. Try opeing an org file which does not have any source blocks. All works
fine. Then tried opening the test file with a single source block and got
the same error. The source block was not 'fontified'.  Tried opening an org
file with no source block, did an org-reload and then opened the test file
with source block. Same error.

3. This 'looks like' a require load error or timing issue. After opening
the test file and getting the error message I then kill the buffer and then
open the file again for a second time, no error and the source block is now
fontified. Makes me think that perhaps org is trying to fontify the buffer
before some required library is loaded, reports an error, continues
processing and loads the missing items and from then is OK when you load
the next org file with a source block.

Question: How do you get this error to throw a backtrace? It seems
toggle-on-debug has no effect. If I can get some additional information on
when this error is being generated, I might be able to track this down
further.

Tim


On 26 February 2017 at 21:59, Tim Cross  wrote:

>
> thanks Nicolas - will go back and dig further. Not sure where to look next
> though.
>
> Tim
>
>
> On 26 February 2017 at 20:19, Nicolas Goaziou 
> wrote:
>
>> Hello,
>>
>> Tim Cross  writes:
>>
>> > There appers to be a compatibility issue between latest org-mode and
>> > goto-addr.el in emacs 25.1. Specifically, the 'goto-address-prog-mode
>> > funciton. When this function is added to prog-mode-hook, opening an org
>> > file with src blocks results in an org-mode fontification error.
>> >
>> > Minimal init.el used to reproduce this issue is
>> >
>> > ;; -- Start init.el ---
>> > (require 'package)
>> >
>> > (setq package-enable-at-startup nil)
>> > (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/";))
>> > (package-initialize)
>> >
>> > (unless (package-installed-p 'org-plus-contrib)
>> >   (package-refresh-contents)
>> >   (package-install 'org-plus-contrib))
>> >
>> > (require 'org)
>> >
>> > (require 'goto-addr)
>> >
>> > (add-hook 'prog-mode-hook 'goto-address-prog-mode)
>> >
>> > ;;  End init.el --
>> >
>> > minimal test org file used to reporduce the problem
>> >
>> > ;; --- Start test.org -
>> > * Test
>> >   This is a simple test org file
>> >
>> >   #+BEGIN_SRC emacs-lisp
>> > (message "A Test")
>> >   #+END_SRC
>> >
>> > ;;  End test.org -
>>
>> FWIW, I cannot reproduce it.
>>
>> Regards,
>>
>> --
>> Nicolas Goaziou
>>
>
>
>
> --
> regards,
>
> Tim
>
> --
> Tim Cross
>
>


-- 
regards,

Tim

--
Tim Cross


Re: [O] Searching for a headline

2017-02-26 Thread Mark Meyer
On 02/26/17 19:28, Nicolas Goaziou wrote:
> Since you're writing the back-end, you don't need to
> use :completion-function, do you?
> 
> Just write the TOC the way you like.

I defined `*org-epub-current-file*' as a special variable and set it in
the publish function. Then I extracted the headlines in
`org-epub-template' (should find a better place). And this works like a
charm.

And now I can use the same heading text multiple times and get a proper
export.

Thank you very much.

Cheers, Mark
-- 
  Mark Meyer
  m...@ofosos.org



Re: [O] Searching for a headline

2017-02-26 Thread Eric Abrahamsen
Mark Meyer  writes:

> On 02/26/17 20:32, Eric Abrahamsen wrote:
>> I put together just the very beginnings of the package, I think it's
>> capable of unzipping and re-zipping an Epub file, and generating a new
>> (empty) template directory structure. Take a look and see if anything in
>> there is interesting to you -- I think its main strength is using esxml
>> to generate the XML files, so you don't have to do that with strings.
>> The idea was that that would also make it easier to manipulate resources
>> later on, while editing. Anyway, it ain't much:
>> 
>> https://github.com/girzel/epub-mode/
>
> Oh, this is nice :) That's a very good use of esxml. I definitely like it.
>
> I thought about doing the zipping in `org-epub', but had to get some
> other stuff working first. But you already wrote the code :)

Now's when I admit to having stolen most of the zipping stuff from
ox-odt :)

And yes, I think keeping everything in sexps until the last possible
moment is going to make the whole project much more viable.

Anyway, see what you want to do with that. I'm still theoretically
interested in having a non-org-related package that can be used for
creating and editing Epub files, and then providing a secondary package
that publishes a set of Org files into Epub, using the first package.
But obviously I've been in no hurry to write this package :) Maybe your
work will inspire me to get off my butt; otherwise use the code as you
see fit.

E




Re: [O] Searching for a headline

2017-02-26 Thread Mark Meyer
On 02/26/17 20:32, Eric Abrahamsen wrote:
> I put together just the very beginnings of the package, I think it's
> capable of unzipping and re-zipping an Epub file, and generating a new
> (empty) template directory structure. Take a look and see if anything in
> there is interesting to you -- I think its main strength is using esxml
> to generate the XML files, so you don't have to do that with strings.
> The idea was that that would also make it easier to manipulate resources
> later on, while editing. Anyway, it ain't much:
> 
> https://github.com/girzel/epub-mode/

Oh, this is nice :) That's a very good use of esxml. I definitely like it.

I thought about doing the zipping in `org-epub', but had to get some
other stuff working first. But you already wrote the code :)

Cheers, Mark
-- 
  Mark Meyer
  m...@ofosos.org



Re: [O] org-babel-capitalize-example-region-markers

2017-02-26 Thread Sebastien Vauban
Hello all,

Kyle Meyer  writes:
> Kyle Meyer  writes:
>
> [...]
>
>>> Also, it seems "capitalize" is the wrong verb here?
>>
>> Something with "upcase" or "uppercase" would have been better given the
>> behavior of upcase and capitalize.
>
> Here's a patch.  I'll apply it to master in a day or two if there are no
> objections.

Shouldn't we have an option which would control the case of all
"keywords" found in `org-structure-template-alist' in one go -- and not
just the "example" template?

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Searching for a headline

2017-02-26 Thread Eric Abrahamsen
Mark Meyer  writes:

> On 02/26/17 18:28, Nicolas Goaziou wrote:
>> I don't know the EPUB exporter. You probably could modify the Org source
>> itself instead of the output.
>
> I wrote it yesterday, the code's up at
>
>  https://github.com/ofosos/org-epub
>
> it's a little crufty, because I did write it for org 8 initially.

This is cool to see! It's something I always wanted for Org. A couple of
years ago I barely got off the ground with something I was
(optimistically) calling epub-mode, which would be a dired-based mode
for creating/editing Epub files. The idea was always to later add Org
export/publish support, to do what you're doing in this package.

I put together just the very beginnings of the package, I think it's
capable of unzipping and re-zipping an Epub file, and generating a new
(empty) template directory structure. Take a look and see if anything in
there is interesting to you -- I think its main strength is using esxml
to generate the XML files, so you don't have to do that with strings.
The idea was that that would also make it easier to manipulate resources
later on, while editing. Anyway, it ain't much:

https://github.com/girzel/epub-mode/




Re: [O] Org-refile error - wrong # of arguments

2017-02-26 Thread Jay Iyer
Thanks a lot.  There was some leftover code in my .init file that caused
this weirdness and all is functional now.
I appreciate your prompt response.
-jay


On Sun, Feb 26, 2017 at 1:07 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Jay Iyer  writes:
>
> > Hi, since this morning I have been running into
> > a (wrong-number-of-arguments (0 . 1) 2) error while re-filing.  This is
> new
> > behavior, the Mac setup is unchanged, and I am unable to find a solution
> so
> > I am hoping you can point me in the right direction to fix this.  The
> > backtrace is pasted below.  Thanks, -jay
> >
> 
> > Debugger entered--Lisp error: (wrong-number-of-arguments (0 . 1) 2)
> >   org-refile-get-targets(nil nil)
> >   (setq org-refile-target-table (org-refile-get-targets default-buffer
> > excluded-entries))
>
> This code doesn't exist in actual code base. You may be experiencing
> a side-effect of a mixed installation. If that is the case, you can try
> to update Org in an otherwise clean environment (i.e., no other Org
> loaded whatsoever).
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] Where to put dates on meeting headlines

2017-02-26 Thread John Kitchin
Thanks.

It looks like the following options are useful.

1. Use a deadline

2. Use an active timestamp in the heading. The first one found seems to
be the one assigned to the heading as far as the agenda goes.

So, both of these will show up in an agenda:

* test meeting <2017-02-26 Sun>

* test meeting #2
  DEADLINE: <2017-02-26 Sun>


This command: (org-tags-view nil "DEADLINE=\"<2017-02-26>\"") will find
the second headline.

This command: (org-tags-view nil "TIMESTAMP=\"<2017-02-26>\"") will find
both headlines.


Incidentally, suppose I have this:

* test meeting #3
  DEADLINE: <2017-02-25 Sat>--<2017-02-27 Mon>

This is not found by either of the commands above. It does show up in
the agenda though, and if I jump to 02-26, it shows there. What is the
command/query to get that headline in an agenda view from a date-type of
query?



Russell Adams writes:

> I place an active timestamp under my headline for the date/time of the
> meeting, and then I always timestamp my notes using inactive
> timestamps. They are separate in the agenda but can be enabled.
>
>
> On Sat, Feb 25, 2017 at 11:45:51AM -0500, John Kitchin wrote:
>> Searching for timestamps is not the issue, it is finding the right time
>> stamp associated with a headline.  For example, suppose in the meeting
>> notes I use time stamps to note past or future events, then a headline
>> could have many time stamps, and only one is related to the date of the
>> meeting.   Also, if you have logging on, when you mark the
>> meeting done, it will insert an inactive timestamp of when you closed it.
>>
>> What I want to search for is a headline with a meeting tag, and a
>> timestamp on a particular day (even better if a range is possible since
>> I have conferences that are spread over a week for example). I might use
>> this, for example, at the end of the year to find all the scientific
>> conferences I had attended to put in an annual report, or all the
>> committee meetings, etc.
>>
>> I guess the canonical place is probably the deadline, since after that
>> time the meeting should be "done". Then I can generate an agenda with a
>> query like this for meetings in the last two months:
>>
>> meeting+DEADLINE>="<-2m>"
>>
>> Since I had to search for how to do this (probably again ;), here is a
>> PSA on where to find how to do these searches:
>>
>> http://orgmode.org/worg/org-tutorials/advanced-searching.html
>>
>>
>>
>>
>>
>>
>>
>> Charles C. Berry writes:
>>
>> > On Fri, 24 Feb 2017, John Kitchin wrote:
>> >
>> >> Suppose I use a heading to store notes on a meeting.
>> >>
>> >> Is there a canonical location to put a date so I could search for them
>> >> later?
>> >>
>> >> It seems like the date is not a deadline, or scheduled timestamp.  I
>> >> could see putting the date in the headline, but then I do not see an
>> >> obvious way to search for meetings that occurred in a time range.
>> >> Putting the date in the body is another location, but then I do not know
>> >> how it might be searched again.
>> >>
>> >> Another option is a property, which might be searchable at least with a
>> >> function.
>> >>
>> >> What do you do along these lines?
>> >>
>> >> Here is a simple example of a headline I might have, and later I might
>> >> want a report of all meetings in the month of February.
>> >>
>> >> * Group meeting <2017-02-24 Fri> :meeting:
>> >>
>> >
>> > That is a timestamp, albeit one with `:hour-start nil :minute-start nil'.
>> >
>> > Isn't this good enough to search with?
>> >
>> > #+BEGIN_SRC emacs-lisp
>> >(org-element-map
>> >(org-element-parse-buffer) 'timestamp
>> >  (lambda(x)
>> >(let
>> >  ((beg (org-element-property :begin x))
>> >   (month (org-element-property :month-start x))
>> >   (year (org-element-property :year-start x)))
>> >(format "Year %s Month %s Where %s" year month beg
>> > #+END_SRC
>> >
>> >
>> > #+RESULTS:
>> > | Year 2017 Month 2 Where 18 |
>> >
>> > HTH,
>> >
>> > Chuck
>>
>>
>> --
>> Professor John Kitchin
>> Doherty Hall A207F
>> Department of Chemical Engineering
>> Carnegie Mellon University
>> Pittsburgh, PA 15213
>> 412-268-7803
>> @johnkitchin
>> http://kitchingroup.cheme.cmu.edu
>>
>
>
> --
> Russell Adamsrlad...@adamsinfoserv.com
>
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu



Re: [O] Searching for a headline

2017-02-26 Thread Mark Meyer
On 02/26/17 19:28, Nicolas Goaziou wrote:
> Since you're writing the back-end, you don't need to
> use :completion-function, do you?
> 
> Just write the TOC the way you like.

Yay! You're completely right. The use case is, folding multiple
documents into a single EPUB (via a project), but I can easily write the
partial tocs into one/multiple temp buffers and copy them over after that.

Thanks.

Cheers, Mark

-- 
  Mark Meyer
  m...@ofosos.org



Re: [O] Searching for a headline

2017-02-26 Thread Nicolas Goaziou
Mark Meyer  writes:

> On 02/26/17 19:12, Nicolas Goaziou wrote:
>> It is also easy in Org 9 : (org-export-get-reference headline info). See
>> its use in the function above.
>
> I am under the impression that I don't have access to the `INFO' plist
> that is required by `org-export-get-reference' - at least not from the
> `:completion-function'.

Since you're writing the back-end, you don't need to
use :completion-function, do you?

Just write the TOC the way you like.

Regards,



Re: [O] Searching for a headline

2017-02-26 Thread Mark Meyer
On 02/26/17 19:12, Nicolas Goaziou wrote:
> It is also easy in Org 9 : (org-export-get-reference headline info). See
> its use in the function above.

I am under the impression that I don't have access to the `INFO' plist
that is required by `org-export-get-reference' - at least not from the
`:completion-function'.

I'll definitely looking into `org-export-collect-headlines'.

Cheers, Mark
-- 
  Mark Meyer
  m...@ofosos.org



Re: [O] Searching for a headline

2017-02-26 Thread Nicolas Goaziou
Mark Meyer  writes:

> On 02/26/17 18:28, Nicolas Goaziou wrote:
> I wrote it yesterday, the code's up at
>
>  https://github.com/ofosos/org-epub

Great.

> it's a little crufty, because I did write it for org 8 initially.
>
> Hmm, I have to think about it. I would like to either have a 1:1 mapping
> between the elements `org-element' delvers and the links the export
> backend generates or create a function that runs before the export that
> generates :custom_id properties for every element that doesn't have
> one.

Did you look at `org-html--format-toc-headline'?

Also, if you want to collect headlines above a given level, there is
`org-export-collect-headlines'.

> This was easier in org 8, since every internal link was just something
> like `sec-8-2'.

It is also easy in Org 9 : (org-export-get-reference headline info). See
its use in the function above.

Regards,



Re: [O] Searching for a headline

2017-02-26 Thread Mark Meyer
On 02/26/17 18:28, Nicolas Goaziou wrote:
> I don't know the EPUB exporter. You probably could modify the Org source
> itself instead of the output.

I wrote it yesterday, the code's up at

 https://github.com/ofosos/org-epub

it's a little crufty, because I did write it for org 8 initially.

Hmm, I have to think about it. I would like to either have a 1:1 mapping
between the elements `org-element' delvers and the links the export
backend generates or create a function that runs before the export that
generates :custom_id properties for every element that doesn't have one.

This was easier in org 8, since every internal link was just something
like `sec-8-2'.

Thanks for you quick replies.

Cheers, Mark
-- 
  Mark Meyer
  m...@ofosos.org



Re: [O] org-vcard -- possible to convert .vcf files to .org ?

2017-02-26 Thread Eric Abrahamsen
Saša Janiška  writes:

> Eric Abrahamsen  writes:
>
>> This is on the roadmap for EBDB[1]. i
>
> It’s already starred here. ;)
>
>> It already supports multiple databases, and can export to vcard. I'm
>> working on vcard import now, and when that's done it will be a native
>> Vcard database.
>
> Wonderful…thanks a lot for your work on it!!
>
>> Then CardDAV. I also use DAVDroid and really want this feature myself,
>> though I can't promise any kind of timeline!
>
> I’m so excited about the prospect of EBDB, that it might push me in the
> direction to finally learn Elisp. :-)

Glad to know you're enthusiastic, and patches are always welcome!

I do expect the DAV server stuff to take me a while, though. I've heard
the protocol is a bear, and I don't have much experiences with XML or
network programming. I expect to crib a lot of code out of org-caldave
:)

Eric




Re: [O] Searching for a headline

2017-02-26 Thread Nicolas Goaziou
Mark Meyer  writes:

> What do you mean by unique name? Is this a property that is available
> via org-element or do I have to set this in the source document?

According to its docstring, `org-publish-resolve-external-link' is used
to resolve the following links:

  [[file.org::*heading][description]]
  [[file.org::#custom-id][description]]
  [[file.org::fuzzy][description]]

It is used by the exporter, and it assumes "file.org" belongs to the
publishing project.

IOW, if you are not writing an export back-end, this is not the right
tool.

> I'm trying to link to all the headlines from a table of contents (EPUB
> expoerter). Basically I'm using a `:completion-function' to generate all
> the meta data and I need to link to most of the headlines down to a
> certain level during the toc generation.

I don't know the EPUB exporter. You probably could modify the Org source
itself instead of the output.

Regards,



Re: [O] Searching for a headline

2017-02-26 Thread Mark Meyer
On 02/26/17 17:39, Nicolas Goaziou wrote:
> There isn't. Internal links do not point to paths in the tree. You can,
> however, point to a specific headline using its unique name, if
> possible, or a custom ID otherwise.

What do you mean by unique name? Is this a property that is available
via org-element or do I have to set this in the source document?

I'm trying to link to all the headlines from a table of contents (EPUB
expoerter). Basically I'm using a `:completion-function' to generate all
the meta data and I need to link to most of the headlines down to a
certain level during the toc generation.

Thanks.

Cheers, Mark
-- 
  Mark Meyer
  m...@ofosos.org



Re: [O] Searching for a headline

2017-02-26 Thread Nicolas Goaziou
> Can you point me to a way to match a path in the tree?

There isn't. Internal links do not point to paths in the tree. You can,
however, point to a specific headline using its unique name, if
possible, or a custom ID otherwise.

Regards,



Re: [O] Searching for a headline

2017-02-26 Thread Mark Meyer
On 02/26/17 16:27, Nicolas Goaziou wrote:
> The first argument for `org-publish-external-link' is a so-called
> "fuzzy" search string. In such a string "*whatever" is meant to match
> a headline named "whatever", whatever its level is. IOW, the "*"
> character denotes a headline, not a level.

Can you point me to a way to match a path in the tree?

Thanks.

Cheers, Mark
-- 
  Mark Meyer
  m...@ofosos.org



Re: [O] ob-async

2017-02-26 Thread Nicolas Goaziou
Hello,

Alex Bennée  writes:

> Ken Mankoff  writes:
>
>> An RSS feed I follow mentioned ob-async here:
>> https://github.com/astahlman/ob-async
>>
>> I haven't seen it mentioned on the list yet. Perhaps others would be
>> interested in asynchronous Babel processing. I've seen the feature
>> requested often on this list.
>
> This is not the first attempt to my knowledge. I know of:
>
>   - my hacky attempt https://github.com/stsquad/async-org-babel
>   - John Kitchen's python specific version 
> http://kitchingroup.cheme.cmu.edu/blog/2015/11/20/Asynchronously-running-python-blocks-in-org-mode/
>   - this matlab version 
> http://emacs.stackexchange.com/questions/21301/async-execution-in-org-babel
>
> So I think there have been enough proof of concepts of using async.el
> and inserting results at a later date. I think what would be really
> useful is some feedback from the org-mode maintainers about the various
> approaches and if something generic could be included with org-mode
> itself.
>
> Any thoughts?

I never used any of these, so please take this with a grain of salt.

AFAIU, these solutions are too limited at the moment. They suffer from
the same problem as current ":cache" parameter, i.e., they seem unable
to cope with blocks that refer and execute other blocks. 

IMO, for anything serious, we need to implement something that is able
to capture the "closure" of a block. In this case, all blocks belonging
to that closure would be marked as read-only during the process, so as
to avoid race conditions. We also need to be able to retrieve all the
results from all the blocks involved.

Regards,

-- 
Nicolas Goaziou



Re: [O] Searching for a headline

2017-02-26 Thread Nicolas Goaziou
Hello,

Mark Meyer  writes:

> I'm using org-publish-external-link to look up a the link target for a
> headline. The following code works, although I'd expect it to fail:
>
> (org-publish-resolve-external-link
>   (concat "* " (org-element-property :raw-value headline))
>   source-file)
>
> ``headline'' is a headline as returned by org-element, while
> ``source-file'' is a ``.org'' file.
>
> I'd expect that this needs to be
>
> (org-publish-resolve-external-link
>   (concat (make-string (org-element-property :level headline) ?*)
>" " (org-element-property :raw-value headline))
>   source-file)
>
> I.e. for a level 3 headline it should be ``*** foobar'' and not ``*
> foobar''. ``org-publish-resolve-external-link'' uses
> ``org-export-string-to-search-cell'' internally.
>
> Can someone point me to some docuentation on how the searching works?

The first argument for `org-publish-external-link' is a so-called
"fuzzy" search string. In such a string "*whatever" is meant to match
a headline named "whatever", whatever its level is. IOW, the "*"
character denotes a headline, not a level.

Regards,

-- 
Nicolas Goaziou



[O] Searching for a headline

2017-02-26 Thread Mark Meyer
Hi,
I'm using org-publish-external-link to look up a the link target for a
headline. The following code works, although I'd expect it to fail:

(org-publish-resolve-external-link
  (concat "* " (org-element-property :raw-value headline))
  source-file)

``headline'' is a headline as returned by org-element, while
``source-file'' is a ``.org'' file.

I'd expect that this needs to be

(org-publish-resolve-external-link
  (concat (make-string (org-element-property :level headline) ?*)
   " " (org-element-property :raw-value headline))
  source-file)

I.e. for a level 3 headline it should be ``*** foobar'' and not ``*
foobar''. ``org-publish-resolve-external-link'' uses
``org-export-string-to-search-cell'' internally.

Can someone point me to some docuentation on how the searching works?

Cheers, Mark

-- 
  Mark Meyer
  m...@ofosos.org



Re: [O] location of clocking out notes

2017-02-26 Thread Nicolas Goaziou
Hello,

Gregor Zattler  writes:

> Is there a consensus now where the clocking out notes should go,
> even in future versions?  I am affected from this too and before
> I start changing the position of all the clocking out notes I
> would like to know where to move them.

I think the current location is the expected one.

Regards,

-- 
Nicolas Goaziou



[O] location of clocking out notes (was: Re: Release 9.0.5)

2017-02-26 Thread Gregor Zattler
Hi Jorge, Bastien, org-mode developers,
* Jorge Morais Neto  [10. Feb. 2017]:
> On 10 February 2017 at 11:53, Bastien  wrote:
>> Org 9.0.5, a minor bugfix release, is out.
> In Org 9.0.5, clock out notes are again stored below the corresponding
> clock line, restoring the behavior of an earlier release.  There were
> interim releases, up to 9.0.4, that stored the clock out notes /above/
> the clock line.

Is there a consensus now where the clocking out notes should go,
even in future versions?  I am affected from this too and before
I start changing the position of all the clocking out notes I
would like to know where to move them.

> Users should be warned to fix clock out notes taken by
> affected Org releases.  Existing important data following the interim
> convention need to be fixed, transposing each affected clock out note
> with the clock line.  If both conventions are mixed, then, to identify
> which clock line corresponds to each clock out note, either the user
> will need to remember the time period when they used an affected
> release, or remember directly which clock out line corresponds to each
> ambiguous note, or analise the version history of their Org files.  So
> the longer the user takes to address the problem, the greater the
> chance of data loss.  I think this issue is important.
> 
> Could we provide an Elisp function to fix this semi-automatically?

This would be great.

Ciao, Gregor
-- 
 -... --- .-. . -.. ..--.. ...-.-




Re: [O] Bug: Latest org and goto-addr problems [9.0.5 (9.0.5-elpaplus @ /home/tim/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-26 Thread Tim Cross
thanks Nicolas - will go back and dig further. Not sure where to look next
though.

Tim


On 26 February 2017 at 20:19, Nicolas Goaziou 
wrote:

> Hello,
>
> Tim Cross  writes:
>
> > There appers to be a compatibility issue between latest org-mode and
> > goto-addr.el in emacs 25.1. Specifically, the 'goto-address-prog-mode
> > funciton. When this function is added to prog-mode-hook, opening an org
> > file with src blocks results in an org-mode fontification error.
> >
> > Minimal init.el used to reproduce this issue is
> >
> > ;; -- Start init.el ---
> > (require 'package)
> >
> > (setq package-enable-at-startup nil)
> > (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/";))
> > (package-initialize)
> >
> > (unless (package-installed-p 'org-plus-contrib)
> >   (package-refresh-contents)
> >   (package-install 'org-plus-contrib))
> >
> > (require 'org)
> >
> > (require 'goto-addr)
> >
> > (add-hook 'prog-mode-hook 'goto-address-prog-mode)
> >
> > ;;  End init.el --
> >
> > minimal test org file used to reporduce the problem
> >
> > ;; --- Start test.org -
> > * Test
> >   This is a simple test org file
> >
> >   #+BEGIN_SRC emacs-lisp
> > (message "A Test")
> >   #+END_SRC
> >
> > ;;  End test.org -
>
> FWIW, I cannot reproduce it.
>
> Regards,
>
> --
> Nicolas Goaziou
>



-- 
regards,

Tim

--
Tim Cross


Re: [O] org-vcard -- possible to convert .vcf files to .org ?

2017-02-26 Thread Saša Janiška
Eric Abrahamsen  writes:

> This is on the roadmap for EBDB[1]. i

It’s already starred here. ;)

> It already supports multiple databases, and can export to vcard. I'm
> working on vcard import now, and when that's done it will be a native
> Vcard database.

Wonderful…thanks a lot for your work on it!!

> Then CardDAV. I also use DAVDroid and really want this feature myself,
> though I can't promise any kind of timeline!

I’m so excited about the prospect of EBDB, that it might push me in the
direction to finally learn Elisp. :-)


Sincerely,
Gour

-- 
Bewildered by the modes of material nature, the ignorant fully
engage themselves in material activities and become attached. But
the wise should not unsettle them, although these duties are inferior
due to the performers' lack of knowledge.




Re: [O] Bug: Latest org and goto-addr problems [9.0.5 (9.0.5-elpaplus @ /home/tim/.emacs.d/elpa/org-plus-contrib-20170210/)]

2017-02-26 Thread Nicolas Goaziou
Hello,

Tim Cross  writes:

> There appers to be a compatibility issue between latest org-mode and
> goto-addr.el in emacs 25.1. Specifically, the 'goto-address-prog-mode
> funciton. When this function is added to prog-mode-hook, opening an org
> file with src blocks results in an org-mode fontification error.
>
> Minimal init.el used to reproduce this issue is
>
> ;; -- Start init.el ---
> (require 'package)
>
> (setq package-enable-at-startup nil)
> (add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/";))
> (package-initialize)
>
> (unless (package-installed-p 'org-plus-contrib)
>   (package-refresh-contents)
>   (package-install 'org-plus-contrib))
>
> (require 'org)
>
> (require 'goto-addr)
>
> (add-hook 'prog-mode-hook 'goto-address-prog-mode)
>
> ;;  End init.el --
>
> minimal test org file used to reporduce the problem
>
> ;; --- Start test.org -
> * Test
>   This is a simple test org file
>
>   #+BEGIN_SRC emacs-lisp
> (message "A Test")
>   #+END_SRC
>
> ;;  End test.org -

FWIW, I cannot reproduce it.

Regards,

-- 
Nicolas Goaziou



Re: [O] Org-refile error - wrong # of arguments

2017-02-26 Thread Nicolas Goaziou
Hello,

Jay Iyer  writes:

> Hi, since this morning I have been running into
> a (wrong-number-of-arguments (0 . 1) 2) error while re-filing.  This is new
> behavior, the Mac setup is unchanged, and I am unable to find a solution so
> I am hoping you can point me in the right direction to fix this.  The
> backtrace is pasted below.  Thanks, -jay
>

> Debugger entered--Lisp error: (wrong-number-of-arguments (0 . 1) 2)
>   org-refile-get-targets(nil nil)
>   (setq org-refile-target-table (org-refile-get-targets default-buffer
> excluded-entries))

This code doesn't exist in actual code base. You may be experiencing
a side-effect of a mixed installation. If that is the case, you can try
to update Org in an otherwise clean environment (i.e., no other Org
loaded whatsoever).

Regards,

-- 
Nicolas Goaziou



Re: [O] orgtbl-insert-matrix, embedded

2017-02-26 Thread Uwe Brauer
>>> "Rasmus" == Rasmus   writes:

> #+ATTR_LATEX: :mode math :environment pmatrix :math-suffix \times
> :math-prefix \mathbf{y}=
> | a | b |
> | c | d |
> #+ATTR_LATEX: :mode math :environment pmatrix
> | 1 | 2 |
> | 3 | 4 |

This does not work for me in a latex buffer. In my example I used
orgtbl-mode in latex buffer. I am not talking about exporting from a org
buffer to latex buffer. But may be I misunderstood you.

Uwe