emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: emacs-orgmode@gnu.org
Subject: Re: [gnorb] completion for `gnorb-gnus-incoming-do-todo'
Date: Sat, 15 Aug 2015 12:45:01 +0800	[thread overview]
Message-ID: <87k2sxxir6.fsf@ericabrahamsen.net> (raw)
In-Reply-To: 87wpwzmbb3@gmx.de

Thomas Holst <Thomas_Holst@gmx.de> writes:

> Hi Eric,
>
> · Eric Abrahamsen <eric@ericabrahamsen.net> wrote:
>
>>> thanks for the gnorb package! I started using it and I like it a lot!
>>>
>>> When I call `gnorb-gnus-incoming-do-todo' from gnus I'm prompted for a
>>> headline. But completion is not working. Neither <TAB> nor M-j does
>>> anything.
>>>
>>> How can I get completion working? Completion is working for org-refile.
>>>
>>> I have no settings customized. Only key bindings as suggested.
>>>
>>> Thank you for looking into this!
>>
>> Hi Thomas,
>>
>> Glad to hear you're liking Gnorb! Can you tell me a few things about
>> your setup?
>>
>> 1. What versions of the packages are you using? Org and Gnorb?
>
> I use most recent git versions:
>
> Org-mode version 8.3.1 (release_8.3.1-56-g046110 @
> /home/thommy/git-emacs/org-mode/lisp/)
>
> gnorb: most recent git version
>
>> 2. Are you using any special completion packages (ido, iswitchb,
>> helm)?
>
> I mostly use helm. But for refile I use following settings since I
> found helm not really working here:
>
> #+begin_src emacs_lisp
>   ;; -----------------------------------------------------------------------------
>   ;; settings fr org-refile
>   ;; -----------------------------------------------------------------------------
>   (setq org-refile-use-outline-path 'file)
>   (setq org-refile-targets
>         '((org-agenda-files :maxlevel . 3)
>           (org-agenda-text-search-extra-files . (:maxlevel . 3))
>           (nil :maxlevel . 5)))
>
>   ; Allow refile to create parent tasks with confirmation
>   (setq org-refile-allow-creating-parent-nodes (quote confirm))
> #+end_src
>
>> 3. Can you confirm that the prompt where you're seeing failure is
>>    "Trigger heading:"?
>
> I see: "Trigger heading (default Reparaturen):"
>>
>> I assume that putting point after this sexp and running "C-x C-e" gets
>> you a fully functional completion prompt, is that true?
>>
>> (org-refile-get-location "Trigger heading" nil t)
>
> Yes with helm interface. But again completion is not functional.
>
> Now when I press `g' at the begin of a headline I get:
>
> "Refile subtree "Erträge" to (default Reperaturen):"
>
> With regular (no helm) completion (<TAB> completes) working.

Sorry this is taking me a while...

I'm still trying to get exactly what's going on here -- you haven't been
able to use helm with org at all, so you set those refile values in
order to disable helm when refiling, but with gnorb it tries to go back
to using helm and fails, is that right?

Gnorb provides the option `gnorb-gnus-trigger-refile-targets', which is
basically exactly the same as `org-refile-targets', it just allows you
to adjust how/which headings are proposed as for the gnorb trigger
process. Maybe you can try setting that to the same value as your
current `org-refile-targets', and see if that helps?

Hmm, I should probably be doing that by default...

If I were you, though, I'd be looking more closely into why helm isn't
working with org! It's pretty useful... If you use helm with
`org-refile-get-location', do you not see any headings at all? Or you
see them but typing does nothing?

Eric

  reply	other threads:[~2015-08-15  4:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 12:24 [gnorb] completion for `gnorb-gnus-incoming-do-todo' Thomas Holst
2015-08-12 13:53 ` Eric Abrahamsen
     [not found] ` <8737zosjan.fsf@ericabrahamsen.net>
2015-08-12 16:19   ` Thomas Holst
2015-08-15  4:45     ` Eric Abrahamsen [this message]
2015-08-15 15:31       ` Thomas Holst
2015-08-16  3:53         ` Eric Abrahamsen
2015-08-16 14:37           ` Thomas Holst
2015-08-17  7:01             ` Eric Abrahamsen
2015-08-17  8:38               ` Thomas Holst

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k2sxxir6.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).