Re: [O] org-refile works but dosent work from within a capture window (org-capture-refile)

2016-06-16 Thread Fabrice Popineau
2016-06-17 0:43 GMT+02:00 Nicolas Goaziou :

> Hello,
>
> ...
>


> I guess you are refiling to an empty headline.


Hmmm ... the problem is that there was no chance to specify one.



> Anyway, it is fixed.


Thanks a lot!

Fabrice


Re: [O] org-refile works but dosent work from within a capture window (org-capture-refile)

2016-06-16 Thread Nicolas Goaziou
Hello,

Fabrice Popineau  writes:

> I don't know what is the minimal setup to reproduce the problem.
> Basically:
>
> - call capture from Chrome (in my case)
> - select n for note
> - select C-c C-w for org-capture-refile
>
> Here is a backtrace.

[...]

> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>
> replace-regexp-in-string("\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]"
> "\\3" nil)

I guess you are refiling to an empty headline. Anyway, it is fixed.

Thank you.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-refile works but dosent work from within a capture window (org-capture-refile)

2016-06-15 Thread Fabrice Popineau
Hi,

I don't know what is the minimal setup to reproduce the problem.
Basically:

- call capture from Chrome (in my case)
- select n for note
- select C-c C-w for org-capture-refile

Here is a backtrace.

The advice around call-interactively is set up by ido-ubiquitous.

Regards,

Fabrice

Debugger entered--Lisp error: (wrong-type-argument arrayp nil)

replace-regexp-in-string("\\[\\[\\([^][]+\\)\\]\\(\\[\\([^][]+\\)\\]\\)?\\]"
"\\3" nil)
  (setq heading-text (replace-regexp-in-string org-bracket-link-regexp
"\\3" (nth 4 (org-heading-components
  (if (and arg (listp arg)) nil (org-back-to-heading t) (setq heading-text
(replace-regexp-in-string org-bracket-link-regexp "\\3" (nth 4
(org-heading-components)
  (save-excursion (if (and arg (listp arg)) nil (org-back-to-heading t)
(setq heading-text (replace-regexp-in-string org-bracket-link-regexp "\\3"
(nth 4 (org-heading-components) (org-refile-get-location (cond ((and
arg (listp arg)) "Goto") (regionp (concat actionmsg " region to")) (t
(concat actionmsg " subtree \"" heading-text "\" to"))) default-buffer (and
(not (equal (quote (4)) arg)) org-refile-allow-creating-parent-nodes)))
  (let (heading-text) (save-excursion (if (and arg (listp arg)) nil
(org-back-to-heading t) (setq heading-text (replace-regexp-in-string
org-bracket-link-regexp "\\3" (nth 4 (org-heading-components)
(org-refile-get-location (cond ((and arg (listp arg)) "Goto") (regionp
(concat actionmsg " region to")) (t (concat actionmsg " subtree \""
heading-text "\" to"))) default-buffer (and (not (equal (quote (4)) arg))
org-refile-allow-creating-parent-nodes
  (or rfloc (let (heading-text) (save-excursion (if (and arg (listp arg))
nil (org-back-to-heading t) (setq heading-text (replace-regexp-in-string
org-bracket-link-regexp "\\3" (nth 4 (org-heading-components)
(org-refile-get-location (cond ((and arg (listp arg)) "Goto") (regionp
(concat actionmsg " region to")) (t (concat actionmsg " subtree \""
heading-text "\" to"))) default-buffer (and (not (equal (quote ...) arg))
org-refile-allow-creating-parent-nodes)
  (setq it (or rfloc (let (heading-text) (save-excursion (if (and arg
(listp arg)) nil (org-back-to-heading t) (setq heading-text
(replace-regexp-in-string org-bracket-link-regexp "\\3" (nth 4 ...
(org-refile-get-location (cond ((and arg ...) "Goto") (regionp (concat
actionmsg " region to")) (t (concat actionmsg " subtree \"" heading-text
"\" to"))) default-buffer (and (not (equal ... arg))
org-refile-allow-creating-parent-nodes))
  (or (and (equal arg 2) org-clock-hd-marker (marker-buffer
org-clock-hd-marker) (prog1 (setq it (list (or org-clock-heading "running
clock") (buffer-file-name (marker-buffer org-clock-hd-marker)) ""
(marker-position org-clock-hd-marker))) (setq arg nil))) (setq it (or rfloc
(let (heading-text) (save-excursion (if (and arg (listp arg)) nil
(org-back-to-heading t) (setq heading-text (replace-regexp-in-string
org-bracket-link-regexp "\\3" ...))) (org-refile-get-location (cond (...
"Goto") (regionp ...) (t ...)) default-buffer (and (not ...)
org-refile-allow-creating-parent-nodes)))
  (if (or (and (equal arg 2) org-clock-hd-marker (marker-buffer
org-clock-hd-marker) (prog1 (setq it (list (or org-clock-heading "running
clock") (buffer-file-name (marker-buffer org-clock-hd-marker)) ""
(marker-position org-clock-hd-marker))) (setq arg nil))) (setq it (or rfloc
(let (heading-text) (save-excursion (if (and arg ...) nil
(org-back-to-heading t) (setq heading-text ...)) (org-refile-get-location
(cond ... ... ...) default-buffer (and ...
org-refile-allow-creating-parent-nodes))) (progn (setq file (nth 1 it)
pos (nth 3 it)) (if (and (not arg) pos (equal (buffer-file-name) file) (if
regionp (and (>= pos region-start) (<= pos region-end)) (and (>= pos
(point)) (< pos (save-excursion ...) (progn (error "Cannot refile to
position inside the tree or region"))) (setq nbuf (or (find-buffer-visiting
file) (find-file-noselect file))) (if (and arg (not (equal arg 3))) (progn
(org-pop-to-buffer-same-window nbuf) (goto-char pos) (org-show-context
(quote org-goto))) (if regionp (progn (org-kill-new (buffer-substring
region-start region-end)) (org-save-markers-in-region region-start
region-end)) (org-copy-subtree 1 nil t)) (save-current-buffer (set-buffer
(setq nbuf (or (find-buffer-visiting file) (find-file-noselect file
(setq reversed (org-notes-order-reversed-p)) (save-excursion
(save-restriction (widen) (if pos (progn ... ... ... ...) (setq level 1)
(if ... ... ... ...)) (if (bolp) nil (newline)) (org-paste-subtree level
nil nil t) (if org-log-refile (progn ... ...)) (and org-auto-align-tags
(let ... ...)) (let (...) (if bookmark-name ...)) (if (and ...
org-capture-is-refiling) (progn ... ...)) (if (fboundp ...) (progn ...))
(run-hooks (quote org-after-refile-insert-hook) (if org-refile-keep nil
(if regionp (delete-region (point) (+ (point) (- region-end region-start)))
(delete-region (and (org-back-to-heading t) (point)) 

Re: [O] org-refile works but dosent work from within a capture window (org-capture-refile)

2016-05-29 Thread Nicolas Goaziou
Hello,

Xebar Saram  writes:

> do you mind guiding me on how to produce the backtrace and ECM, im not very
> technical ;-)

The backtrace is easy: M-x toggle-debug-on-error.

Just make sure you're using an un-compiled Org (you can call
`org-reload' with a C-u prefix).

The ECM is a minimal document that enables me to reproduce the error. It
may not be needed if the backtrace is obvious enough, but it doesn't
hurt to provide it either, if it is simple to create.

Regards,

-- 
Nicolas Goaziou



Re: [O] org-refile works but dosent work from within a capture window (org-capture-refile)

2016-05-28 Thread Xebar Saram
sure!

do you mind guiding me on how to produce the backtrace and ECM, im not very
technical ;-)

thx alot!

Z

On Sat, May 28, 2016 at 2:57 PM, Nicolas Goaziou 
wrote:

> Hello,
>
> Xebar Saram  writes:
>
> > org-refile work well when i issue it from a normal org buffer
> >
> > yet when i try to use C-c C-w (org-capture-refile) i get an error:
> >
> > org-refile: Wrong type argument: arrayp, nil
> >
> > any clue what could possibly cause this issue?
>
> Could you send a backtrace and, if possible, an ECM reproducing the
> issue?
>
> Thank you.
>
> Regards,
>
> --
> Nicolas Goaziou
>


Re: [O] org-refile works but dosent work from within a capture window (org-capture-refile)

2016-05-28 Thread Nicolas Goaziou
Hello,

Xebar Saram  writes:

> org-refile work well when i issue it from a normal org buffer
>
> yet when i try to use C-c C-w (org-capture-refile) i get an error:
>
> org-refile: Wrong type argument: arrayp, nil
>
> any clue what could possibly cause this issue?

Could you send a backtrace and, if possible, an ECM reproducing the
issue?

Thank you.

Regards,

-- 
Nicolas Goaziou



[O] org-refile works but dosent work from within a capture window (org-capture-refile)

2016-05-28 Thread Xebar Saram
Hi guys

so before i go through the hell of binary partition...:)

I have a wierd issue

org-refile work well when i issue it from a normal org buffer

yet when i try to use C-c C-w (org-capture-refile) i get an error:

org-refile: Wrong type argument: arrayp, nil

any clue what could possibly cause this issue?

best

Z