Re: [O] Bug: clock table report hang when using :tags [8.2.10 (release_8.2.10 @ c:/Program Files/emacs/share/emacs/24.5/lisp/org/)]

2016-08-19 Thread Nicolas Goaziou
Hello,

Yichao Woo  writes:

> Here is the Error trace I got with Org uncompiled

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: clock table report hang when using :tags [8.2.10 (release_8.2.10 @ c:/Program Files/emacs/share/emacs/24.5/lisp/org/)]

2016-08-15 Thread Yichao Woo
Here is the Error trace I got with Org uncompiled

Debugger entered--Lisp error: (quit)
  (save-restriction (widen) (end-of-line) (if (re-search-backward
org-outline-regexp-bol nil t) (1- (- (match-end 0) (match-beginning
0))) 0))
  (save-excursion (save-restriction (widen) (end-of-line) (if
(re-search-backward org-outline-regexp-bol nil t) (1- (- (match-end 0)
(match-beginning 0))) 0)))
  org-outline-level()
  outline-up-heading(1 t)
  (while (> (funcall outline-level) 1) (outline-up-heading 1 t)
(put-text-property (point) (point-at-eol)
:org-clock-force-headline-inclusion t))
  (progn (while (> (funcall outline-level) 1) (outline-up-heading 1 t)
(put-text-property (point) (point-at-eol)
:org-clock-force-headline-inclusion t)))
  (unwind-protect (progn (while (> (funcall outline-level) 1)
(outline-up-heading 1 t) (put-text-property (point) (point-at-eol)
:org-clock-force-headline-inclusion t))) (set-match-data
save-match-data-internal (quote evaporate)))
  (let ((save-match-data-internal (match-data))) (unwind-protect
(progn (while (> (funcall outline-level) 1) (outline-up-heading 1 t)
(put-text-property (point) (point-at-eol)
:org-clock-force-headline-inclusion t))) (set-match-data
save-match-data-internal (quote evaporate
  (save-excursion (let ((save-match-data-internal (match-data)))
(unwind-protect (progn (while (> (funcall outline-level) 1)
(outline-up-heading 1 t) (put-text-property (point) (point-at-eol)
:org-clock-force-headline-inclusion t))) (set-match-data
save-match-data-internal (quote evaporate)
  (if headline-filter (save-excursion (let ((save-match-data-internal
(match-data))) (unwind-protect (progn (while (> (funcall
outline-level) 1) (outline-up-heading 1 t) (put-text-property (point)
(point-at-eol) :org-clock-force-headline-inclusion t)))
(set-match-data save-match-data-internal (quote evaporate))
  (progn (if headline-included (let* ((l 0) (--cl-var-- level)) (while
(<= l --cl-var--) (aset ltimes l (+ (aref ltimes l) t1)) (setq l (+ l
1))) nil)) (setq time (aref ltimes level)) (goto-char (match-beginning
0)) (put-text-property (point) (point-at-eol) (or propname
:org-clock-minutes) time) (if headline-filter (save-excursion (let
((save-match-data-internal (match-data))) (unwind-protect (progn
(while (> ... 1) (outline-up-heading 1 t) (put-text-property ... ...
:org-clock-force-headline-inclusion t))) (set-match-data
save-match-data-internal (quote evaporate)))
  (if (or headline-included headline-forced) (progn (if
headline-included (let* ((l 0) (--cl-var-- level)) (while (<= l
--cl-var--) (aset ltimes l (+ (aref ltimes l) t1)) (setq l (+ l 1)))
nil)) (setq time (aref ltimes level)) (goto-char (match-beginning 0))
(put-text-property (point) (point-at-eol) (or propname
:org-clock-minutes) time) (if headline-filter (save-excursion (let
((save-match-data-internal (match-data))) (unwind-protect (progn
(while ... ... ...)) (set-match-data save-match-data-internal (quote
evaporate
  (progn (if (or headline-included headline-forced) (progn (if
headline-included (let* ((l 0) (--cl-var-- level)) (while (<= l
--cl-var--) (aset ltimes l (+ ... t1)) (setq l (+ l 1))) nil)) (setq
time (aref ltimes level)) (goto-char (match-beginning 0))
(put-text-property (point) (point-at-eol) (or propname
:org-clock-minutes) time) (if headline-filter (save-excursion (let
((save-match-data-internal ...)) (unwind-protect (progn ...)
(set-match-data save-match-data-internal ...))) (setq t1 0) (let*
((l level) (--cl-var-- (1- lmax))) (while (<= l --cl-var--) (aset
ltimes l 0) (setq l (+ l 1))) nil))
  (if (or (> t1 0) (> (aref ltimes level) 0)) (progn (if (or
headline-included headline-forced) (progn (if headline-included (let*
((l 0) (--cl-var-- level)) (while (<= l --cl-var--) (aset ltimes l
...) (setq l ...)) nil)) (setq time (aref ltimes level)) (goto-char
(match-beginning 0)) (put-text-property (point) (point-at-eol) (or
propname :org-clock-minutes) time) (if headline-filter (save-excursion
(let (...) (unwind-protect ... ...)) (setq t1 0) (let* ((l level)
(--cl-var-- (1- lmax))) (while (<= l --cl-var--) (aset ltimes l 0)
(setq l (+ l 1))) nil)))
  (let* ((headline-forced (get-text-property (point)
:org-clock-force-headline-inclusion)) (headline-included (or (null
headline-filter) (save-excursion (let ((save-match-data-internal ...))
(unwind-protect (progn ...) (set-match-data save-match-data-internal
...))) (setq level (- (match-end 1) (match-beginning 1))) (if (>=
level lmax) (progn (setq ltimes (vconcat ltimes (make-vector lmax 0))
lmax (* 2 lmax (if (or (> t1 0) (> (aref ltimes level) 0)) (progn
(if (or headline-included headline-forced) (progn (if
headline-included (let* (... ...) (while ... ... ...) nil)) (setq time
(aref ltimes level)) (goto-char (match-beginning 0))
(put-text-property (point) (point-at-eol) (or propname
:org-clock-minutes) time) (if headline-filter (save-excursion (let ...
...) (setq t1 0) (let* ((l level) (--cl-var-- (1- lmax))) (while
(<= l 

Re: [O] Bug: clock table report hang when using :tags [8.2.10 (release_8.2.10 @ c:/Program Files/emacs/share/emacs/24.5/lisp/org/)]

2016-08-15 Thread Nicolas Goaziou
Hello,

Yichao Woo  writes:

> I upgraded from 8.2.10 to 8.3.5, but still get the same result.

Your upgrade may have failed, i.e., Org is reporting 8.3.5 but uses some
older libraries bundled with Emacs.

> Have no idea why since I have little knowledge on how to read and debug
> elisp code.

Try doing M-x toggle-debug-on-quit and reproduce the freeze. Once
frozen, quit with C-g and report the backtrace. Ideally, load Org
uncompiled first (C-u M-x org-reload).

Regards,

-- 
Nicolas Goaziou



Re: [O] Bug: clock table report hang when using :tags [8.2.10 (release_8.2.10 @ c:/Program Files/emacs/share/emacs/24.5/lisp/org/)]

2016-08-13 Thread Yichao Woo
Hey Nicolas:
I upgraded from 8.2.10 to 8.3.5, but still get the same result.
Have no idea why since I have little knowledge on how to read and debug
elisp code.
Sorry for the inconvenience

On Mon, Aug 8, 2016 at 5:16 AM, Nicolas Goaziou 
wrote:

> Hello,
>
> Yichao Woo  writes:
>
> > Using command org-dblock-update in the following piece of org-mode text
> > result in emacs hanging (but can exit using C-g key combo). The primary
> > reason I found for the issue is the use of ‘:tags “hello”. If I remove
> > it, the report will be generated.
> >
> > here is the text resulting the hanging of command org-dblock-update
> >
> > ** hh
> > #+BEGIN: clocktable :maxlevel 5 :scope subtree :tags "hello"
> >
> > #+END:
> > *** gogogo
> :hello:
> > :LOGBOOK:
> > CLOCK: [2016-07-26 Tue 12:45]--[2016-07-26 Tue 13:45] =>  1:00
> > :END:
> >
> > Emacs : GNU Emacs 24.5.1 (i686-pc-mingw32)
> > of 2015-04-11 on LEG570
> > Package: Org-mode version 8.2.10 (release_8.2.10 @ c:/Program
> > Files/emacs/share/emacs/24.5/lisp/org/)
>
> You need to update Org to the latest stable release.
>
> Regards,
>
> --
> Nicolas Goaziou
>



-- 
Best Regards
Yichao


Re: [O] Bug: clock table report hang when using :tags [8.2.10 (release_8.2.10 @ c:/Program Files/emacs/share/emacs/24.5/lisp/org/)]

2016-08-07 Thread Nicolas Goaziou
Hello,

Yichao Woo  writes:

> Using command org-dblock-update in the following piece of org-mode text
> result in emacs hanging (but can exit using C-g key combo). The primary
> reason I found for the issue is the use of ‘:tags “hello”. If I remove
> it, the report will be generated.
>
> here is the text resulting the hanging of command org-dblock-update
>
> ** hh
> #+BEGIN: clocktable :maxlevel 5 :scope subtree :tags "hello"
>
> #+END:
> *** gogogo:hello:
> :LOGBOOK:
> CLOCK: [2016-07-26 Tue 12:45]--[2016-07-26 Tue 13:45] =>  1:00
> :END:
>
> Emacs : GNU Emacs 24.5.1 (i686-pc-mingw32)
> of 2015-04-11 on LEG570
> Package: Org-mode version 8.2.10 (release_8.2.10 @ c:/Program
> Files/emacs/share/emacs/24.5/lisp/org/)

You need to update Org to the latest stable release.

Regards,

-- 
Nicolas Goaziou



[O] Bug: clock table report hang when using :tags [8.2.10 (release_8.2.10 @ c:/Program Files/emacs/share/emacs/24.5/lisp/org/)]

2016-07-31 Thread Yichao Woo
Using command org-dblock-update in the following piece of org-mode text
result in emacs hanging (but can exit using C-g key combo). The primary
reason I found for the issue is the use of ‘:tags “hello”. If I remove
it, the report will be generated.

here is the text resulting the hanging of command org-dblock-update

** hh
#+BEGIN: clocktable :maxlevel 5 :scope subtree :tags "hello"

#+END:
*** gogogo:hello:
:LOGBOOK:
CLOCK: [2016-07-26 Tue 12:45]--[2016-07-26 Tue 13:45] =>  1:00
:END:

Emacs : GNU Emacs 24.5.1 (i686-pc-mingw32)
of 2015-04-11 on LEG570
Package: Org-mode version 8.2.10 (release_8.2.10 @ c:/Program
Files/emacs/share/emacs/24.5/lisp/org/)
current state:

(setq
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
 org-clock-in-resume t
 org-edit-timestamp-down-means-later t
 org-clock-persist t
 org-agenda-window-setup 'current-window
 org-tab-first-hook '(org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
  org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
 org-refile-targets '((nil :maxlevel . 5) (org-agenda-files :maxlevel . 5))
 org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-hide-drawers org-cycle-hide-inline-tasks
  org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
 org-babel-pre-tangle-hook '(save-buffer)
 org-occur-hook '(org-first-headline-recenter)
 org-log-done 'time
 org-clock-out-remove-zero-time-clocks t
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-fast-tag-selection-single-key 'expert
 org-agenda-span 14
 org-clock-in-hook '(sanityinc/show-org-clock-in-header-line)
 org-clock-cancel-hook '(sanityinc/hide-org-clock-from-header-line)
 org-refile-use-outline-path 'file
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer
sanityinc/hide-org-clock-from-header-line)
 org-completion-use-ido t
 org-agenda-include-diary t
 org-mode-hook '(#[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook
org-show-block-all append local] 5]
 #[nil "\300\301\302\303\304$\207"
   [org-add-hook change-major-mode-hook
org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-clock-into-drawer t
 org-agenda-start-on-weekday nil
 org-tags-column 80
 org-clock-in-switch-to-state "STARTED"
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-todo-keywords '((sequence "TODO(t)" "STARTED(s)" "|" "DONE(d!/!)")
 (sequence "WAITING(w@/!)" "SOMEDAY(S)" "|"
"CANCELLED(c@/!)"))
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-confirm-shell-link-function 'yes-or-no-p
 )
​

​