Hi Matt,

Matt Lundin wrote:
> Have you tried the following setting?
>
> (setq org-complete-tags-always-offer-all-agenda-tags t)
>
>> BTW, where is the documentation? I'm using orgmode 7.03, perhaps it's
>> not documented there?
>
> C-h f org-global-tags-completion-table.

C-h v org-complete-tags-always-offer-all-agenda-tags says:

    ,----
    | org-complete-tags-always-offer-all-agenda-tags is a variable defined in 
`org.el'.
    | Its value is nil
    | 
    | Documentation:
    | If non-nil, always offer completion for all tags of all agenda files.
    | Instead of customizing this variable directly, you might want to
    | set it locally for remember buffers, because there no list of
    | tags in that file can be created dynamically (there are none).
    | 
    |   (add-hook 'org-remember-mode-hook
    |             (lambda ()
    |               (set (make-local-variable
    |                     'org-complete-tags-always-offer-all-agenda-tags)
    |                    t)))
    | 
    | You can customize this variable.
    | 
    | [back]
    `----

(didn't know about that var)

You see that one should sed 's/remember/capture/g'.

--8<---------------cut here---------------start------------->8---
--- INDEX:/lisp/org.el
+++ WORKDIR:/lisp/org.el
@@ -2732,10 +2732,10 @@ To disable these tags on a per-file basis, insert 
anywhere in the file:
 (defcustom org-complete-tags-always-offer-all-agenda-tags nil
   "If non-nil, always offer completion for all tags of all agenda files.
 Instead of customizing this variable directly, you might want to
-set it locally for remember buffers, because there no list of
+set it locally for capture buffers, because there no list of
 tags in that file can be created dynamically (there are none).
 
-  (add-hook 'org-remember-mode-hook
+  (add-hook 'org-capture-mode-hook
             (lambda ()
               (set (make-local-variable
                     'org-complete-tags-always-offer-all-agenda-tags)
--8<---------------cut here---------------end--------------->8---

It seems there are a lot more references to remember, but I'm not sure which
can be safely removed.

Best regards,
  Seb

-- 
Sébastien Vauban


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to