Re: [O] Use of deprecated org-log-note-marker variable in outshine

2016-01-08 Thread Nicolas Goaziou
Hello,

Kaushal Modi  writes:

>> Was it just removed, or rather renamed or replaced by something else?
>> Maybe the fix would be trivial if somebody with insights about the
>> change could give some hints?
>
> I have never needed to use this function, so I cannot comment on it. So
> asking Nicolas for help regarding this.

Actually, it was a mistake to remove the variable in the first place. As
a consequence, I re-introduced it in master.

However, it doesn't store the same location as before, i.e., it merely
points to the entry where the note is going to be added instead of the
accurate location for the note.

As a first approximation, I think 

  (with-current-buffer (marker-buffer org-log-note-marker)
(goto-char (org-log-note-marker))
(copy-marker (org-log-beginning)))

is close to what `org-log-note-marker' used to be.


Regards,

-- 
Nicolas Goaziou



[O] Source maps?

2016-01-08 Thread Davis, Peter

Hi, all,

I'm working on a moderately complex ruby-on-rails project now, and I'd 
love to be able to generate source maps. Specifically, I'd like to be 
able to generate dot files (and GraphViz diagrams) showing the file 
relationships: this controller goes with this view, etc.


I was thinking of writing a script to walk the project tree and generate 
the dot code based on rails' file naming conventions, but then I thought 
I'd like to put all this into an org-mode document, and be able to click 
on the filenames to open the files.


Has anyone tried anything like this? Or found anything similar?

Thank you,
-pd

--

Peter Davis
www.techcurmudgeon.com




Re: [O] Source maps?

2016-01-08 Thread Dave Marquardt
"Davis, Peter"  writes:

> I'm working on a moderately complex ruby-on-rails project now, and I'd
> love to be able to generate source maps. Specifically, I'd like to be
> able to generate dot files (and GraphViz diagrams) showing the file
> relationships: this controller goes with this view, etc.
>
> I was thinking of writing a script to walk the project tree and
> generate the dot code based on rails' file naming conventions, but
> then I thought I'd like to put all this into an org-mode document, and
> be able to click on the filenames to open the files.
>
> Has anyone tried anything like this? Or found anything similar?

Would a tool like 'doxygen' help here? I think it can do some of what
you're looking for. I don't know if anyone has linked doxygen to
org-mode and then published something about it.

-Dave




Re: [O] Source maps?

2016-01-08 Thread Davis, Peter


On 1/8/16 9:11 AM, Dave Marquardt wrote:

"Davis, Peter"  writes:


I'm working on a moderately complex ruby-on-rails project now, and I'd
love to be able to generate source maps. Specifically, I'd like to be
able to generate dot files (and GraphViz diagrams) showing the file
relationships: this controller goes with this view, etc.

I was thinking of writing a script to walk the project tree and
generate the dot code based on rails' file naming conventions, but
then I thought I'd like to put all this into an org-mode document, and
be able to click on the filenames to open the files.

Has anyone tried anything like this? Or found anything similar?

Would a tool like 'doxygen' help here? I think it can do some of what
you're looking for. I don't know if anyone has linked doxygen to
org-mode and then published something about it.


Thanks, Dave. Doxygen was my first thought, but I was not able to find 
any support for ruby/rails.


Thanks!
-pd

--

Peter Davis
www.techcurmudgeon.com




Re: [O] Simple copy/paste of an agenda TODO list

2016-01-08 Thread Nick Dokos
Martin Leduc  writes:

> Hello orgers,
>
> I'm wondering how to do a simple copy/paste of a todo list from
> org-mode. For instance, when I'm producing the list of all my TODOs
> with C-c a t, and then filtering it using a given tag, how can I
> simply copy and paste the resulting TODO list from the "Org Agenda"
> buffer into another one (e.g. scratch) ? I tried to simply select and
> copy, but then yanking into another buffer results in an un-filtered
> list of many TODOs (which is nearly the same as the first one
> constructed from C-c a t, but excludes all TODOs that appear before
> the first entry retained by the filter). I also tried with
> org-copy-visible, but still no success.
>
> Anybody could explain me how to do this simple task ?
>

C-x C-w (bound to org-agenda-write).

--
Nick






Re: [O] Use of deprecated org-log-note-marker variable in outshine

2016-01-08 Thread Kaushal Modi
> Actually, it was a mistake to remove the variable in the first place. As
> a consequence, I re-introduced it in master.

Thanks. That has fixed the free variable warning.

@Thorsten But now you might need to have different versions of defadvice
for org-store-log-note based on the value of org-version.


[O] Release 8.3.3

2016-01-08 Thread Bastien Guerry
Hi all,

I've released Org 8.3.3.

Thanks to everyone for their contributions, and to Nicolas
for being the de facto maintainer.

Kyle, can you check that the soon-to-be-release Emacs branch
does not contain changes that we need to backport into Org?

Rasmus, can you check with John Wiegley on how to merge this
release into Emacs?

Thanks!

-- 
 Bastien




Re: [O] Release 8.3.3

2016-01-08 Thread Kyle Meyer
Hi Bastien,

Bastien Guerry  writes:

[...]

> Kyle, can you check that the soon-to-be-release Emacs branch
> does not contain changes that we need to backport into Org?

The only commits missing on our end are two related to bumping the
copyright years in all files.  Are you OK with me bumping all the
copyright years in the Org repo today?  contrib too?

--
Kyle



Re: [O] Simple copy/paste of an agenda TODO list

2016-01-08 Thread Martin Leduc

On 2016-01-08 10:40 AM, Nick Dokos wrote:

Martin Leduc  writes:


Hello orgers,

I'm wondering how to do a simple copy/paste of a todo list from
org-mode. For instance, when I'm producing the list of all my TODOs
with C-c a t, and then filtering it using a given tag, how can I
simply copy and paste the resulting TODO list from the "Org Agenda"
buffer into another one (e.g. scratch) ? I tried to simply select and
copy, but then yanking into another buffer results in an un-filtered
list of many TODOs (which is nearly the same as the first one
constructed from C-c a t, but excludes all TODOs that appear before
the first entry retained by the filter). I also tried with
org-copy-visible, but still no success.

Anybody could explain me how to do this simple task ?



C-x C-w (bound to org-agenda-write).

--
Nick





Thanks for your response Nick, with the new org 8.3.3, org-agenda-write 
does nearly the what I want: it selects the right filtered list of 
TODOs. However, it exports all TODO's subtrees, while I want to copy 
only the list of TODOs as it appears in the agenda view. Any other ideas ?





Re: [O] Org campture recursively expands %-escapes

2016-01-08 Thread Michael Brand
Hi Nicolas

On Thu, Jan 7, 2016 at 5:35 PM, Nicolas Goaziou 
wrote:
> For now, I left some code duplication. The issue is, hopefully, fixed,
> however.

It is, thank you!

> I didn't add your ert, but if you provide a patch with
> a "test-org-feed.el" file, I can add it. It would be best to split the
> test into small ones, though, as it seems you're testing multiple things
> at once.

I'm porting test-org-capture.el to test-org-feed.el and found this
issue in org-feed-format-entry: Evaluation of

(org-feed-format-entry '(:title "success!") "%h" nil)

with Emacs 24.5 results in "Lisp error: (args-out-of-range # 4 5)". The Lisp error disappears when single stepping with
Edebug but then org-feed-format-entry returns "\\%h" instead of the
expected "\\success!". To my understanding the problem seems to be
that org-capture-escaped-% messes up the match data which leads to an
empty variable with the name "replacement". I wonder why this problem
is not showing up in org-capture-fill-template too.

Michael


Re: [O] Simple copy/paste of an agenda TODO list

2016-01-08 Thread Nick Dokos
Martin Leduc  writes:

> On 2016-01-08 10:40 AM, Nick Dokos wrote:
>> Martin Leduc  writes:
>>
>>> Hello orgers,
>>>
>>> I'm wondering how to do a simple copy/paste of a todo list from
>>> org-mode. For instance, when I'm producing the list of all my TODOs
>>> with C-c a t, and then filtering it using a given tag, how can I
>>> simply copy and paste the resulting TODO list from the "Org Agenda"
>>> buffer into another one (e.g. scratch) ? I tried to simply select and
>>> copy, but then yanking into another buffer results in an un-filtered
>>> list of many TODOs (which is nearly the same as the first one
>>> constructed from C-c a t, but excludes all TODOs that appear before
>>> the first entry retained by the filter). I also tried with
>>> org-copy-visible, but still no success.
>>>
>>> Anybody could explain me how to do this simple task ?
>>>
>>
>> C-x C-w (bound to org-agenda-write).
>>
>> --
>> Nick
>>
>>
>>
>>
>>
> Thanks for your response Nick, with the new org 8.3.3,
> org-agenda-write does nearly the what I want: it selects the right
> filtered list of TODOs. However, it exports all TODO's subtrees, while
> I want to copy only the list of TODOs as it appears in the agenda
> view. Any other ideas ?

C-h f org-agenda-write RET says:

,
| If the extension is .org, collect all subtrees
| corresponding to the agenda entries and add them in an .org file.
`

so IIUC, all you have to do is use a file name that does not have
a .org extension.

--
Nick




Re: [O] Org campture recursively expands %-escapes

2016-01-08 Thread Nicolas Goaziou
Michael Brand  writes:

> I'm porting test-org-capture.el to test-org-feed.el and found this
> issue in org-feed-format-entry: Evaluation of
>
> (org-feed-format-entry '(:title "success!") "%h" nil)
>
> with Emacs 24.5 results in "Lisp error: (args-out-of-range # *temp*> 4 5)". The Lisp error disappears when single stepping with
> Edebug but then org-feed-format-entry returns "\\%h" instead of the
> expected "\\success!". To my understanding the problem seems to be
> that org-capture-escaped-% messes up the match data which leads to an
> empty variable with the name "replacement". I wonder why this problem
> is not showing up in org-capture-fill-template too.

Fixed, too. Thank you.

Regards,



Re: [O] Simple copy/paste of an agenda TODO list

2016-01-08 Thread Martin Leduc

On 2016-01-08 05:09 PM, Nick Dokos wrote:

Martin Leduc  writes:


On 2016-01-08 10:40 AM, Nick Dokos wrote:

Martin Leduc  writes:


Hello orgers,

I'm wondering how to do a simple copy/paste of a todo list from
org-mode. For instance, when I'm producing the list of all my TODOs
with C-c a t, and then filtering it using a given tag, how can I
simply copy and paste the resulting TODO list from the "Org Agenda"
buffer into another one (e.g. scratch) ? I tried to simply select and
copy, but then yanking into another buffer results in an un-filtered
list of many TODOs (which is nearly the same as the first one
constructed from C-c a t, but excludes all TODOs that appear before
the first entry retained by the filter). I also tried with
org-copy-visible, but still no success.

Anybody could explain me how to do this simple task ?



C-x C-w (bound to org-agenda-write).

--
Nick






Thanks for your response Nick, with the new org 8.3.3,
org-agenda-write does nearly the what I want: it selects the right
filtered list of TODOs. However, it exports all TODO's subtrees, while
I want to copy only the list of TODOs as it appears in the agenda
view. Any other ideas ?


C-h f org-agenda-write RET says:

,
| If the extension is .org, collect all subtrees
| corresponding to the agenda entries and add them in an .org file.
`

so IIUC, all you have to do is use a file name that does not have
a .org extension.

--
Nick




As simple as that ;) Thank you.




Re: [O] any intelligent workflow how to use mobileorg agendas?

2016-01-08 Thread Bingo UV
On Tue, 05 Jan 2016 16:30:01 +0100
David Belohrad  wrote:

> Dear All,
> 
> i'm in org-mode for already some years. However I am still struggling
> with how to setup the workflow such, that it actually works with the
> mobileorg agenda. What I need is to display
> 
> a) daily agenda
> b) datetree with say next 90 days
> c) show specific tags
> 
> Now, with scenario (c) there is no issue at all as mobileorg can be
> setup such, that it shows within specified files tags of your
> interest. I have a problem with scenarios (a) and (b). First, I did
> not find any method, how to filter mobileorg agendas based on
> something like 'today', so displaying daily agenda I would have to
> 'somehow' force org-mobile-push to add to 'today's' items a specific
> tag. Is there any better way how to set it up?
> 
> This comes to the problems of scenario (b) as well. The best for me
> would be, if I could just display 90 days datetree exactly as I
> produce it into the diary (using capture into datetree). This works,
> but it does not serve to the purpose, as the datetree is not
> corresponding to the actual timestamp. E.g.
> 
> on 17th Dec 2015 I have made an appointment for 1st january 2016 as
> such:
> 
> * 2015
> ** 2015-12 December
> *** 2015-12-17 Thursday
>  dinner with Mia
> <2016-01-01 Thu 22:00-23:00>
> 
> I do not want to display on my mobileorg this particular datetree as
> it is provides misleading information. When I would enter into
> 2016/01/01 entry, I would not see that I shall meet with Mia, I would
> see it when entering into december's record.
> 
> So now the question is, how to setup the diary workflow such, that a
> datetree with correct timestamps would be actually generated? Hence
> what I would like to see in my mobileorg agenda is:
> 
> * 2016
> ** 2016-01 January
> *** 2016-01-01 Thu
>  22:00-23:00 dinner with Mia
> 
> so somebody asks me what i do on 1st january, I would dig into the
> datetree and I would see immediatelly this event? 
> 
> All that is quite confusing. At the same time, the capture workflow
> works pretty well, and especially with combination of capture widget
> one can capture the data really quickly and transport to emacs.
> 
> Or is there any other workflow, which would assure to act mobileorg
> as a true (readonly) agenda?
> 
> .d.
> 

Which mobileorg are you talking about? Android, iOS, or some other?

I am not sure about the other types, but Android mobileorg has a good
support for calendar integration. Just choose the calendar you want
synchronized with org-mode files - it could even be Google calendar if
that is your thing. I have setup an offline non-cloud calendar for this
purpose.

Now if somebody asks you what you do on 1st january, you open your
calendar on your mobile phone. On most mobile interfaces, digging into
tree structures is much less convenient than the tabular information
that is calendar. 

It has the advantage that you keep using your datetree structures when
you have the power of a full keyboard, emacs and large screen.

You also get other features of calendars like reminder
alarms, sharing calendar with others so that they don't have to ask you
what you do on 1st january in the first place etc.





Re: [O] Release 8.3.3

2016-01-08 Thread Bastien Guerry
Hi Kyle,

Kyle Meyer  writes:

> The only commits missing on our end are two related to bumping the
> copyright years in all files.  Are you OK with me bumping all the
> copyright years in the Org repo today?  contrib too?

Sure, thanks in advance.