Re: [BUG] error: Invalid search bound [9.6.11 ( @ /home/nikratio/.emacs.d/elpa/28.2/develop/org-9.6.11/)]

2023-12-05 Thread Nikolaus Rath



On Mon, 4 Dec 2023, at 14:53, Ihor Radchenko wrote:
> "Nikolaus Rath"  writes:
>
>> When running org-agenda and pressing "x" (see below for configuration), I am 
>> occasionally getting the following error:
>>
>> Warning (org-element-cache): org-element--cache: Added org-data parent to 
>> non-headline element:
>> ...
>>
>> Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, 
>> cairo version 1.16.0)
>> of 2023-05-14, modified by Debian
>> Package: Org mode version 9.6.11 ( @ 
>> /home/nikratio/.emacs.d/elpa/28.2/develop/org-9.6.11/)
>
> May you please try the latest bugfix branch and let us know if you are
> still seeing the warning?

Thanks for the quick response! Could you point me in the direction of how to do 
that? I'm a bit confused by the layering of Emac's builtin-org, the Elpa 
installed one (which I seem to be using) and Spacemacs (whih I think takes over 
management of Emacs packages). 

Should it work to clone the git branch and do "(add-to-list 'load-path 
"~/src/org-mode/lisp") or will this result in some terrible mess?

Best,
-Nikolaus



[BUG] error: Invalid search bound [9.6.11 ( @ /home/nikratio/.emacs.d/elpa/28.2/develop/org-9.6.11/)]

2023-11-30 Thread Nikolaus Rath
Hi,

When running org-agenda and pressing "x" (see below for configuration), I am 
occasionally getting the following error:

Warning (org-element-cache): org-element--cache: Added org-data parent to 
non-headline element: (paragraph (:begin 26744 :end 26830 :contents-begin 26744 
:contents-end 26829 :post-blank 1 :post-affiliated 26744 :mode property-drawer 
:granularity element :cached t :parent (section (:begin 26715 :end 27120 
:contents-begin 26715 :contents-end 27119 :robust-begin 26715 :robust-end 27117 
:post-blank 1 :post-affiliated 26715 :mode section :granularity element :cached 
nil :parent (headline (:raw-value "Sort out radiator pipe" :begin 26679 :end 
27120 :pre-blank 0 :contents-begin 26715 :contents-end 27119 :robust-begin 
26743 :robust-end 27117 :level 2 :priority 66 :tags nil :todo-keyword #("TODO" 
0 4 (fontified nil line-prefix #("*" 0 1 (face org-indent)) wrap-prefix #("*** 
" 0 1 (face org-indent) 1 4 (face org-indent)) 
org-fold--spec-org-fold-outline--94869273637456887 org-fold-outline 
isearch-open-invisible org-fold-core--isearch-show 
isearch-open-invisible-temporary org-fold-core--isearch-show-temporary)) 
:todo-type todo :post-blank 1 :footnote-section-p nil :archivedp nil 
:commentedp nil :post-affiliated 26679 :scheduled (timestamp (:type active 
:raw-value "<2023-11-28 Tue>" :year-start 2023 :month-start 11 :day-start 28 
:hour-start nil :minute-start nil :year-end 2023 :month-end 11 :day-end 28 
:hour-end nil :minute-end nil :begin 27067 :end 27083 :post-blank 0)) :title 
"Sort out radiator pipe" :mode nil :granularity element :cached nil :parent 
(headline (:raw-value "Haus & Garten" :begin 19640 :end 27164 :pre-blank 0 
:contents-begin 19656 :contents-end 27164 :robust-begin 19658 :robust-end 27162 
:level 1 :priority nil :tags nil :todo-keyword nil :todo-type nil :post-blank 0 
:footnote-section-p nil :archivedp nil :commentedp nil :post-affiliated 19640 
:title "Haus & Garten" :mode nil :granularity element 
:org-element--cache-sync-key (0 . 19787) :cached nil :parent (org-data (:begin 
1 :contents-begin 1 :contents-end 37599 :end 37600 :robust-begin 3 :robust-end 
37597 :post-blank 1 :post-affiliated 1 :path 
"/home/nikratio/in-progress/org/todo.org" :mode org-data :CATEGORY "todo" 
:parent nil :cached t :org-element--cache-sync-key nil 
:org-element--cache-sync-key (0 . 26826))) :org-element--cache-sync-key (0 . 
26861))) :org-element--cache-sync-key (0 . 26891)))
If this warning appears regularly, please report the warning text to Org mode 
mailing list (M-x org-submit-bug-report). Disable showing Disable logging
Warning (org-element-cache): org-element--cache: Org parser error in 
todo.org::#. Resetting.
The error was: (error "Invalid search bound (wrong side of point)")
Backtrace:
nil
Please report this to Org mode mailing list (M-x org-submit-bug-report). 
Disable showing Disable logging


Emacs  : GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.37, 
cairo version 1.16.0)
of 2023-05-14, modified by Debian
Package: Org mode version 9.6.11 ( @ 
/home/nikratio/.emacs.d/elpa/28.2/develop/org-9.6.11/)

current state:
==
(setq
org-link-elisp-confirm-function 'yes-or-no-p
org-directory "~/in-progress/org"
org-bibtex-headline-format-function #[257 "\300%1\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
org-log-done 'time
org-fontify-done-headline nil
org-agenda-custom-commands '(("x" tags-tree
   
#("TODO=\"TODO\"<>{.+}<>{.+}<>{[CD]}|SCHEDULED<=\"\"<>{[CD]}|DEADLINE<=\"<+14d>\""
 23 27 (regexp t) 38 42 (regexp t) 53 59 
(regexp t) 89 95 (regexp t))
   )
  ("X" tags-tree 
#("TODO=\"TODO\"<>{.+}|SCHEDULED<=\"\"" 23 27 (regexp t
org-agenda-files '("~/in-progress/org")
org-persist-after-read-hook '(org-element--cache-persist-after-read)
org-export-before-parsing-hook '(org-attach-expand-links)
org-cycle-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-archive-hook '(org-attach-archive-delete-maybe)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines 
org-cycle-optimize-window-after-visibility-change
  org-cycle-display-inline-images)
org-persist-before-read-hook '(org-element--cache-persist-before-read)
org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-fold-show-all append local] 5]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes #[0 
"\301\211%10\207" [imenu-create-index-function org-imenu-get-tree] 2]
 flyspell-mode spacemacs/load-yasnippet toc-org-enable 
dotspacemacs//prettify-spacemacs-docs org-superstar-mode)
org-ctrl-k-protect-subtree 'ask
org-priority-lowest 68
org-agenda-span 'fortnight
org-ellipsis "⤵"
org-confirm-shell-link-function 'yes-or-no-p

[O] How to fix path to figures in included files

2016-10-12 Thread Nikolaus Rath
Hi,

When using INCLUDE in an org-file to include a file in a sub-directory
(e.g. "#+INCLUDE: preamble/preamble.org"), and the included file in turn
refers to a file ("[[./figure1.png]]"), then the LaTeX export for the
top-level org file refers to the file with its path relative to the
included .org file rather than the top-level org file for which LaTeX is
generated.

Is there a way to fix this?

In other words, if I have a file "main.org" that contains just

,
| #+INCLUDE: preamble/preamble.org"
`

and preamble/preamble.org contains

,
| * Preamble
| 
| Look at this amazing image:
| [[./file1.png]]
`

Then the LaTeX that is generated for "main.org" is

,
| \part{Preamble}
| \label{sec:orgheadline3}
| 
| Look at this amazing image:
| 
| \includegraphics[width=.9\linewidth]{./figure1.png}
`

but I want it to be:

,
| \part{Preamble}
| \label{sec:orgheadline3}
| 
| Look at this amazing image:
| 
| \includegraphics[width=.9\linewidth]{preamble/figure1.png}
`

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



Re: [O] Visibility cycling at end of headline

2015-04-23 Thread Nikolaus Rath
On Apr 23 2015, Kyle Meyer k...@kyleam.com wrote:
 Nikolaus Rath nikol...@rath.org wrote:
 [...]
 * Sample heading 1...
 * Sample heading 2

 If the cursor is to the right of the 1 (in particular if it's at the
 end of the line), nothing happens.

 Why is this,

 I think this is because point is considered to be on the hidden text,
 not the headline, so the cycling behavior does not apply.  To test this,
 run `org-element-at-point' before and after '...'.

Yes, that seems to be a problem.

 and is there a way to change it?

 C-a?

Well, obviously I meant a way to *automatically* have Tab work at the
end of the line (I think redefining Tab to first call C-a would break
stuff in other situations).

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



[O] Visibility cycling at end of headline

2015-04-23 Thread Nikolaus Rath
Hello,

When I'm trying to expand a folded headline using Tab, this seems to
work only if the cursor is before the '...', i.e. just before the 1 in
the following example:

* Sample heading 1...
* Sample heading 2

If the cursor is to the right of the 1 (in particular if it's at the
end of the line), nothing happens.

Why is this, and is there a way to change it?

Thanks,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



Re: [O] Sparse tree for undated TODOs, or hierachical agenda?

2015-04-21 Thread Nikolaus Rath
On Apr 21 2015, jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) wrote:
 Hi, Nikolaus.

 Nikolaus Rath writes:

 Hello, 
 
 I'm starting to like orgmode more and more. Thanks for working 
 on this! 
 
 However, for me the global todo list in the Agenda very hard to 
 digest (even when excluding sublevels), so I'd rather have a 
 view that conserves the document structure.

 If you want to restrict to your current document before building 
 the agenda use '', so if 'C-c a' calls your agenda (suggested org 
 key), then you can do 'C-c a  a' to get the agenda restricted to 
 the buffer that you are in.

Well, yes, but that still throws away all the headings. E.g.

* Task 1
** TODO Do A
** Other stuff
* Task 2
** TODO Do B
** TODO Do C
   SCHEDULED: 2015-05-31 Sun

becomes (after C-c a t):

* TODO Do A
* TODO Do B

What I would like to get is

* Task 1
** TODO Do A
* Task 2
** TODO Do B

  
 Is there a way to create a sparse tree that shows only undated 
 TODOs (i.e., excludes anything that scheduled or has a 
 deadline)?

 I do not know what you mean by sparse tree,

The sparse tree is what you get with C-c \ t (org-sparse-tree). For the
above example, you get:

* Task 1
** TODO Do A
* Task 2
** TODO Do B
** TODO Do C
   SCHEDULED: 2015-05-31 Sun

so the structure is conserved like I want, but even with..

 but this excludes 
 anything scheduled or with a deadline from the global todo list:

 #+BEGIN_SRC emacs-lisp
   (setq org-agenda-todo-ignore-scheduled 'all)
   (setq org-agenda-todo-ignore-deadlines 'all)
 #+END_SRC

.. the scheduled items are still included (because the todo-* settings
apply only to the Agenda view, not the sparse tree view).


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



Re: [O] Sparse tree for undated TODOs, or hierachical agenda?

2015-04-21 Thread Nikolaus Rath
On Apr 21 2015, jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) wrote:
 Nikolaus Rath writes:

 Jorge A. Alfaro-Murillo writes: 
 If you want to restrict to your current document before 
 building the agenda use '', so if 'C-c a' calls your agenda 
 (suggested org key), then you can do 'C-c a  a' to get the 
 agenda restricted to the buffer that you are in. 
 
 Well, yes, but that still throws away all the headings. E.g. 
 
 * Task 1 ** TODO Do A ** Other stuff * Task 2 ** TODO Do B ** 
 TODO Do C 
SCHEDULED: 2015-05-31 Sun 
 
 becomes (after C-c a t): 
 
 * TODO Do A * TODO Do B 
 
 What I would like to get is 
 
 * Task 1 ** TODO Do A * Task 2 ** TODO Do B
  
 I do not know what you mean by sparse tree, 
 
 The sparse tree is what you get with C-c \ t (org-sparse-tree). 
 For the above example, you get: 
 
 * Task 1 ** TODO Do A * Task 2 ** TODO Do B ** TODO Do C 
SCHEDULED: 2015-05-31 Sun 
 
 so the structure is conserved like I want, but even with.. 
 
 but this excludes  anything scheduled or with a deadline from 
 the global todo list: 
 
 #+BEGIN_SRC emacs-lisp 
   (setq org-agenda-todo-ignore-scheduled 'all) (setq 
   org-agenda-todo-ignore-deadlines 'all) 
 #+END_SRC 
 
 .. the scheduled items are still included (because the todo-* 
 settings apply only to the Agenda view, not the sparse tree 
 view).

 It seems to me that these are two different issues. If you want 
 the TODO list in the org-agenda to show your headlines you can 
 configure the view to show breadcrumbs (and order by category):

 #+BEGIN_SRC emacs-lisp
   (setq org-agenda-prefix-format
 '((agenda .  %i %-12:c%?-12t% s)
   (timeline .   % s)
   (todo .  %i %-12:c%-24:b)
   (tags .  %i %-12:c)
   (search .  %i %-12:c)))

   (setq org-agenda-sorting-strategy
 ((agenda habit-down time-up priority-down category-keep)
  (todo category-keep)
  (tags priority-down category-keep)
  (search category-keep)))
 #+END_SRC

For me the second assignment fails with:

Debugger entered--Lisp error: (void-variable )
  (setq org-agenda-sorting-strategy  ((agenda habit-down time-up priority-down 
category-keep)  (todo category-keep)  (tags priority-down category-keep)  
(search category-keep)))
  eval((setq org-agenda-sorting-strategy  ((agenda habit-down time-up 
priority-down category-keep)  (todo category-keep)  (tags priority-down 
category-keep)  (search category-keep))) nil)
  eval-last-sexp-1(nil)
  eval-last-sexp(nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)

If I evaluate just the first one, I'm getting the headlines as an
additional column which is better but not yet perfect.

 Now, if you want to narrow the agenda (C-c a) or org-sparse-tree 
 (C-c /) to show TODO items not SCHEDULED or DEADLINE'd use the key 
 'm' and the following match:

 -SCHEDULED={.+}-DEADLINE={.+}+TODO=TODO

This, however, works perfectly, thanks a lot! Is this explained anywhere
in the documentation? Because I certainly searched for it but could not
find anything.

(I'm nevertheless interested in trying out your first solution for
changing the Agenda view as well).

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



Re: [O] Sparse tree for undated TODOs, or hierachical agenda?

2015-04-21 Thread Nikolaus Rath
On Apr 21 2015, Nikolaus Rath nikol...@rath.org wrote:
 Now, if you want to narrow the agenda (C-c a) or org-sparse-tree 
 (C-c /) to show TODO items not SCHEDULED or DEADLINE'd use the key 
 'm' and the following match:

 -SCHEDULED={.+}-DEADLINE={.+}+TODO=TODO

 This, however, works perfectly, thanks a lot! Is this explained anywhere
 in the documentation? Because I certainly searched for it but could not
 find anything.

Now that I knew what to look for, I finally found it myself. Here's a
link for the benefit of future people trying to Google this:

Match syntax:
http://orgmode.org/org.html#Matching-tags-and-properties

..and the special properties that automatically exist:
http://orgmode.org/org.html#Special-properties

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



[O] How to match TODO items not SCHEDULED or DEADLINE'd (was: Sparse tree for undated TODOs, or hierachical agenda?)

2015-04-21 Thread Nikolaus Rath
On Apr 21 2015, Nikolaus Rath nikol...@rath.org wrote:
 On Apr 21 2015, jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) wrote:
 Now, if you want to narrow the agenda (C-c a) or org-sparse-tree 
 (C-c /) to show TODO items not SCHEDULED or DEADLINE'd use the key 
 'm' and the following match:

 -SCHEDULED={.+}-DEADLINE={.+}+TODO=TODO

 This, however, works perfectly, thanks a lot!

Actually, it seems it does not work for some cases. If I have a file
with

* TODO Item 1
* TODO Item 2
  SCHEDULED: 2015-04-24 Fri
* Heading
** TODO Subitem 1
** TODO Subitem 1
  SCHEDULED: 2015-04-24 Fri

end do the above procedure, I'm getting

* TODO Item 1
* TODO Item 2...
* Heading
** TODO Subitem 1...

Why is Item 2 not being hidden?


Thanks,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



Re: [O] Sparse tree for undated TODOs, or hierachical agenda?

2015-04-20 Thread Nikolaus Rath
Hi,

On Apr 17 2015, Nikolaus Rath nikol...@rath.org wrote:
 However, for me the global todo list in the Agenda very hard to digest
 (even when excluding sublevels), so I'd rather have a view that
 conserves the document structure.

 Is there a way to create a sparse tree that shows only undated TODOs
 (i.e., excludes anything that scheduled or has a deadline)?

 Or, alternatively, is there a way to generate an Agenda view that
 preserves the outline of the document (i.e., TODO items are grouped by
 their headings)?

Really no one has any suggestion?

Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



[O] Sparse tree for undated TODOs, or hierachical agenda?

2015-04-17 Thread Nikolaus Rath
Hello,

I'm starting to like orgmode more and more. Thanks for working on this!

However, for me the global todo list in the Agenda very hard to digest
(even when excluding sublevels), so I'd rather have a view that
conserves the document structure.

Is there a way to create a sparse tree that shows only undated TODOs
(i.e., excludes anything that scheduled or has a deadline)?

Or, alternatively, is there a way to generate an Agenda view that
preserves the outline of the document (i.e., TODO items are grouped by
their headings)?

Thanks,
-Nikolaus
-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



[O] org-mobile: how to get rid of .org file?

2015-04-12 Thread Nikolaus Rath
Hello,

I accidentally created a file 'from_mobile.org' (different from the
'org-mobile.org' used by org-mobile) in my org-directory. On the next
org-mobile-push, this file got copied into my org-mobile-directory and
now shows up on my mobile (Android) device.

I then deleted the from_mobile.org from org-directory and executed
org-mobile-push again. However, the copy in org-mobile-directory
persists and (probably for that reason) also continues to show up on my
phone.

Why isn't org-mobile picking up that the file has been removed?

Thanks!
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



[O] Hiding blocked TODO items

2015-04-06 Thread Nikolaus Rath
Hello,

Is there a way to have TODO items blocking each other?

For example, if I have this document:

* TODO Pay water
  :PROPERTIES:
   :blocked-on: checks
  :END:
* TODO Pay electricity
  :PROPERTIES:
   :blocked-on: checks
  :END:
* TODO Get new checks
  :PROPERTIES:
   :id: checks
  :END:

Then I'd like the first two TODO items not to show up in the agenda
until the third one is DONE (but I don't much care if the items can be
manually switched to DONE or not).

I looked at org-depend.el but as far as I can tell, it only allows to
set up chains of dependencies, i.e. I could have Pay Water and Pay
electricity in state NEXT, and have a trigger in Get new checks that
would switch one, but not both, of the NEXT items to TODO.

Do I understand that correctly? Is there some other way to achieve what
I want?

Best,
-Nikolaus
-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



[O] Best practices to get reminders?

2015-04-06 Thread Nikolaus Rath
Hello,

I'm just starting to use org-mode. The first thing I'd like to use it
for is to keep track of stuff that I need to do. Writing things up and
calling up the agenda is easy enough, and I really like how-much
functionality is available in what's essentially a plain text document.

However, there's one thing where I feel lost. I don't expect to be
editing my orgmode files on a daily basis (at least not yet), so how can
I make sure that I don't miss an important deadline? It seems to me that
it doesn't help much if instead of worrying to forget a deadline I now
have to worry about forgetting to check my org-mode agenda...

How do other people handle this? Is everyone else opening and working on
their org files daily so that this becomes a non-issue?


Best,
-Nikolaus
-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



Re: [O] Best practices to get reminders?

2015-04-06 Thread Nikolaus Rath
On Apr 06 2015, jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) wrote:
 Nikolaus Rath writes:

 However, there's one thing where I feel lost. I don't expect to 
 be editing my orgmode files on a daily basis (at least not yet), 
 so how can I make sure that I don't miss an important deadline? 
 It seems to me that it doesn't help much if instead of worrying 
 to forget a deadline I now have to worry about forgetting to 
 check my org-mode agenda... 
 
 How do other people handle this? Is everyone else opening and 
 working on their org files daily so that this becomes a 
 non-issue?

 You can put this after your org-agenda-files configuration in your 
 .emacs:

 #+BEGIN_SRC emacs-lisp
   (appt-activate 1)
   (org-agenda-to-appt)
 #+END_SRC
 Then you will be reminded of things in your org files, before the 
 appointment time (I think 12 min is the default).

Hmm. I tried it with this test-event:

* TODO Test task
  SCHEDULED: 2015-04-07 Tue

But running (org-agenda-to-appt) just gives No event to add.

Is this because there is no time specified? I'm not really concerned
with appointments that have a time span, but with projects that have
specific due dates...


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



Re: [O] Best practices to get reminders?

2015-04-06 Thread Nikolaus Rath
On Apr 06 2015, Carlos Sosa gnus...@gnusosa.net wrote:
 Nikolaus Rath nikol...@rath.org writes:

 How do other people handle this? Is everyone else opening and working on
 their org files daily so that this becomes a non-issue?

   Have you tried (org-agenda-to-appt) and (appt-activate t)?
   If you do end up using those functions, and you're using Emacs 24.x,
   checkout desktop notifications:
   
 https://www.gnu.org/software/emacs/manual/html_node/elisp/Desktop-Notifications.html

I am using Emacs 24, but I'm still not sure how how you are using
this. For example, if you'd like to get some reminder if a project is
due in 3 days, how exactly do you set things up?

Do you show the notification just once (but what if I'm not at the
screen what that happens)? Or do you show it periodically until I've
somehow told Emacs that I've seen it?

Thanks,
-Nikolaus
-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«