Re: [O] How do you store web pages for reference?

2017-01-16 Thread Michael Welle
Hello,

Alan Schmitt  writes:

> Hello,
>
> I'm looking for a workflow that allows me to save a web page for
> reference, ideally from Firefox. I know of org-protocol-capture-html
> (https://github.com/alphapapa/org-protocol-capture-html), which is
> perfect for pure-text pages, but I'm also looking for a solution for
> images-heavy pages. I've tried to simply save the page to PDF, but it
> does not preserve the links.
>
> Do you have suggestions?
maybe Zotero is something you want to have a look at?

Regards
hmw



Re: [O] How do you store web pages for reference?

2017-01-16 Thread Alan Schmitt
Hello Michael,

On 2017-01-16 10:22, Michael Welle  writes:

>> I'm looking for a workflow that allows me to save a web page for
>> reference, ideally from Firefox. I know of org-protocol-capture-html
>> (https://github.com/alphapapa/org-protocol-capture-html), which is
>> perfect for pure-text pages, but I'm also looking for a solution for
>> images-heavy pages. I've tried to simply save the page to PDF, but it
>> does not preserve the links.
>>
>> Do you have suggestions?
> maybe Zotero is something you want to have a look at?

Thanks a lot for the suggestion. I thought Zotero was only for
bibliography, but I see it has a nice way to save web pages. I need to
see how much of a data silo it is.

Thanks again!

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-12: 404.48, 2015-12: 401.85


signature.asc
Description: PGP signature


[O] How do you store web pages for reference?

2017-01-16 Thread Alan Schmitt
Hello,

I'm looking for a workflow that allows me to save a web page for
reference, ideally from Firefox. I know of org-protocol-capture-html
(https://github.com/alphapapa/org-protocol-capture-html), which is
perfect for pure-text pages, but I'm also looking for a solution for
images-heavy pages. I've tried to simply save the page to PDF, but it
does not preserve the links.

Do you have suggestions?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-12: 404.48, 2015-12: 401.85


signature.asc
Description: PGP signature


Re: [O] Remove Org from Emacs repository?

2017-01-16 Thread Erik Colson
Reuben Thomas  writes:

> ​Org is nearly 90kLOC, or about 6.5% of the total ELisp code currently in
> Emacs. It's bigger than CEDET, smaller than GNUS.

You hit a point here.  GNUS is indeed distributed with Emacs.  However
GNUS is even more integrated as even the repo is integrated with Emacs.
Maybe it would be the way to go to even include ORGMODE repo in Emacs ?

best
-- 
erik colson




Re: [O] How do you store web pages for reference?

2017-01-16 Thread Michael Welle
Hello,

Alan Schmitt  writes:

> Hello Michael,
>
> On 2017-01-16 10:22, Michael Welle  writes:
>
>>> I'm looking for a workflow that allows me to save a web page for
>>> reference, ideally from Firefox. I know of org-protocol-capture-html
>>> (https://github.com/alphapapa/org-protocol-capture-html), which is
>>> perfect for pure-text pages, but I'm also looking for a solution for
>>> images-heavy pages. I've tried to simply save the page to PDF, but it
>>> does not preserve the links.
>>>
>>> Do you have suggestions?
>> maybe Zotero is something you want to have a look at?
>
> Thanks a lot for the suggestion. I thought Zotero was only for
> bibliography, but I see it has a nice way to save web pages. I need to
> see how much of a data silo it is.
yes, it can store web pages, index PDF files etc. There is some Org
integration, but I don't use that.

Regards
hmw



[O] Bug: org-clone-subtree-with-time-shift not asking for time-shift

2017-01-16 Thread Karl Voit
Hi!

I wrote a blog article on how I am using Org with recurring events
or tasks:
http://karl-voit.at/2017/01/15/org-clone-subtree-with-time-shift/

As Michael Maurer stated in a comment below,
org-clone-subtree-with-time-shift does not ask for time-shift
depending on the location of the cursor.

I too had issues with not being asked for a time-shift but I was not
able to determine that this is related to cursor location when
org-clone-subtree-with-time-shift is invoked.

Here are my test cases:

*** [2017-02-28 Mi] no time-shift with cursor after [

*** <2017-02-28 Mi> no time-shift with cursor after <

*** <2017-02-28 Wed> no time-shift with cursor after <

*** <2017-02-28 Wed 09:00-10:00> no time-shift with cursor after <

*** no time-shift with cursor after [
SCHEDULED: <2017-01-16 Mon>
:PROPERTIES:
:CREATED:  [2017-01-16 Mon 12:32]
:END:

*** no time-shift with cursor after <
SCHEDULED: <2017-01-16 Mon>

"no time-shift with cursor after X" means that when the cursor is
placed before the character X, no time-shift is being asked. If the
cursor is on X or after X, the user gets asked to enter a time-shift
as desired.

Following test case works independent of the cursor position:

*** <2017-01-16 Mon> time-shift works
:PROPERTIES:
:CREATED:  [2017-01-16 Mon 12:29]
:END:

I do thing that this is a bug and not a hidden feature.


Org mode version 9.0.1 (release_9.0.1-55-g51efd7)

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




Re: [O] How do you store web pages for reference?

2017-01-16 Thread Charles A. Roelli
Hi Alan,

On Mon, Jan 16 2017 at 09:48:38 am, Alan Schmitt wrote:

> I'm looking for a workflow that allows me to save a web page for
> reference, ideally from Firefox. I know of org-protocol-capture-html
> (https://github.com/alphapapa/org-protocol-capture-html), which is
> perfect for pure-text pages, but I'm also looking for a solution for
> images-heavy pages. I've tried to simply save the page to PDF, but it
> does not preserve the links.

You might also want to try org-board:

https://github.com/scallywag/org-board

It offers archiving, diffing between archives, and anything `wget' can
do (see its manual for more details).  I haven't integrated it with
Firefox, but if you can

a) Get the current URL from Firefox,
b) Send it to Emacs,
c) Open a dedicated web bookmark file buffer, create a heading for
   the URL, and run `org-board-archive',

then org-board would take care of archiving the site exactly as you see
it in the browser.

Cheers,
Charles



Re: [O] How do you store web pages for reference?

2017-01-16 Thread Alan Schmitt
Hi Charles,

On 2017-01-16 11:38, char...@aurox.ch (Charles A. Roelli) writes:

> On Mon, Jan 16 2017 at 09:48:38 am, Alan Schmitt wrote:
>
>> I'm looking for a workflow that allows me to save a web page for
>> reference, ideally from Firefox. I know of org-protocol-capture-html
>> (https://github.com/alphapapa/org-protocol-capture-html), which is
>> perfect for pure-text pages, but I'm also looking for a solution for
>> images-heavy pages. I've tried to simply save the page to PDF, but it
>> does not preserve the links.
>
> You might also want to try org-board:
>
> https://github.com/scallywag/org-board
>
> It offers archiving, diffing between archives, and anything `wget' can
> do (see its manual for more details).  I haven't integrated it with
> Firefox, but if you can
>
> a) Get the current URL from Firefox,
> b) Send it to Emacs,
> c) Open a dedicated web bookmark file buffer, create a heading for
>the URL, and run `org-board-archive',
>
> then org-board would take care of archiving the site exactly as you see
> it in the browser.

This is great! Thanks a lot for the suggestion. I just gave it a try and
it works beautifully. (I haven't integrated it with Firefox, but I think
it should not be too difficult using org-protocol.)

Best,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-12: 404.48, 2015-12: 401.85


signature.asc
Description: PGP signature


Re: [O] How do you store web pages for reference?

2017-01-16 Thread Alan Schmitt
Hello Karl,

On 2017-01-16 15:43, Karl Voit  writes:

>  On Mon, Jan 16 2017 at 09:48:38 am, Alan Schmitt wrote:
>
>> I'm looking for a workflow that allows me to save a web page for
>> reference, ideally from Firefox. I know of org-protocol-capture-html
>> (https://github.com/alphapapa/org-protocol-capture-html), which is
>> perfect for pure-text pages, but I'm also looking for a solution for
>> images-heavy pages. I've tried to simply save the page to PDF, but it
>> does not preserve the links.
>
> I am using the Firefox plugin Shelve[1] which stores all of my web
> pages visited. Those HTML files are written with an ISO time-stamp
> in their file name. Therefore, my Memacs filename module (see sig)
> is indexing all visited URLs and they appear on my agenda.
>
> So I do have a direct link between my agenda and the HTML files of
> all web pages I have visited.
>
> [1] https://addons.mozilla.org/en-US/firefox/addon/shelve/

This plugin looks interesting, but it seems to rely on the existing
functionality of Firefox to save web pages. As I want to save a page
with its picture and CSS, I would need to choose “Web page, complete”,
but the FF documentation says “This choice allows you to view it as
originally shown with pictures, but it may not keep the HTML link
structure of the original page”, which worries me a little.

Do you only save the html or the pictures as well. If it's the latter,
have you had any issues about links not being preserved?

Thanks,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-12: 404.48, 2015-12: 401.85


signature.asc
Description: PGP signature


Re: [O] Bug: org-clone-subtree-with-time-shift not asking for time-shift

2017-01-16 Thread Karl Voit
* Karl Voit  wrote:
>
> As Michael Maurer stated in a comment below,
> org-clone-subtree-with-time-shift does not ask for time-shift
> depending on the location of the cursor.

He is using Org-mode version 8.2.10.

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




Re: [O] How do you store web pages for reference?

2017-01-16 Thread Karl Voit
 On Mon, Jan 16 2017 at 09:48:38 am, Alan Schmitt wrote:

> I'm looking for a workflow that allows me to save a web page for
> reference, ideally from Firefox. I know of org-protocol-capture-html
> (https://github.com/alphapapa/org-protocol-capture-html), which is
> perfect for pure-text pages, but I'm also looking for a solution for
> images-heavy pages. I've tried to simply save the page to PDF, but it
> does not preserve the links.

I am using the Firefox plugin Shelve[1] which stores all of my web
pages visited. Those HTML files are written with an ISO time-stamp
in their file name. Therefore, my Memacs filename module (see sig)
is indexing all visited URLs and they appear on my agenda.

So I do have a direct link between my agenda and the HTML files of
all web pages I have visited.

[1] https://addons.mozilla.org/en-US/firefox/addon/shelve/

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




Re: [O] Syncing methods for org files and org-mobile.el

2017-01-16 Thread Karl Voit
* Sean Escriva  wrote:
>
> What do you use to sync org files across different machines?

I am using WebDav for syncing with Android. I will switch from
WebDav to SyncThing since it turned out to be a very neat and easy
to use sync method with enhanced privacy.

Apple decided not to support tools like SyncThing for political
reasons, so no luck for iOS here.

For non-mobile devices, I am using unison/rsync, git, and
SyncThing.

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




[O] Dates in Tables Should be Inactive

2017-01-16 Thread Doherty, Daniel
All,

I sometimes like to compute with dates in tables.  As it now stands,
org inserts computed dates in tables as active timestamps.
This makes no sense to me since, if its in a table, one probably wants to
treat the date just as a piece of data, not something to show up
in the agenda.

For example:

| Name  | Now|
|---+|
| Bill  | <2017-01-16 Mon 08:17> |
| Sally | <2017-01-16 Mon 08:17> |
| Eddy  | <2017-01-16 Mon 08:17> |
#+TBLFM: $2=now()

Now I have three items show up in the agenda.  Shouldn't these get
inserted as inactive timestamps?



Daniel E. Doherty
Law Offices of Daniel E. Doherty
7300 W. 110th Street, Suite 930
Overland Park, KS 66210
913.338.7182 (Phone)
913.338.7164 (FAX)
ded-...@ddoherty.net


Re: [O] How do you store web pages for reference?

2017-01-16 Thread William Denton

On 16 January 2017, Alan Schmitt wrote:


Thanks a lot for the suggestion. I thought Zotero was only for
bibliography, but I see it has a nice way to save web pages. I need to
see how much of a data silo it is.


Zotero's wonderful, and with a Firefox add-on and an Emacs package you can 
easily search it and pull links into Org:


http://www.mkbehr.com/posts/a-research-workflow-with-zotero-and-org-mode/

Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.



Re: [O] Emacs hangs sometimes for no reason

2017-01-16 Thread Eric Abrahamsen
Michael Welle  writes:

> Hello,
>
> Eric Abrahamsen  writes:
> [...]
>> I used to get this a lot, and always due to some interaction between the
>> cache and flyspell. It hasn't happened to me for several months, though
>> (Emacs from git, org-plus-contrib from the package manager). Who knows
>> why...
> I have no problem (in this department ;)) with Org (Org and Emacs 25,
> both, are from git), but sometimes Emacs hangs when I write an email
> with wanderlust. It seems to hang for a minute or maybe longer, most
> times I key in a couple of C-g and then go on. I got triggered by
> flyspell, that is active in wl as well. Hmm. 

Flyspell apparently has a few mechanisms for avoiding this sort of
thing, see the option flyspell-delayed-commands and flyspell-delay. Org
already does some manipulation of delayed commands (maybe that's why I
don't see these hangs anymore...?), perhaps you could try that in wl as
well.

Eric




Re: [O] Bug: org-clone-subtree-with-time-shift not asking for time-shift

2017-01-16 Thread Kyle Meyer
Karl Voit  writes:

> Hi!
>
> I wrote a blog article on how I am using Org with recurring events
> or tasks:
> http://karl-voit.at/2017/01/15/org-clone-subtree-with-time-shift/
>
> As Michael Maurer stated in a comment below,
> org-clone-subtree-with-time-shift does not ask for time-shift
> depending on the location of the cursor.

I think org-back-to-heading should be called before the timestamp
search:

--8<---cut here---start->8---
Subject: [PATCH] org-clone-subtree-with-time-shift: Fix timestamp search

* lisp/org.el (org-clone-subtree-with-time-shift): Move to the
  beginning of the heading before the timestamp search so that the
  user will be prompted for a time shift even if point is after the
  timestamp.

This also prevents an "Invalid search bound" error if point is on the
blank line following a body-less heading:

   * single line <2017-02-28 Wed>


Reported-by: Karl Voit 

---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index 3c27f642a..f0ff80f68 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -8976,6 +8976,7 @@ (defun org-clone-subtree-with-time-shift (n  
shift)
 remove the repeater from a subtree and create a shifted clone
 with the original repeater."
   (interactive "nNumber of clones to produce: ")
+  (org-back-to-heading t)
   (let ((shift
 (or shift
 (if (and (not (equal current-prefix-arg '(4)))
@@ -9005,7 +9006,6 @@ (defun org-clone-subtree-with-time-shift (n  
shift)
 ("m" . month) ("y" . year))
 (when (eq shift-what 'week) (setq shift-n (* 7 shift-n) shift-what 'day))
 (setq nmin 1 nmax n)
-(org-back-to-heading t)
 (setq beg (point))
 (setq idprop (org-entry-get nil "ID"))
 (org-end-of-subtree t t)
-- 
2.11.0

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

-- 
Kyle



Re: [O] Bug: org-html-footnotes-section is not documented [9.0.3 (9.0.3-elpa @ /home/user1/.emacs.d/elpa/org-20161224/)]

2017-01-16 Thread Nicolas Goaziou
Hello,

user1

writes:

> [BUG] "org-html-footnotes-section" is not documented anywhere except in
> the source of ox-html.el (and autocomplete-guessable only after loading
> ox-html.el),  while the unrelated confusing "org-footnote-section" is
> documented in the org-mode manual

It is not really possible not desirable to document all variables in
Org. So, I don't consider it as a bug. All defcustoms can be easily
discovered using M-x customize-group RET org RET

What do you find confusing about `org-footnote-section'?

Regards,

-- 
Nicolas Goaziou



[O] 9.1.3.2 Template expansion: documentation issue

2017-01-16 Thread Karl Eichwalder

In 9.1.3.2 Template expansion, you say:

 %\n Insert the text entered at the nth %^{PROMPT}, where 
‘n’ is


but in my 25.1.1, you must use "%\\n".

Maybe, it is also worth noting that

 %^{PROP}p   Prompt the user for a value for property PROP.

will get inserted at the end of a list of properties, but white-space 
will stay

in place:

 :PROP_A:   a
 %^{PROP}p
 :PROP_Z:   z

==>

 :PROP_A:   a

 :PROP_Z:   z
 :PROP: foo

To avoid white-space issues and an unexpected sorting order, you must 
write (and you lose the preset values):


 :PROPERTIES:%^{PROP_A}p%^{PROP}p%^{PROP_Z}p


--
Karl Eichwalder



Re: [O] How do you store web pages for reference?

2017-01-16 Thread Scott Otterson
I use Evernote, which has handy annotation, tagging, and search functions.

The offline desktop client also has a "Copy URL" button, which puts the
Evernote server location where you stored the page into your clipboard.  I
paste that into an org-mode link.  If you're on Linux, you can copy the URL
from your browser.

Scott


Re: [O] How do you store web pages for reference?

2017-01-16 Thread Alan Schmitt
Hello,

Thanks a lot for all the great answers. I'm leaning toward org-board at
the moment, but I've saved the research workflow article with zotero (in
org-board) to look at it in more details.

I'm very glad to see these solutions, as they will allow me to depend
less on DEVONthink, which is the last piece of software that keeps me on
macOS.

Thanks again,

Alan

-- 
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂, Mauna Loa Obs. 2016-12: 404.48, 2015-12: 401.85


signature.asc
Description: PGP signature


Re: [O] Bug: org-clone-subtree-with-time-shift not asking for time-shift

2017-01-16 Thread Karl Voit
* Kyle Meyer  wrote:
>
> Thanks.  The additional check looks good, as it replaces an error with a
> more appropriate user-error and gives an error message that is a bit
> more specific.
>
> However, the re-positioning of the org-back-to-heading call seems
> problematic because the call is now wrapped in a save-excursion, but the
> downstream code expects point to be at the beginning of the heading.
>
> When I call org-clone-subtree-with-time-shift with point at the end of
>
> *** heading <2017-02-28 Wed>
> I get the following error:
> Debugger entered--Lisp error: (error "Before first headline at position 1 
> in buffer  *temp*")
[...]
> I think this is because beg isn't set to the beginning of the heading.
>
> But given Karl's recent email saying that the changes in maint fixed his
> test cases, maybe I'm missing something ...

I have to excuse myself: I tested not good enough: I only tested my
cases for being asked for the time-shift and not finished executing
the cases.

You're right, I can confirm your issue. I get "Before first headline
at position 1 in buffer  *temp*" as well.

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




[O] Process substitution in babel

2017-01-16 Thread Joe Riel
Can one use process substitution in babel? 

#+BEGIN_SRC bash
comm <(ls) <(ls)
#+END_SRC

I get an error

Syntax error: "(" unexpected

-- 
Joe Riel




Re: [O] Bug: org-clone-subtree-with-time-shift not asking for time-shift

2017-01-16 Thread Kyle Meyer
Nicolas Goaziou  writes:

> Thank you. I applied your patch with an additional check.

Thanks.  The additional check looks good, as it replaces an error with a
more appropriate user-error and gives an error message that is a bit
more specific.

However, the re-positioning of the org-back-to-heading call seems
problematic because the call is now wrapped in a save-excursion, but the
downstream code expects point to be at the beginning of the heading.

When I call org-clone-subtree-with-time-shift with point at the end of

*** heading <2017-02-28 Wed>

I get the following error:

Debugger entered--Lisp error: (error "Before first headline at position 1 
in buffer  *temp*")
  signal(error ("Before first headline at position 1 in buffer  *temp*"))
  error("Before first headline at position %d in buffer %s" 1 #)
  (condition-case nil (outline-back-to-heading invisible-ok) (error (error 
"Before first headline at position %d in buffer %s" (point) (current-buffer
  org-back-to-heading(t)
  org-end-of-subtree(t t)
  (save-excursion (org-end-of-subtree t t))
  (outline-flag-region (point) (save-excursion (org-end-of-subtree t t)) 
nil)
  org-show-subtree()
  [...]
  org-clone-subtree-with-time-shift(2)
  funcall-interactively(org-clone-subtree-with-time-shift 2)
  call-interactively(org-clone-subtree-with-time-shift nil nil)
  command-execute(org-clone-subtree-with-time-shift)

I think this is because beg isn't set to the beginning of the heading.

But given Karl's recent email saying that the changes in maint fixed his
test cases, maybe I'm missing something ...

--
Kyle



Re: [O] Process substitution in babel

2017-01-16 Thread Nick Dokos
Joe Riel  writes:

> Can one use process substitution in babel? 
>
> #+BEGIN_SRC bash
> comm <(ls) <(ls)
> #+END_SRC
>
> I get an error
>
> Syntax error: "(" unexpected

FWIW, works for me:

#+BEGIN_SRC bash
comm <(ls) <(ls)
#+END_SRC

#+RESULTS:
|   |   | 0001-ob-core-remove-cruft.patch   |
|   |   | algo.png  |
|   |   | auto  |
...

Org mode version 9.0 (release_9.0-2-g80befa @ /home/nick/elisp/org-mode/lisp/)

-- 
Nick




Re: [O] Bug: org-clone-subtree-with-time-shift not asking for time-shift

2017-01-16 Thread Nicolas Goaziou
Hello,

Kyle Meyer  writes:

> Subject: [PATCH] org-clone-subtree-with-time-shift: Fix timestamp search
>
> * lisp/org.el (org-clone-subtree-with-time-shift): Move to the
>   beginning of the heading before the timestamp search so that the
>   user will be prompted for a time shift even if point is after the
>   timestamp.
>
> This also prevents an "Invalid search bound" error if point is on the
> blank line following a body-less heading:
>
>* single line <2017-02-28 Wed>
> 

Thank you. I applied your patch with an additional check.

Regards,

-- 
Nicolas Goaziou



[O] [BUG] agenda column view summaries missing in block agendas

2017-01-16 Thread Matt Lundin
I'd like to report another bug in agenda column view summary displays.

If one uses a custom agenda command with multiple blocks, column
summaries in the agenda display do not display for all blocks.

Steps to replicate:

emacs -Q -l ~/minimal.el

Where minimal contains

--8<---cut here---start->8---
(add-to-list 'load-path "~/org-mode/lisp/")
(add-to-list 'load-path "~/org-mode/contrib/lisp/")

(require 'org)

(setq org-agenda-files '("~/test.org"))

(setq org-columns-default-format
  "%40ITEM(Task) %8Effort(Estimate){:} %8CLOCKSUM %20SCHEDULED %20DEADLINE 
%20TIMESTAMP")

(setq org-agenda-custom-commands
  '(("n" "Now"
 ((todo "TODO")
  (agenda "")
--8<---cut here---end--->8---

and ~/test.org contains...

--8<---cut here---start->8---
* TODO Buy groceries
  SCHEDULED: <2017-01-16 Mon>
  :PROPERTIES:
  :Effort:   0:10
  :END:
* TODO Mow lawn
  SCHEDULED: <2017-01-16 Mon>
* TODO Clean house
  SCHEDULED: <2017-01-16 Mon>
--8<---cut here---end--->8---

If I call the custom agenda command above and then org-agenda-columns,
no summary data is displayed for the first block (the todo block).
Summary data does appear at the top of the agenda block.

A git bisect reveals that this bug was introduced in 2015 with the
following commit. Earlier versions of org display independent column
summaries for all agenda blocks.

--8<---cut here---start->8---
f1ee487218da00962eb8b67d1f5ec1f54a5a04db is the first bad commit
commit f1ee487218da00962eb8b67d1f5ec1f54a5a04db

Author: Nicolas Goaziou 
Date:   Tue Jun 2 21:56:50 2015 +0200

org-colview: Handle user-defined inheritance in agenda colview

* lisp/org-colview.el (org-agenda-columns): Use `org-entry-get'
  instead of `org-entry-properties' to handle inheritance for
  user-provided properties.

:04 04 6348c8dd00846a942b50d6495800f5137c99620a 
eedfa94ed29964ee0af9ed22735fcef8158ebea8 M  lisp
--8<---cut here---end--->8---

Best,
Matt



[O] [BUG] No agenda column view summary shown if org-agenda-overriding-header is set

2017-01-16 Thread Matt Lundin
I find that column view summaries do not display if
org-agenda-overriding-header is set.

Steps to replicate:

emacs -Q -l ~/minimal.el

Where minimal.el contains...

--8<---cut here---start->8---
(add-to-list 'load-path "~/org-mode/lisp/")
(add-to-list 'load-path "~/org-mode/contrib/lisp/")

(require 'org)

(setq org-agenda-files '("~/test.org"))

(setq org-columns-default-format
  "%40ITEM(Task) %8Effort(Estimate){:} %8CLOCKSUM %20SCHEDULED %20DEADLINE 
%20TIMESTAMP")

(setq org-agenda-custom-commands
  '(("o" todo "TODO"
 ((org-agenda-overriding-header "Now")
--8<---cut here---end--->8---

...and ~/test.org contains...

--8<---cut here---start->8---
* TODO Buy groceries
  SCHEDULED: <2017-01-16 Mon>
  :PROPERTIES:
  :Effort:   0:10
  :END:
  [2017-01-16 Mon 15:11]
* TODO Mow lawn
  SCHEDULED: <2017-01-16 Mon>
  [2017-01-16 Mon 15:11]
* TODO Clean house
  SCHEDULED: <2017-01-16 Mon>
  [2017-01-16 Mon 15:11]
--8<---cut here---end--->8---

When calling column view, the overlay summary line with total effort
estimates is missing.

I ran a git bisect and determined that this bug was introduced with
commit 279902ca4da4fe5f0ceff801a3aab51b942b42b7 (Feb. 14, 2016).
Versions of org before this correctly display the summary line.

Best,
Matt






Re: [O] Syncing methods for org files and org-mobile.el

2017-01-16 Thread FAb
On 01/16/2017 03:48 PM, Karl Voit wrote:
> * Sean Escriva  wrote:
>> What do you use to sync org files across different machines?
> I am using WebDav for syncing with Android. I will switch from
> WebDav to SyncThing since it turned out to be a very neat and easy
> to use sync method with enhanced privacy.
>
> Apple decided not to support tools like SyncThing for political
> reasons, so no luck for iOS here.
>
> For non-mobile devices, I am using unison/rsync, git, and
> SyncThing.
>
Hi,

I used WebDav (ownCloud) with OrgMobile (Android) but for some php
reason I switched to ssh/scp and a dedicated key.

For my PCs I use git.

I works fine.


Best,

0xFAb




Re: [O] Bug: org-clone-subtree-with-time-shift not asking for time-shift (FIXED)

2017-01-16 Thread Karl Voit
Hello,

* Nicolas Goaziou  wrote:
>
> Kyle Meyer  writes:
>
>> Subject: [PATCH] org-clone-subtree-with-time-shift: Fix timestamp search
>
> Thank you. I applied your patch with an additional check.

I pulled the fix from "maint" and I re-tested my test cases: issue
is fixed at my side.

Thanks Kyle and Nicolas - another example of true awesomeness of
this community!

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




Re: [O] How do you store web pages for reference?

2017-01-16 Thread Karl Voit
Hi Alan,

* Alan Schmitt  wrote:

> On 2017-01-16 15:43, Karl Voit  writes:
>
>> I am using the Firefox plugin Shelve[1] which stores all of my web
>> pages visited. Those HTML files are written with an ISO time-stamp
>> in their file name. Therefore, my Memacs filename module (see sig)
>> is indexing all visited URLs and they appear on my agenda.
>>
>> So I do have a direct link between my agenda and the HTML files of
>> all web pages I have visited.
>>
>> [1] https://addons.mozilla.org/en-US/firefox/addon/shelve/
>
> This plugin looks interesting, but it seems to rely on the existing
> functionality of Firefox to save web pages. As I want to save a page
> with its picture and CSS, I would need to choose =E2=80=9CWeb page, complet=
> e=E2=80=9D,
> but the FF documentation says =E2=80=9CThis choice allows you to view it as
> originally shown with pictures, but it may not keep the HTML link
> structure of the original page=E2=80=9D, which worries me a little.

Well, this is a hard problem to do differently: when you save a web
page A which has an URL to B, do you want to end up with a local
copy of A that links to the local copy of B (which you might not
have at all) or an URL to online-B. The latter one is easy (no
change when downloading).

> Do you only save the html or the pictures as well. If it's the latter,
> have you had any issues about links not being preserved?

I save everything.

My settings (with self-translated terms from German):

Settings: MIME: Webpage, complete (HTML)

My default shelve:

Template: 
C:\Users\karl.voit\browser_history\%Y-%M_myhostname\%Y-%M-%DT%h.%m_%{host}_-_%{title}.html

MIME: Standard

This way, I end up with all web pages stored in my file system. When
I open an URL, the browser shows my local copy. Sometimes, included
stuff is not loaded correctly. All links point to their original
target (of course). So in case I want to stay local, I do not click
on any link in my local copy.

I mainly navigate through my agenda and its links: agenda -> local
copy -> back to agenda -> next local copy -> back to agenda -> ...

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




Re: [O] How do you store web pages for reference?

2017-01-16 Thread Robert Horn

There is also a Firefox plugin "ScrapBook X", which is a successor to
Scrapbook.  It can capture the web page alone (with links to outside
world) and allows you to select by depth or link additional pages
that are also to be captured.  (If you have infinite time and storage
with the right links you might attempt to capture the entire Internet.
Something like capture all pages to link depth 1000 comes to mind.)

I use it to capture a variety of things.  Each capture is stored in a
directory tree of html, css, etc. rooted at a time-date tag for when the
capture was performed.

I have not seen nor attempted to integrate it with org or any other
tools.  This is feasible in theory, since the file
/index.html is a valid page starting point and links are been
rewritten as appropriate.  Something like "firefox
scrapbook-root/20170115205014/index.html" would be a proper reference.
The more the page content becomes active content like javascript, the
less likely that the page capture will save what you want, but that's
inherent with active content.

It would be nice to capture more metadata (like Zotero), but it only
preserves minimal metadata about the capture.

R Horn
rjh...@alum.mit.edu