Re: [O] [RFC] org-agenda: Jump directly to line in case of a timestamp

2017-10-08 Thread Alan Schmitt
Hello,

On 2017-10-07 22:23, Matt Lundin  writes:

> The only difference, if I remember correctly, is that
> org-agenda-switch-to replaces the agenda buffer with the target org
> buffer, whereas org-agenda-goto shows the target org buffer in another
> window. 

One thing I would really like is the timestamp behavior of
org-agenda-goto with the windows behavior of org-agenda-switch-to.

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2017-09: 403.38, 2016-09: 401.03


signature.asc
Description: PGP signature


Re: [O] Edit whole session with org-edit-src-edit

2017-10-08 Thread Berry, Charles

> On Oct 8, 2017, at 3:58 PM, Yury G. Kudryashov  wrote:
> 
> Hello,
> 
> I want to use orgmode for literate programming with Coq.
> I like the "edit in major mode" org-edit-src-edit feature, but it
> exports only the current src block to the temprorary buffer, so it's
> impossible to debug the file in the temporary buffer using coq-mode
> (proofgeneral) "phrase by phrase" execution.
> 
> I think that some other languages may have similar problems. Say,
> code completion works better, if the whole file is available.


I used the babel jump facility proposed here:

From: Andrew Kirkpatrick 
Subject: Jumping between source blocks in a file
Message-ID: 
Archived-At: 

It is not `all blocks in one buffer', but by jumping from one to the next I get 
much the same effect.  Any changes in a block get written back to the org 
buffer when you jump to the next block.  Binding the `*-next' function to 
meta-down and `*-previous' to `meta-up' makes navigation intuitive.

HTH,

Chuck





[O] Edit whole session with org-edit-src-edit

2017-10-08 Thread Yury G. Kudryashov
Hello,

I want to use orgmode for literate programming with Coq.
I like the "edit in major mode" org-edit-src-edit feature, but it
exports only the current src block to the temprorary buffer, so it's
impossible to debug the file in the temporary buffer using coq-mode
(proofgeneral) "phrase by phrase" execution.

I think that some other languages may have similar problems. Say,
code completion works better, if the whole file is available.

I propose the following feature:

1. When the temporary buffer is created,

   - the whole session (or all the code with that will go to one file
 when tangling) is written to the buffer;
   - all the code except for the current block is marked as read-only.

2. When writing the temporary buffer back to the main file, drop the
 read-only regions.

An even more useful (though may be harder to implement) version:

1. When the temporary buffer is created,

   - then whole session is written to the temporary buffer;
   - before each block, a commented line with some meta-data (original
 buffer, line range, src-block #+NAME attribute) is inserted;
   - these commented lines are made read-only, while the blocks are left
 read-write.

2. When writing back, each block is rewritten.

This way a user may have file headers (#include in C/C++, imports in
Python etc) in one #src block, and easily modify it while editing some
"main" code in a temporary buffer.

Unfortunately, I'm new to (e)lisp, so I'm not sure whether I'll manage
to implement these features myself.
-- 
Sincerely yours,
Yury G. Kudryashov



Re: [O] Is it possible for a TODO item not to be an outline item?

2017-10-08 Thread Angel de Vicente
Hi,



Marco Wahl  writes:
> Georgiy Tugai  writes:
>
>> Inline tasks come to mind. Here's your example with inline tasks:

>> The command to insert an inline task is 'org-inlinetask-insert-task'; I
>> believe that there is no default binding.
>
> There is.  In an Org file
>
> C-h w org-inlinetask-insert-task
>
> yields typically the message
>
> org-inlinetask-insert-task is on C-c C-x t


Thanks Georgiy and Marco.

I just put (require 'org-inlinetask) in my .emacs file and the mentioned
function and keybinding are available. It is not particularly pretty how
inline tasks show in the file, but it is a solution.

Many thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] Is it possible for a TODO item not to be an outline item?

2017-10-08 Thread Marco Wahl
Georgiy Tugai  writes:

> Inline tasks come to mind. Here's your example with inline tasks:
>
> ,
> | * Installation of PC X
> | 
> | ** Hardware configuration
> | blah,blah,blah,
> | 
> | ** Software configuration
> | I intall app x, no trouble
> | 
> | I try to install app y, but no luck
> | *** TODO App Y is giving trouble, fix
> | Details about trouble...
> | *** END
> | 
> | I install app z, no trouble
> `
>
> The command to insert an inline task is 'org-inlinetask-insert-task'; I
> believe that there is no default binding.

There is.  In an Org file

C-h w org-inlinetask-insert-task

yields typically the message

org-inlinetask-insert-task is on C-c C-x t


Regards
   Marco




Re: [O] Is it possible for a TODO item not to be an outline item?

2017-10-08 Thread Georgiy Tugai
Inline tasks come to mind. Here's your example with inline tasks:

,
| * Installation of PC X
| 
| ** Hardware configuration
| blah,blah,blah,
| 
| ** Software configuration
| I intall app x, no trouble
| 
| I try to install app y, but no luck
| *** TODO App Y is giving trouble, fix
| Details about trouble...
| *** END
| 
| I install app z, no trouble
`

The command to insert an inline task is 'org-inlinetask-insert-task'; I
believe that there is no default binding.

Regards,
Georgiy

On 08 Oct, Angel de Vicente wrote:
> Hi,
> 
> I'm starting to use org for notes, and I realize that I don't know how
> to create a TODO item but without it being an outline item. Sorry if
> this is not the proper terminology. Let me explain what I would like to
> have. Let's say I have a file where I want to keep details about a new machine
> installation. I would have something like:
> 
> ,
> | * Installation of PC X
> | 
> | ** Hardware configuration
> | blah,blah,blah,
> | 
> | ** Software configuration
> | I intall app x, no trouble
> |
> | I try to install app y, but no luck
> | *** TODO App Y is giving trouble, fix
> | 
> | I install app z, no trouble 
> `
> 
> For the "software configuration" I just type notes of what I'm doing,
> and I would like to have TODO items for unfinished tasks.
> 
> If I write something like above when I collapse the TODO item, all the
> information about the app Z collapses with it. I know that I could
> create another outline level for each of the apps (or at least for "app
> y" and "app z"), but that will force me to create extra levels whenever
> I want to insert a TODO item in the middle of a section.
> 
> So basically I would like to have that TODO item but somehow without
> creating a new section. Is it possible?
> 
> Thanks,
> -- 
> Ángel de Vicente
> http://angel-de-vicente.blogspot.com/
> 
> 


signature.asc
Description: PGP signature


[O] Is it possible for a TODO item not to be an outline item?

2017-10-08 Thread Angel de Vicente
Hi,

I'm starting to use org for notes, and I realize that I don't know how
to create a TODO item but without it being an outline item. Sorry if
this is not the proper terminology. Let me explain what I would like to
have. Let's say I have a file where I want to keep details about a new machine
installation. I would have something like:

,
| * Installation of PC X
| 
| ** Hardware configuration
| blah,blah,blah,
| 
| ** Software configuration
| I intall app x, no trouble
|
| I try to install app y, but no luck
| *** TODO App Y is giving trouble, fix
| 
| I install app z, no trouble 
`

For the "software configuration" I just type notes of what I'm doing,
and I would like to have TODO items for unfinished tasks.

If I write something like above when I collapse the TODO item, all the
information about the app Z collapses with it. I know that I could
create another outline level for each of the apps (or at least for "app
y" and "app z"), but that will force me to create extra levels whenever
I want to insert a TODO item in the middle of a section.

So basically I would like to have that TODO item but somehow without
creating a new section. Is it possible?

Thanks,
-- 
Ángel de Vicente
http://angel-de-vicente.blogspot.com/




Re: [O] [PATCH v2] org-clock: Fix clock report sometimes ignoring hours before :wstart

2017-10-08 Thread Nicolas Goaziou
Hello,

Georgiy Tugai  writes:

> * lisp/org-clock (org-clocktable-steps): Fix weekly-step clock report
>   ignoring hours between start of period and start of week, when start
>   of period is on a day of week numerically less than start of week.
>
>   Clock report now always inserts a "week" starting at the start of
>   the period, if necessary; all following weeks start on the start of
>   the week as expected.
>
> TINYCHANGE

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] S5 HTML export - org9.1.1

2017-10-08 Thread Nicolas Goaziou
Hello,

Kyle Meyer  writes:

> I don't use ox-s5.el, but the I think the below fix should do.  I'll
> push it in a few days if no one objects.

I think this is an uncontroversial patch. You can go ahead and push it
right now.

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] asymmetry between org-backward-sentence and org-forward-sentence around headings

2017-10-08 Thread Nicolas Goaziou
Hello,

Mat Vibrys  writes:

> Sorry,
> my example contents does not seem to be proper. Dots are missing after all
> the bodyX. correct one looks like following:
>
> * head1
>
>   body1.
>
> * head2
>
>   body2.
>
> * head3
>
>   body3.
>
> calling `org-forward-sentence' from  goes to , while it should
> to to somewhere after head2 and before body2. Calling
> `org-backward-sentence' from  goes before body2 and after head2,
> which is correct.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: C-c C-c on deadline timestamp can do nothing useful [9.1.2 (9.1.2-elpaplus @ /Users/aaronjensen/.emacs.d/elpa/26.0/org-plus-contrib-20171004/)]

2017-10-08 Thread Nicolas Goaziou
Hello,

Aaron Jensen  writes:

> From emacs -Q:
>
> M-x org-mode
> Insert the following:
>
> * Test
>   DEADLINE: <2017-10-06 Sat>
>
> Place point on timestamp and hit C-c C-c
>
> Expected:
>
> Timestamp updated to <2017-10-06 Fri>
>
> Actual:
>
> This is displayed in *Messages*:
>
> user-error: ‘C-c C-c’ can do nothing useful here

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou