Re: [O] Text does not align with nested heading

2018-06-27 Thread Zongheng Yang
Turning on org-indent-mode again solved the issue.

On Tue, Jun 26, 2018 at 10:07 PM Zongheng Yang  wrote:

> Since a couple days (or just these past week?) ago my orgmode started
> displaying a weird issue: the text under a heading is not properly aligned.
> See the screenshot here: https://imgur.com/a/VrGap1s. No matter how
> nested the heading is, the text seems to always start at the first
> character of the visual line. What's wrong and how do I debug/fix this?
>
> Thanks,
> Zongheng
>


[O] Text does not align with nested heading

2018-06-26 Thread Zongheng Yang
Since a couple days (or just these past week?) ago my orgmode started
displaying a weird issue: the text under a heading is not properly aligned.
See the screenshot here: https://imgur.com/a/VrGap1s. No matter how nested
the heading is, the text seems to always start at the first character of
the visual line. What's wrong and how do I debug/fix this?

Thanks,
Zongheng


Re: [O] Speeding up agenda custom command with org-agenda-earlier & org-agenda-later

2018-06-22 Thread Zongheng Yang
Cool, looking forward to see the rewrite!

On Fri, Jun 22, 2018 at 1:49 PM Nicolas Goaziou 
wrote:

> Hello,
>
> Zongheng Yang  writes:
>
> > Here's an agenda custom command that acts as the main interface I
> interact
> > with org (in fact, emacs :)).
> >
> >   (setq org-agenda-custom-commands
> > '(("c" "Simple agenda view"
> >((agenda "")
> > (tags "PRIORITY=\"A\""
> >   ((org-agenda-files '("~/org/work.org" "~/org/ideas.org
> "))
> >(org-agenda-skip-function '(org-agenda-skip-entry-if
> > 'todo 'done))
> >(org-agenda-overriding-header "High-priority tasks:")
> >))
> > (tags-todo "PRIORITY=\"C\""
> >((org-agenda-files '("~/org/work.org" "~/org/
> > ideas.org"))
> > (org-agenda-overriding-header "Long-term:")))
> > (alltodo ""
> >  ((org-agenda-skip-function
> >'(or (zongheng-org-skip-subtree-if-priority ?A)
> > (zongheng-org-skip-subtree-if-priority ?C)
> > (org-agenda-skip-if nil '(scheduled
> deadline
> >   (org-agenda-overriding-header "Other tasks:")))
> > 
> >
> > After I get into this view, I frequently issue many "org-agenda-earlier"
> &
> > "org-agenda-later" commands, often in a back-and-forth fashion, to
> inspect
> > what I've done around certain periods.
> >
> > In such a use case, it seems there's *no reason to not cache results*.
> > Without such caching currently *the latency of switching is really high*;
> > with such a caching, I'm happy to pay an one-time latency/CPU cost for
> the
> > first command, as long as successive commands can be sped up.
> >
> > Is a feature like this planned?
>
> I don't think is it planned. Feel free to implement it, if you want to.
>
> I consider Org agenda in dire need of rewriting, though. for better
> scalability and easier maintenance.
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Speeding up agenda custom command with org-agenda-earlier & org-agenda-later

2018-06-20 Thread Zongheng Yang
Hi,

Here's an agenda custom command that acts as the main interface I interact
with org (in fact, emacs :)).

  (setq org-agenda-custom-commands
'(("c" "Simple agenda view"
   ((agenda "")
(tags "PRIORITY=\"A\""
  ((org-agenda-files '("~/org/work.org" "~/org/ideas.org"))
   (org-agenda-skip-function '(org-agenda-skip-entry-if
'todo 'done))
   (org-agenda-overriding-header "High-priority tasks:")
   ))
(tags-todo "PRIORITY=\"C\""
   ((org-agenda-files '("~/org/work.org" "~/org/
ideas.org"))
(org-agenda-overriding-header "Long-term:")))
(alltodo ""
 ((org-agenda-skip-function
   '(or (zongheng-org-skip-subtree-if-priority ?A)
(zongheng-org-skip-subtree-if-priority ?C)
(org-agenda-skip-if nil '(scheduled deadline
  (org-agenda-overriding-header "Other tasks:")))


After I get into this view, I frequently issue many "org-agenda-earlier" &
"org-agenda-later" commands, often in a back-and-forth fashion, to inspect
what I've done around certain periods.

In such a use case, it seems there's *no reason to not cache results*.
Without such caching currently *the latency of switching is really high*;
with such a caching, I'm happy to pay an one-time latency/CPU cost for the
first command, as long as successive commands can be sped up.

Is a feature like this planned?

Thanks,
Zongheng


[O] "DONE" markers have different colors?

2018-05-08 Thread Zongheng Yang
Hi,

Lately I've noticed that in my org-mode files, the "DONE" markers started
showing different colors.  I don't believe this happened before. Any ideas?
Is this a recent org-mode change?

Screenshot: https://imgur.com/a/nsk22Xx  

I'm using org-plus-contrib-20180129.

Zongheng


[O] Frequent "wrong-type-argument stringp nil" error when clocking-in in agenda view

2018-02-04 Thread Zongheng Yang
Hi everyone,

I have this frequent error (but not always), when I'm in the org agenda
view trying to clock in the task under cursor. Here's a stack trace:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  org-agenda-clock-in(nil)
  funcall-interactively(org-agenda-clock-in nil)
  call-interactively(org-agenda-clock-in nil nil)
  command-execute(org-agenda-clock-in)

Note, every time this occurs, I can refresh the agenda view, then clock in
with no problems.  But this refreshing gets tiring..

Any help?  I'm using org-plus-contrib-20171106, Emacs 25.3.2.

Thanks,
Zongheng