emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: Tag Completion Not Prompting for all tags
@ 2012-03-24 15:50 Mike McLean
  2012-03-24 16:03 ` Bastien
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Mike McLean @ 2012-03-24 15:50 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]

Steps to Reproduce:

1 Start Emacs clean

/Applications/Emacs.app/Contents/MacOS/Emacs -Q
1.1 Note: Emacs Version

emacs-version is a variable defined in `C source code'.
Its value is "24.0.94.1"
2 Load Org Mode and some sample tags

Evaluate the following in the scratch buffer

(require 'org-install)
(setq org-tag-alist (quote (
                            ("tag_a" . ?a)
                            ("tag_b" . ?b))))
3 Open the following org-mode file

* Header 1
** Header 1.1
* Header 2                                                                      :Personal:
4 Point should be on the first asterisk for “Header 1”

5 Type C-c C-q to bring up Tag selection

The expected result is the fast tag selection; this works

6 Type <TAB> to enter free tag selection

The expected result is that the Minibuffer prompts with Tag:; this works

7 Type Per followed by <TAB>

The expected result is a completion of the file-tag Personal; this works

8 Type tag_ followed by <TAB>

The expected result is a completion list of tag_a and tag_b, this does not work and the Minibuffer prompts [No match]

Note that if I were to remove the single characters for tag_a and tag_b completion works for those two but not for the Personal tag from the file

Shouldn't free tag entry always show all possible tags, regardless of the setting of or use of fast tag completion?

[-- Attachment #2: Type: text/html, Size: 11510 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-24 15:50 Bug: Tag Completion Not Prompting for all tags Mike McLean
@ 2012-03-24 16:03 ` Bastien
  2012-03-24 16:43   ` Mike McLean
  2012-03-27 10:31 ` Bastien
  2012-04-10 16:38 ` Bastien
  2 siblings, 1 reply; 21+ messages in thread
From: Bastien @ 2012-03-24 16:03 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode

Hi Mike,

Mike McLean <mike.mclean@pobox.com> writes:

> Steps to Reproduce:
>
> 1 Start Emacs clean
>
> /Applications/Emacs.app/Contents/MacOS/Emacs -Q
>
> 1.1 Note: Emacs Version
>
> emacs-version is a variable defined in `C source code'.
> Its value is "24.0.94.1"

What shows M-x org-version RET?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-24 16:03 ` Bastien
@ 2012-03-24 16:43   ` Mike McLean
  0 siblings, 0 replies; 21+ messages in thread
From: Mike McLean @ 2012-03-24 16:43 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode


On Mar 24, 2012, at 12:03 PM, Bastien wrote:

> Hi Mike,
> 
> Mike McLean <mike.mclean@pobox.com> writes:
> 
>> Steps to Reproduce:
>> 
>> 1 Start Emacs clean
>> 
>> /Applications/Emacs.app/Contents/MacOS/Emacs -Q
>> 
>> 1.1 Note: Emacs Version
>> 
>> emacs-version is a variable defined in `C source code'.
>> Its value is "24.0.94.1"
> 
> What shows M-x org-version RET?
> 

In my daily environment (keeping org-mode current):

	Org-mode version 7.8.06 (release_7.8.06.118.g50563)

In my Emacs -Q environment (the version of org-mode that comes with Emacs 24 nightly from http://emacsforosx.com/

	Org-mode version 7.8.03

The behavior I am seeing happens in both, in fact I noticed it first in my daily use environment and was testing with Emacs -Q to eliminate possible configuration problems on my part.

Mike

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-24 15:50 Bug: Tag Completion Not Prompting for all tags Mike McLean
  2012-03-24 16:03 ` Bastien
@ 2012-03-27 10:31 ` Bastien
  2012-03-30  0:43   ` Mike McLean
                     ` (2 more replies)
  2012-04-10 16:38 ` Bastien
  2 siblings, 3 replies; 21+ messages in thread
From: Bastien @ 2012-03-27 10:31 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode

Hi Mike,

Mike McLean <mike.mclean@pobox.com> writes:

> 8 Type tag_ followed by <TAB>
>
> The expected result is a completion list of tag_a and tag_b, this
> does not work and the Minibuffer prompts [No match]

Fixed.

> Note that if I were to remove the single characters
> for tag_a and tag_b completion works for those two but not for
> the Personal tag from the file

Fixed.

> Shouldn't free tag entry always show all possible tags, regardless of
> the setting of or use of fast tag completion?

I think so -- thanks a lot for the detailed report.

Best,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-27 10:31 ` Bastien
@ 2012-03-30  0:43   ` Mike McLean
  2012-03-31  9:17     ` Bastien
  2012-04-06  4:38   ` Matt Lundin
  2012-04-10 18:48   ` Mike McLean
  2 siblings, 1 reply; 21+ messages in thread
From: Mike McLean @ 2012-03-30  0:43 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 39180 bytes --]

Bastien

I can verify that this has fixed the problem with tag completion not prompting for all tags. I see that commit 647396464d563634b980127673cf61769663407e has added a wrapper (append that combines buffer-tags with (mapcar 'car table).

This has, however, exposed a new bug and conflict with org-completion-use-ido that I can minimally reproduce below.

1 Steps to Reproduce:

1.1 Start Emacs clean

/Applications/Emacs.app/Contents/MacOS/Emacs -Q
1.1.1 Note: Emacs Version

M-x emacs-version <RET>
GNU Emacs 24.0.94.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-03-27 on bob.porkrind.org
1.2 Clone Git HEAD Org-Mode (to get the new commit)

$ git clone git://orgmode.org/org-mode.git
1.3 Load Cloned version of org-mode

Evaluate the following Lisp in *scratch*

(require 'ido)
(ido-mode t)

(setq load-path (cons "~/tmp/new-new-new/org-mode/lisp" load-path))
(setq load-path (cons "~/tmp/new-new-new/org-mode/contrib/lisp" load-path))
(require 'org-install)
(setq org-completion-use-ido t)
(setq org-tag-alist (quote (
                            ("tag_a" . ?a)
                            ("tag_b" . ?b)
                            )))
1.4 Open the following org-mode file

* Header 1
** Header 1.1
* Header 2                                                                      :Personal:
1.4.1 Note: Org-Version

M-x org-version <RET>
release_7.8.06-180-g22bfd
Org-mode version 7.8.06 (release_7.8.06.180.g22bfd)
1.5 Point should be on the first asterisk for “Header 1”

1.6 Type C-c C-q to bring up Tag selection

The expected result is the fast tag selection window-split; this works

1.7 Type <TAB> to enter free tag selection

The expected result is that the Minibuffer prompts with Tag:; the result is an error:

mapcar: Wrong type argument: listp, "tag_a"
1.8 Execute M-x toggle-debug-on-error

1.9 Point should be on the first asterisk for “Header 1”

1.10 Type C-c C-q to bring up Tag selection

The expected result is the fast tag selection window-split; this works

1.11 Type <TAB> to enter free tag selection

The expected result is that the Minibuffer prompts with Tag:; the result is an error:

Debugger entered--Lisp error: (wrong-type-argument listp "tag_a")
  car("tag_a")
  mapcar(car (("Personal") "tag_a" "tag_b" "Personal"))
  (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args))
  (apply (quote ido-completing-read) (concat (car args)) (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args)) (cddr args))
  (let ((ido-enter-matching-directory nil)) (apply (quote ido-completing-read) (concat (car args)) (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args)) (cddr args)))
  (if (and org-completion-use-ido (fboundp (quote ido-completing-read)) (boundp (quote ido-mode)) ido-mode (listp (second args))) (let ((ido-enter-matching-directory nil)) (apply (quote ido-completing-read) (concat (car args)) (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args)) (cddr args))) (if (and org-completion-use-iswitchb (boundp (quote iswitchb-mode)) iswitchb-mode (listp (second args))) (apply (quote org-iswitchb-completing-read) (concat (car args)) (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args)) (cddr args)) (apply (quote completing-read) args)))
  (if (and (boundp (quote partial-completion-mode)) partial-completion-mode (fboundp (quote partial-completion-mode))) (unwind-protect (progn (partial-completion-mode -1) (if (and org-completion-use-ido (fboundp (quote ido-completing-read)) (boundp (quote ido-mode)) ido-mode (listp (second args))) (let ((ido-enter-matching-directory nil)) (apply (quote ido-completing-read) (concat (car args)) (if (consp ...) (mapcar ... ...) (nth 1 args)) (cddr args))) (if (and org-completion-use-iswitchb (boundp (quote iswitchb-mode)) iswitchb-mode (listp (second args))) (apply (quote org-iswitchb-completing-read) (concat (car args)) (if (consp ...) (mapcar ... ...) (nth 1 args)) (cddr args)) (apply (quote completing-read) args)))) (partial-completion-mode 1)) (if (and org-completion-use-ido (fboundp (quote ido-completing-read)) (boundp (quote ido-mode)) ido-mode (listp (second args))) (let ((ido-enter-matching-directory nil)) (apply (quote ido-completing-read) (concat (car args)) (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args)) (cddr args))) (if (and org-completion-use-iswitchb (boundp (quote iswitchb-mode)) iswitchb-mode (listp (second args))) (apply (quote org-iswitchb-completing-read) (concat (car args)) (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args)) (cddr args)) (apply (quote completing-read) args))))
  (org-without-partial-completion (if (and org-completion-use-ido (fboundp (quote ido-completing-read)) (boundp (quote ido-mode)) ido-mode (listp (second args))) (let ((ido-enter-matching-directory nil)) (apply (quote ido-completing-read) (concat (car args)) (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args)) (cddr args))) (if (and org-completion-use-iswitchb (boundp (quote iswitchb-mode)) iswitchb-mode (listp (second args))) (apply (quote org-iswitchb-completing-read) (concat (car args)) (if (consp (car (nth 1 args))) (mapcar (quote car) (nth 1 args)) (nth 1 args)) (cddr args)) (apply (quote completing-read) args))))
  org-icompleting-read("Tag: " (("Personal") "tag_a" "tag_b" "Personal"))
  (setq tg (org-icompleting-read "Tag: " (append (or buffer-tags (with-current-buffer buf (org-get-buffer-tags))) (mapcar (quote car) table))))
  (condition-case nil (setq tg (org-icompleting-read "Tag: " (append (or buffer-tags (with-current-buffer buf (org-get-buffer-tags))) (mapcar (quote car) table)))) (quit (setq tg "")))
  (cond ((= c 13) (throw (quote exit) t)) ((= c 33) (setq groups (not groups)) (goto-char (point-min)) (while (re-search-forward "[{}]" nil t) (replace-match " "))) ((= c 3) (if (not expert) (org-fast-tag-show-exit (setq exit-after-next (not exit-after-next))) (setq expert nil) (delete-other-windows) (set-window-buffer (split-window-vertically) " *Org tags*") (org-switch-to-buffer-other-window " *Org tags*") (org-fit-window-to-buffer))) ((or (= c 7) (and (= c 113) (not (rassoc c ntable)))) (org-detach-overlay org-tags-overlay) (setq quit-flag t)) ((= c 32) (setq current nil) (if exit-after-next (setq exit-after-next (quote now)))) ((= c 9) (condition-case nil (setq tg (org-icompleting-read "Tag: " (append (or buffer-tags (with-current-buffer buf ...)) (mapcar (quote car) table)))) (quit (setq tg ""))) (when (string-match "\\S-" tg) (add-to-list (quote buffer-tags) (list tg)) (if (member tg current) (setq current (delete tg current)) (push tg current))) (if exit-after-next (setq exit-after-next (quote now)))) ((setq e (rassoc c todo-table) tg (car e)) (with-current-buffer buf (save-excursion (org-todo tg))) (if exit-after-next (setq exit-after-next (quote now)))) ((setq e (rassoc c ntable) tg (car e)) (if (member tg current) (setq current (delete tg current)) (loop for g in groups do (if (member tg g) (mapc (lambda (x) (setq current ...)) g))) (push tg current)) (if exit-after-next (setq exit-after-next (quote now)))))
  (while t (message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" (if (not groups) "no " "") (if expert " [C-c]:window" (if exit-after-next " [C-c]:single" " [C-c]:multi"))) (setq c (let ((inhibit-quit t)) (read-char-exclusive))) (setq org-last-tag-selection-key c) (cond ((= c 13) (throw (quote exit) t)) ((= c 33) (setq groups (not groups)) (goto-char (point-min)) (while (re-search-forward "[{}]" nil t) (replace-match " "))) ((= c 3) (if (not expert) (org-fast-tag-show-exit (setq exit-after-next (not exit-after-next))) (setq expert nil) (delete-other-windows) (set-window-buffer (split-window-vertically) " *Org tags*") (org-switch-to-buffer-other-window " *Org tags*") (org-fit-window-to-buffer))) ((or (= c 7) (and (= c 113) (not (rassoc c ntable)))) (org-detach-overlay org-tags-overlay) (setq quit-flag t)) ((= c 32) (setq current nil) (if exit-after-next (setq exit-after-next (quote now)))) ((= c 9) (condition-case nil (setq tg (org-icompleting-read "Tag: " (append (or buffer-tags ...) (mapcar ... table)))) (quit (setq tg ""))) (when (string-match "\\S-" tg) (add-to-list (quote buffer-tags) (list tg)) (if (member tg current) (setq current (delete tg current)) (push tg current))) (if exit-after-next (setq exit-after-next (quote now)))) ((setq e (rassoc c todo-table) tg (car e)) (with-current-buffer buf (save-excursion (org-todo tg))) (if exit-after-next (setq exit-after-next (quote now)))) ((setq e (rassoc c ntable) tg (car e)) (if (member tg current) (setq current (delete tg current)) (loop for g in groups do (if (member tg g) (mapc (lambda ... ...) g))) (push tg current)) (if exit-after-next (setq exit-after-next (quote now))))) (setq current (sort current (lambda (a b) (assoc b (cdr (memq (assoc a ntable) ntable)))))) (if (eq exit-after-next (quote now)) (throw (quote exit) t)) (goto-char (point-min)) (beginning-of-line 2) (delete-region (point) (point-at-eol)) (org-fast-tag-insert "Current" current c-face) (org-set-current-tags-overlay current ov-prefix) (while (re-search-forward (org-re "\\[.\\] \\([[:alnum:]_@#%]+\\)") nil t) (setq tg (match-string 1)) (add-text-properties (match-beginning 1) (match-end 1) (list (quote face) (cond ((member tg current) c-face) ((member tg inherited) i-face) (t (get-text-property (match-beginning 1) (quote face))))))) (goto-char (point-min)))
  (catch (quote exit) (while t (message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" (if (not groups) "no " "") (if expert " [C-c]:window" (if exit-after-next " [C-c]:single" " [C-c]:multi"))) (setq c (let ((inhibit-quit t)) (read-char-exclusive))) (setq org-last-tag-selection-key c) (cond ((= c 13) (throw (quote exit) t)) ((= c 33) (setq groups (not groups)) (goto-char (point-min)) (while (re-search-forward "[{}]" nil t) (replace-match " "))) ((= c 3) (if (not expert) (org-fast-tag-show-exit (setq exit-after-next (not exit-after-next))) (setq expert nil) (delete-other-windows) (set-window-buffer (split-window-vertically) " *Org tags*") (org-switch-to-buffer-other-window " *Org tags*") (org-fit-window-to-buffer))) ((or (= c 7) (and (= c 113) (not (rassoc c ntable)))) (org-detach-overlay org-tags-overlay) (setq quit-flag t)) ((= c 32) (setq current nil) (if exit-after-next (setq exit-after-next (quote now)))) ((= c 9) (condition-case nil (setq tg (org-icompleting-read "Tag: " (append ... ...))) (quit (setq tg ""))) (when (string-match "\\S-" tg) (add-to-list (quote buffer-tags) (list tg)) (if (member tg current) (setq current (delete tg current)) (push tg current))) (if exit-after-next (setq exit-after-next (quote now)))) ((setq e (rassoc c todo-table) tg (car e)) (with-current-buffer buf (save-excursion (org-todo tg))) (if exit-after-next (setq exit-after-next (quote now)))) ((setq e (rassoc c ntable) tg (car e)) (if (member tg current) (setq current (delete tg current)) (loop for g in groups do (if (member tg g) (mapc ... g))) (push tg current)) (if exit-after-next (setq exit-after-next (quote now))))) (setq current (sort current (lambda (a b) (assoc b (cdr (memq ... ntable)))))) (if (eq exit-after-next (quote now)) (throw (quote exit) t)) (goto-char (point-min)) (beginning-of-line 2) (delete-region (point) (point-at-eol)) (org-fast-tag-insert "Current" current c-face) (org-set-current-tags-overlay current ov-prefix) (while (re-search-forward (org-re "\\[.\\] \\([[:alnum:]_@#%]+\\)") nil t) (setq tg (match-string 1)) (add-text-properties (match-beginning 1) (match-end 1) (list (quote face) (cond ((member tg current) c-face) ((member tg inherited) i-face) (t (get-text-property ... ...)))))) (goto-char (point-min))))
  (setq rtn (catch (quote exit) (while t (message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" (if (not groups) "no " "") (if expert " [C-c]:window" (if exit-after-next " [C-c]:single" " [C-c]:multi"))) (setq c (let ((inhibit-quit t)) (read-char-exclusive))) (setq org-last-tag-selection-key c) (cond ((= c 13) (throw (quote exit) t)) ((= c 33) (setq groups (not groups)) (goto-char (point-min)) (while (re-search-forward "[{}]" nil t) (replace-match " "))) ((= c 3) (if (not expert) (org-fast-tag-show-exit (setq exit-after-next ...)) (setq expert nil) (delete-other-windows) (set-window-buffer (split-window-vertically) " *Org tags*") (org-switch-to-buffer-other-window " *Org tags*") (org-fit-window-to-buffer))) ((or (= c 7) (and (= c 113) (not ...))) (org-detach-overlay org-tags-overlay) (setq quit-flag t)) ((= c 32) (setq current nil) (if exit-after-next (setq exit-after-next (quote now)))) ((= c 9) (condition-case nil (setq tg (org-icompleting-read "Tag: " ...)) (quit (setq tg ""))) (when (string-match "\\S-" tg) (add-to-list (quote buffer-tags) (list tg)) (if (member tg current) (setq current ...) (push tg current))) (if exit-after-next (setq exit-after-next (quote now)))) ((setq e (rassoc c todo-table) tg (car e)) (with-current-buffer buf (save-excursion (org-todo tg))) (if exit-after-next (setq exit-after-next (quote now)))) ((setq e (rassoc c ntable) tg (car e)) (if (member tg current) (setq current (delete tg current)) (loop for g in groups do (if ... ...)) (push tg current)) (if exit-after-next (setq exit-after-next (quote now))))) (setq current (sort current (lambda (a b) (assoc b (cdr ...))))) (if (eq exit-after-next (quote now)) (throw (quote exit) t)) (goto-char (point-min)) (beginning-of-line 2) (delete-region (point) (point-at-eol)) (org-fast-tag-insert "Current" current c-face) (org-set-current-tags-overlay current ov-prefix) (while (re-search-forward (org-re "\\[.\\] \\([[:alnum:]_@#%]+\\)") nil t) (setq tg (match-string 1)) (add-text-properties (match-beginning 1) (match-end 1) (list (quote face) (cond (... c-face) (... i-face) (t ...))))) (goto-char (point-min)))))
  (progn (if expert (set-buffer (get-buffer-create " *Org tags*")) (delete-other-windows) (split-window-vertically) (org-switch-to-buffer-other-window (get-buffer-create " *Org tags*"))) (erase-buffer) (org-set-local (quote org-done-keywords) done-keywords) (org-fast-tag-insert "Inherited" inherited i-face "\n") (org-fast-tag-insert "Current" current c-face "\n\n") (org-fast-tag-show-exit exit-after-next) (org-set-current-tags-overlay current ov-prefix) (setq tbl fulltable char 97 cnt 0) (while (setq e (pop tbl)) (cond ((equal (car e) :startgroup) (push (quote nil) groups) (setq ingroup t) (when (not (= cnt 0)) (setq cnt 0) (insert "\n")) (insert (if (cdr e) (format "%s: " (cdr e)) "") "{ ")) ((equal (car e) :endgroup) (setq ingroup nil cnt 0) (insert "}" (if (cdr e) (format " (%s) " (cdr e)) "") "\n")) ((equal e (quote (:newline))) (when (not (= cnt 0)) (setq cnt 0) (insert "\n") (setq e (car tbl)) (while (equal (car tbl) (quote ...)) (insert "\n") (setq tbl (cdr tbl))))) (t (setq tg (copy-sequence (car e)) c2 nil) (if (cdr e) (setq c (cdr e)) (setq c1 (string-to-char (downcase ...))) (if (or (rassoc c1 ntable) (rassoc c1 table)) (while (or ... ...) (setq char ...)) (setq c2 c1)) (setq c (or c2 char))) (if ingroup (push tg (car groups))) (setq tg (org-add-props tg nil (quote face) (cond (... ...) (... c-face) (... i-face) (t nil)))) (if (and (= cnt 0) (not ingroup)) (insert "  ")) (insert "[" c "] " tg (make-string (- fwidth 4 (length tg)) 32)) (push (cons tg c) ntable) (when (= (setq cnt (1+ cnt)) ncol) (insert "\n") (if ingroup (insert "  ")) (setq cnt 0))))) (setq ntable (nreverse ntable)) (insert "\n") (goto-char (point-min)) (if (not expert) (org-fit-window-to-buffer)) (setq rtn (catch (quote exit) (while t (message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" (if (not groups) "no " "") (if expert " [C-c]:window" (if exit-after-next " [C-c]:single" " [C-c]:multi"))) (setq c (let ((inhibit-quit t)) (read-char-exclusive))) (setq org-last-tag-selection-key c) (cond ((= c 13) (throw (quote exit) t)) ((= c 33) (setq groups (not groups)) (goto-char (point-min)) (while (re-search-forward "[{}]" nil t) (replace-match " "))) ((= c 3) (if (not expert) (org-fast-tag-show-exit ...) (setq expert nil) (delete-other-windows) (set-window-buffer ... " *Org tags*") (org-switch-to-buffer-other-window " *Org tags*") (org-fit-window-to-buffer))) ((or (= c 7) (and ... ...)) (org-detach-overlay org-tags-overlay) (setq quit-flag t)) ((= c 32) (setq current nil) (if exit-after-next (setq exit-after-next ...))) ((= c 9) (condition-case nil (setq tg ...) (quit ...)) (when (string-match "\\S-" tg) (add-to-list ... ...) (if ... ... ...)) (if exit-after-next (setq exit-after-next ...))) ((setq e (rassoc c todo-table) tg (car e)) (with-current-buffer buf (save-excursion ...)) (if exit-after-next (setq exit-after-next ...))) ((setq e (rassoc c ntable) tg (car e)) (if (member tg current) (setq current ...) (loop for g in groups do ...) (push tg current)) (if exit-after-next (setq exit-after-next ...)))) (setq current (sort current (lambda (a b) (assoc b ...)))) (if (eq exit-after-next (quote now)) (throw (quote exit) t)) (goto-char (point-min)) (beginning-of-line 2) (delete-region (point) (point-at-eol)) (org-fast-tag-insert "Current" current c-face) (org-set-current-tags-overlay current ov-prefix) (while (re-search-forward (org-re "\\[.\\] \\([[:alnum:]_@#%]+\\)") nil t) (setq tg (match-string 1)) (add-text-properties (match-beginning 1) (match-end 1) (list (quote face) (cond ... ... ...)))) (goto-char (point-min))))) (org-detach-overlay org-tags-overlay) (if rtn (mapconcat (quote identity) current ":") nil))
  (unwind-protect (progn (if expert (set-buffer (get-buffer-create " *Org tags*")) (delete-other-windows) (split-window-vertically) (org-switch-to-buffer-other-window (get-buffer-create " *Org tags*"))) (erase-buffer) (org-set-local (quote org-done-keywords) done-keywords) (org-fast-tag-insert "Inherited" inherited i-face "\n") (org-fast-tag-insert "Current" current c-face "\n\n") (org-fast-tag-show-exit exit-after-next) (org-set-current-tags-overlay current ov-prefix) (setq tbl fulltable char 97 cnt 0) (while (setq e (pop tbl)) (cond ((equal (car e) :startgroup) (push (quote nil) groups) (setq ingroup t) (when (not (= cnt 0)) (setq cnt 0) (insert "\n")) (insert (if (cdr e) (format "%s: " ...) "") "{ ")) ((equal (car e) :endgroup) (setq ingroup nil cnt 0) (insert "}" (if (cdr e) (format " (%s) " ...) "") "\n")) ((equal e (quote (:newline))) (when (not (= cnt 0)) (setq cnt 0) (insert "\n") (setq e (car tbl)) (while (equal ... ...) (insert "\n") (setq tbl ...)))) (t (setq tg (copy-sequence (car e)) c2 nil) (if (cdr e) (setq c (cdr e)) (setq c1 (string-to-char ...)) (if (or ... ...) (while ... ...) (setq c2 c1)) (setq c (or c2 char))) (if ingroup (push tg (car groups))) (setq tg (org-add-props tg nil (quote face) (cond ... ... ... ...))) (if (and (= cnt 0) (not ingroup)) (insert "  ")) (insert "[" c "] " tg (make-string (- fwidth 4 ...) 32)) (push (cons tg c) ntable) (when (= (setq cnt ...) ncol) (insert "\n") (if ingroup (insert "  ")) (setq cnt 0))))) (setq ntable (nreverse ntable)) (insert "\n") (goto-char (point-min)) (if (not expert) (org-fit-window-to-buffer)) (setq rtn (catch (quote exit) (while t (message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" (if (not groups) "no " "") (if expert " [C-c]:window" (if exit-after-next " [C-c]:single" " [C-c]:multi"))) (setq c (let (...) (read-char-exclusive))) (setq org-last-tag-selection-key c) (cond ((= c 13) (throw ... t)) ((= c 33) (setq groups ...) (goto-char ...) (while ... ...)) ((= c 3) (if ... ... ... ... ... ... ...)) ((or ... ...) (org-detach-overlay org-tags-overlay) (setq quit-flag t)) ((= c 32) (setq current nil) (if exit-after-next ...)) ((= c 9) (condition-case nil ... ...) (when ... ... ...) (if exit-after-next ...)) ((setq e ... tg ...) (with-current-buffer buf ...) (if exit-after-next ...)) ((setq e ... tg ...) (if ... ... ... ...) (if exit-after-next ...))) (setq current (sort current (lambda ... ...))) (if (eq exit-after-next (quote now)) (throw (quote exit) t)) (goto-char (point-min)) (beginning-of-line 2) (delete-region (point) (point-at-eol)) (org-fast-tag-insert "Current" current c-face) (org-set-current-tags-overlay current ov-prefix) (while (re-search-forward (org-re "\\[.\\] \\([[:alnum:]_@#%]+\\)") nil t) (setq tg (match-string 1)) (add-text-properties (match-beginning 1) (match-end 1) (list ... ...))) (goto-char (point-min))))) (org-detach-overlay org-tags-overlay) (if rtn (mapconcat (quote identity) current ":") nil)) (set-window-configuration wconfig))
  (let ((wconfig (current-window-configuration))) (unwind-protect (progn (if expert (set-buffer (get-buffer-create " *Org tags*")) (delete-other-windows) (split-window-vertically) (org-switch-to-buffer-other-window (get-buffer-create " *Org tags*"))) (erase-buffer) (org-set-local (quote org-done-keywords) done-keywords) (org-fast-tag-insert "Inherited" inherited i-face "\n") (org-fast-tag-insert "Current" current c-face "\n\n") (org-fast-tag-show-exit exit-after-next) (org-set-current-tags-overlay current ov-prefix) (setq tbl fulltable char 97 cnt 0) (while (setq e (pop tbl)) (cond ((equal (car e) :startgroup) (push (quote nil) groups) (setq ingroup t) (when (not ...) (setq cnt 0) (insert "\n")) (insert (if ... ... "") "{ ")) ((equal (car e) :endgroup) (setq ingroup nil cnt 0) (insert "}" (if ... ... "") "\n")) ((equal e (quote ...)) (when (not ...) (setq cnt 0) (insert "\n") (setq e ...) (while ... ... ...))) (t (setq tg (copy-sequence ...) c2 nil) (if (cdr e) (setq c ...) (setq c1 ...) (if ... ... ...) (setq c ...)) (if ingroup (push tg ...)) (setq tg (org-add-props tg nil ... ...)) (if (and ... ...) (insert "  ")) (insert "[" c "] " tg (make-string ... 32)) (push (cons tg c) ntable) (when (= ... ncol) (insert "\n") (if ingroup ...) (setq cnt 0))))) (setq ntable (nreverse ntable)) (insert "\n") (goto-char (point-min)) (if (not expert) (org-fit-window-to-buffer)) (setq rtn (catch (quote exit) (while t (message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" (if ... "no " "") (if expert " [C-c]:window" ...)) (setq c (let ... ...)) (setq org-last-tag-selection-key c) (cond (... ...) (... ... ... ...) (... ...) (... ... ...) (... ... ...) (... ... ... ...) (... ... ...) (... ... ...)) (setq current (sort current ...)) (if (eq exit-after-next ...) (throw ... t)) (goto-char (point-min)) (beginning-of-line 2) (delete-region (point) (point-at-eol)) (org-fast-tag-insert "Current" current c-face) (org-set-current-tags-overlay current ov-prefix) (while (re-search-forward ... nil t) (setq tg ...) (add-text-properties ... ... ...)) (goto-char (point-min))))) (org-detach-overlay org-tags-overlay) (if rtn (mapconcat (quote identity) current ":") nil)) (set-window-configuration wconfig)))
  (save-window-excursion (if expert (set-buffer (get-buffer-create " *Org tags*")) (delete-other-windows) (split-window-vertically) (org-switch-to-buffer-other-window (get-buffer-create " *Org tags*"))) (erase-buffer) (org-set-local (quote org-done-keywords) done-keywords) (org-fast-tag-insert "Inherited" inherited i-face "\n") (org-fast-tag-insert "Current" current c-face "\n\n") (org-fast-tag-show-exit exit-after-next) (org-set-current-tags-overlay current ov-prefix) (setq tbl fulltable char 97 cnt 0) (while (setq e (pop tbl)) (cond ((equal (car e) :startgroup) (push (quote nil) groups) (setq ingroup t) (when (not (= cnt 0)) (setq cnt 0) (insert "\n")) (insert (if (cdr e) (format "%s: " (cdr e)) "") "{ ")) ((equal (car e) :endgroup) (setq ingroup nil cnt 0) (insert "}" (if (cdr e) (format " (%s) " (cdr e)) "") "\n")) ((equal e (quote (:newline))) (when (not (= cnt 0)) (setq cnt 0) (insert "\n") (setq e (car tbl)) (while (equal (car tbl) (quote ...)) (insert "\n") (setq tbl (cdr tbl))))) (t (setq tg (copy-sequence (car e)) c2 nil) (if (cdr e) (setq c (cdr e)) (setq c1 (string-to-char (downcase ...))) (if (or (rassoc c1 ntable) (rassoc c1 table)) (while (or ... ...) (setq char ...)) (setq c2 c1)) (setq c (or c2 char))) (if ingroup (push tg (car groups))) (setq tg (org-add-props tg nil (quote face) (cond (... ...) (... c-face) (... i-face) (t nil)))) (if (and (= cnt 0) (not ingroup)) (insert "  ")) (insert "[" c "] " tg (make-string (- fwidth 4 (length tg)) 32)) (push (cons tg c) ntable) (when (= (setq cnt (1+ cnt)) ncol) (insert "\n") (if ingroup (insert "  ")) (setq cnt 0))))) (setq ntable (nreverse ntable)) (insert "\n") (goto-char (point-min)) (if (not expert) (org-fit-window-to-buffer)) (setq rtn (catch (quote exit) (while t (message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" (if (not groups) "no " "") (if expert " [C-c]:window" (if exit-after-next " [C-c]:single" " [C-c]:multi"))) (setq c (let ((inhibit-quit t)) (read-char-exclusive))) (setq org-last-tag-selection-key c) (cond ((= c 13) (throw (quote exit) t)) ((= c 33) (setq groups (not groups)) (goto-char (point-min)) (while (re-search-forward "[{}]" nil t) (replace-match " "))) ((= c 3) (if (not expert) (org-fast-tag-show-exit ...) (setq expert nil) (delete-other-windows) (set-window-buffer ... " *Org tags*") (org-switch-to-buffer-other-window " *Org tags*") (org-fit-window-to-buffer))) ((or (= c 7) (and ... ...)) (org-detach-overlay org-tags-overlay) (setq quit-flag t)) ((= c 32) (setq current nil) (if exit-after-next (setq exit-after-next ...))) ((= c 9) (condition-case nil (setq tg ...) (quit ...)) (when (string-match "\\S-" tg) (add-to-list ... ...) (if ... ... ...)) (if exit-after-next (setq exit-after-next ...))) ((setq e (rassoc c todo-table) tg (car e)) (with-current-buffer buf (save-excursion ...)) (if exit-after-next (setq exit-after-next ...))) ((setq e (rassoc c ntable) tg (car e)) (if (member tg current) (setq current ...) (loop for g in groups do ...) (push tg current)) (if exit-after-next (setq exit-after-next ...)))) (setq current (sort current (lambda (a b) (assoc b ...)))) (if (eq exit-after-next (quote now)) (throw (quote exit) t)) (goto-char (point-min)) (beginning-of-line 2) (delete-region (point) (point-at-eol)) (org-fast-tag-insert "Current" current c-face) (org-set-current-tags-overlay current ov-prefix) (while (re-search-forward (org-re "\\[.\\] \\([[:alnum:]_@#%]+\\)") nil t) (setq tg (match-string 1)) (add-text-properties (match-beginning 1) (match-end 1) (list (quote face) (cond ... ... ...)))) (goto-char (point-min))))) (org-detach-overlay org-tags-overlay) (if rtn (mapconcat (quote identity) current ":") nil))
  (let* ((fulltable (append table todo-table)) (maxlen (apply (quote max) (mapcar (lambda (x) (if (stringp ...) (string-width ...) 0)) fulltable))) (buf (current-buffer)) (expert (eq org-fast-tag-selection-single-key (quote expert))) (buffer-tags nil) (fwidth (+ maxlen 3 1 3)) (ncol (/ (- (window-width) 4) fwidth)) (i-face (quote org-done)) (c-face (quote org-todo)) tg cnt e c char c1 c2 ntable tbl rtn ov-start ov-end ov-prefix (exit-after-next org-fast-tag-selection-single-key) (done-keywords org-done-keywords) groups ingroup) (save-excursion (beginning-of-line 1) (if (looking-at (org-re ".*[  ]\\(:[[:alnum:]_@#%:]+:\\)[   ]*$")) (setq ov-start (match-beginning 1) ov-end (match-end 1) ov-prefix "") (setq ov-start (1- (point-at-eol)) ov-end (1+ ov-start)) (skip-chars-forward "^\n
") (setq ov-prefix (concat (buffer-substring (1- (point)) (point)) (if (> (current-column) org-tags-column) " " (make-string (- org-tags-column ...) 32)))))) (move-overlay org-tags-overlay ov-start ov-end) (save-window-excursion (if expert (set-buffer (get-buffer-create " *Org tags*")) (delete-other-windows) (split-window-vertically) (org-switch-to-buffer-other-window (get-buffer-create " *Org tags*"))) (erase-buffer) (org-set-local (quote org-done-keywords) done-keywords) (org-fast-tag-insert "Inherited" inherited i-face "\n") (org-fast-tag-insert "Current" current c-face "\n\n") (org-fast-tag-show-exit exit-after-next) (org-set-current-tags-overlay current ov-prefix) (setq tbl fulltable char 97 cnt 0) (while (setq e (pop tbl)) (cond ((equal (car e) :startgroup) (push (quote nil) groups) (setq ingroup t) (when (not (= cnt 0)) (setq cnt 0) (insert "\n")) (insert (if (cdr e) (format "%s: " ...) "") "{ ")) ((equal (car e) :endgroup) (setq ingroup nil cnt 0) (insert "}" (if (cdr e) (format " (%s) " ...) "") "\n")) ((equal e (quote (:newline))) (when (not (= cnt 0)) (setq cnt 0) (insert "\n") (setq e (car tbl)) (while (equal ... ...) (insert "\n") (setq tbl ...)))) (t (setq tg (copy-sequence (car e)) c2 nil) (if (cdr e) (setq c (cdr e)) (setq c1 (string-to-char ...)) (if (or ... ...) (while ... ...) (setq c2 c1)) (setq c (or c2 char))) (if ingroup (push tg (car groups))) (setq tg (org-add-props tg nil (quote face) (cond ... ... ... ...))) (if (and (= cnt 0) (not ingroup)) (insert "  ")) (insert "[" c "] " tg (make-string (- fwidth 4 ...) 32)) (push (cons tg c) ntable) (when (= (setq cnt ...) ncol) (insert "\n") (if ingroup (insert "  ")) (setq cnt 0))))) (setq ntable (nreverse ntable)) (insert "\n") (goto-char (point-min)) (if (not expert) (org-fit-window-to-buffer)) (setq rtn (catch (quote exit) (while t (message "[a-z..]:Toggle [SPC]:clear [RET]:accept [TAB]:free [!] %sgroups%s" (if (not groups) "no " "") (if expert " [C-c]:window" (if exit-after-next " [C-c]:single" " [C-c]:multi"))) (setq c (let (...) (read-char-exclusive))) (setq org-last-tag-selection-key c) (cond ((= c 13) (throw ... t)) ((= c 33) (setq groups ...) (goto-char ...) (while ... ...)) ((= c 3) (if ... ... ... ... ... ... ...)) ((or ... ...) (org-detach-overlay org-tags-overlay) (setq quit-flag t)) ((= c 32) (setq current nil) (if exit-after-next ...)) ((= c 9) (condition-case nil ... ...) (when ... ... ...) (if exit-after-next ...)) ((setq e ... tg ...) (with-current-buffer buf ...) (if exit-after-next ...)) ((setq e ... tg ...) (if ... ... ... ...) (if exit-after-next ...))) (setq current (sort current (lambda ... ...))) (if (eq exit-after-next (quote now)) (throw (quote exit) t)) (goto-char (point-min)) (beginning-of-line 2) (delete-region (point) (point-at-eol)) (org-fast-tag-insert "Current" current c-face) (org-set-current-tags-overlay current ov-prefix) (while (re-search-forward (org-re "\\[.\\] \\([[:alnum:]_@#%]+\\)") nil t) (setq tg (match-string 1)) (add-text-properties (match-beginning 1) (match-end 1) (list ... ...))) (goto-char (point-min))))) (org-detach-overlay org-tags-overlay) (if rtn (mapconcat (quote identity) current ":") nil)))
  org-fast-tag-selection(nil nil (("tag_a" . 97) ("tag_b" . 98) ("Personal")) nil)
  (if (or (eq t org-use-fast-tag-selection) (and org-use-fast-tag-selection (delq nil (mapcar (quote cdr) table)))) (org-fast-tag-selection current-tags inherited-tags table (if org-fast-tag-selection-include-todo org-todo-key-alist)) (let ((org-add-colon-after-tag-completion (< 1 (length table)))) (org-trim (org-icompleting-read "Tags: " (quote org-tags-completion-function) nil nil current (quote org-tags-history)))))
  (setq table (append org-tag-persistent-alist org-tag-alist (org-get-buffer-tags) (and org-complete-tags-always-offer-all-agenda-tags (org-global-tags-completion-table (org-agenda-files)))) org-last-tags-completion-table table current-tags (org-split-string current ":") inherited-tags (nreverse (nthcdr (length current-tags) (nreverse (org-get-tags-at)))) tags (if (or (eq t org-use-fast-tag-selection) (and org-use-fast-tag-selection (delq nil (mapcar (quote cdr) table)))) (org-fast-tag-selection current-tags inherited-tags table (if org-fast-tag-selection-include-todo org-todo-key-alist)) (let ((org-add-colon-after-tag-completion (< 1 (length table)))) (org-trim (org-icompleting-read "Tags: " (quote org-tags-completion-function) nil nil current (quote org-tags-history))))))
  (save-excursion (setq table (append org-tag-persistent-alist org-tag-alist (org-get-buffer-tags) (and org-complete-tags-always-offer-all-agenda-tags (org-global-tags-completion-table (org-agenda-files)))) org-last-tags-completion-table table current-tags (org-split-string current ":") inherited-tags (nreverse (nthcdr (length current-tags) (nreverse (org-get-tags-at)))) tags (if (or (eq t org-use-fast-tag-selection) (and org-use-fast-tag-selection (delq nil (mapcar (quote cdr) table)))) (org-fast-tag-selection current-tags inherited-tags table (if org-fast-tag-selection-include-todo org-todo-key-alist)) (let ((org-add-colon-after-tag-completion (< 1 (length table)))) (org-trim (org-icompleting-read "Tags: " (quote org-tags-completion-function) nil nil current (quote org-tags-history)))))))
  (if just-align (setq tags current) (save-excursion (setq table (append org-tag-persistent-alist org-tag-alist (org-get-buffer-tags) (and org-complete-tags-always-offer-all-agenda-tags (org-global-tags-completion-table (org-agenda-files)))) org-last-tags-completion-table table current-tags (org-split-string current ":") inherited-tags (nreverse (nthcdr (length current-tags) (nreverse (org-get-tags-at)))) tags (if (or (eq t org-use-fast-tag-selection) (and org-use-fast-tag-selection (delq nil (mapcar ... table)))) (org-fast-tag-selection current-tags inherited-tags table (if org-fast-tag-selection-include-todo org-todo-key-alist)) (let ((org-add-colon-after-tag-completion (< 1 ...))) (org-trim (org-icompleting-read "Tags: " (quote org-tags-completion-function) nil nil current (quote org-tags-history))))))) (while (string-match "[-+&]+" tags) (setq tags (replace-match ":" t t tags))))
  (if arg (save-excursion (goto-char (point-min)) (let ((buffer-invisibility-spec (org-inhibit-invisibility))) (while (re-search-forward re nil t) (org-set-tags nil t) (end-of-line 1))) (message "All tags realigned to column %d" org-tags-column)) (if just-align (setq tags current) (save-excursion (setq table (append org-tag-persistent-alist org-tag-alist (org-get-buffer-tags) (and org-complete-tags-always-offer-all-agenda-tags (org-global-tags-completion-table (org-agenda-files)))) org-last-tags-completion-table table current-tags (org-split-string current ":") inherited-tags (nreverse (nthcdr (length current-tags) (nreverse (org-get-tags-at)))) tags (if (or (eq t org-use-fast-tag-selection) (and org-use-fast-tag-selection (delq nil ...))) (org-fast-tag-selection current-tags inherited-tags table (if org-fast-tag-selection-include-todo org-todo-key-alist)) (let ((org-add-colon-after-tag-completion ...)) (org-trim (org-icompleting-read "Tags: " ... nil nil current ...)))))) (while (string-match "[-+&]+" tags) (setq tags (replace-match ":" t t tags)))) (setq tags (replace-regexp-in-string "[,]" ":" tags)) (if org-tags-sort-function (setq tags (mapconcat (quote identity) (sort (org-split-string tags (org-re "[^[:alnum:]_@#%]+")) org-tags-sort-function) ":"))) (if (string-match "\\`[   ]*\\'" tags) (setq tags "") (unless (string-match ":$" tags) (setq tags (concat tags ":"))) (unless (string-match "^:" tags) (setq tags (concat ":" tags)))) (beginning-of-line 1) (setq level (or (and (looking-at org-outline-regexp) (- (match-end 0) (point) 1)) 1)) (cond ((and (equal current "") (equal tags ""))) ((re-search-forward (concat "\\([  ]*" (regexp-quote current) "\\)[  ]*$") (point-at-eol) t) (if (equal tags "") (setq rpl "") (goto-char (match-beginning 0)) (setq c0 (current-column) di (if org-indent-mode (* (1- org-indent-indentation-per-level) (1- level)) 0) p0 (if (equal (char-before) 42) (1+ (point)) (point)) tc (+ org-tags-column (if (> org-tags-column 0) (- di) di)) c1 (max (1+ c0) (if (> tc 0) tc (- ... ...))) rpl (concat (make-string (max 0 ...) 32) tags))) (replace-match rpl t t) (and (not (featurep (quote xemacs))) c0 indent-tabs-mode (tabify p0 (point))) tags) (t (error "Tags alignment failed"))) (org-move-to-column col) (unless just-align (run-hooks (quote org-after-tags-change-hook))))
  (let* ((re org-outline-regexp-bol) (current (unless arg (org-get-tags-string))) (col (current-column)) (org-setting-tags t) table current-tags inherited-tags tags p0 c0 c1 rpl di tc level) (if arg (save-excursion (goto-char (point-min)) (let ((buffer-invisibility-spec (org-inhibit-invisibility))) (while (re-search-forward re nil t) (org-set-tags nil t) (end-of-line 1))) (message "All tags realigned to column %d" org-tags-column)) (if just-align (setq tags current) (save-excursion (setq table (append org-tag-persistent-alist org-tag-alist (org-get-buffer-tags) (and org-complete-tags-always-offer-all-agenda-tags (org-global-tags-completion-table ...))) org-last-tags-completion-table table current-tags (org-split-string current ":") inherited-tags (nreverse (nthcdr (length current-tags) (nreverse ...))) tags (if (or (eq t org-use-fast-tag-selection) (and org-use-fast-tag-selection ...)) (org-fast-tag-selection current-tags inherited-tags table (if org-fast-tag-selection-include-todo org-todo-key-alist)) (let (...) (org-trim ...))))) (while (string-match "[-+&]+" tags) (setq tags (replace-match ":" t t tags)))) (setq tags (replace-regexp-in-string "[,]" ":" tags)) (if org-tags-sort-function (setq tags (mapconcat (quote identity) (sort (org-split-string tags (org-re "[^[:alnum:]_@#%]+")) org-tags-sort-function) ":"))) (if (string-match "\\`[   ]*\\'" tags) (setq tags "") (unless (string-match ":$" tags) (setq tags (concat tags ":"))) (unless (string-match "^:" tags) (setq tags (concat ":" tags)))) (beginning-of-line 1) (setq level (or (and (looking-at org-outline-regexp) (- (match-end 0) (point) 1)) 1)) (cond ((and (equal current "") (equal tags ""))) ((re-search-forward (concat "\\([  ]*" (regexp-quote current) "\\)[  ]*$") (point-at-eol) t) (if (equal tags "") (setq rpl "") (goto-char (match-beginning 0)) (setq c0 (current-column) di (if org-indent-mode (* ... ...) 0) p0 (if (equal ... 42) (1+ ...) (point)) tc (+ org-tags-column (if ... ... di)) c1 (max (1+ c0) (if ... tc ...)) rpl (concat (make-string ... 32) tags))) (replace-match rpl t t) (and (not (featurep (quote xemacs))) c0 indent-tabs-mode (tabify p0 (point))) tags) (t (error "Tags alignment failed"))) (org-move-to-column col) (unless just-align (run-hooks (quote org-after-tags-change-hook)))))
  org-set-tags(nil nil)
  (if (or (org-at-heading-p) (and arg (org-before-first-heading-p))) (org-set-tags arg just-align) (save-excursion (org-back-to-heading t) (org-set-tags arg just-align)))
  org-set-tags-command(nil)
  call-interactively(org-set-tags-command nil nil)

On Mar 27, 2012, at 6:31 AM, Bastien wrote:

> Hi Mike,
> 
> Mike McLean <mike.mclean@pobox.com> writes:
> 
>> 8 Type tag_ followed by <TAB>
>> 
>> The expected result is a completion list of tag_a and tag_b, this
>> does not work and the Minibuffer prompts [No match]
> 
> Fixed.
> 
>> Note that if I were to remove the single characters
>> for tag_a and tag_b completion works for those two but not for
>> the Personal tag from the file
> 
> Fixed.
> 
>> Shouldn't free tag entry always show all possible tags, regardless of
>> the setting of or use of fast tag completion?
> 
> I think so -- thanks a lot for the detailed report.
> 
> Best,
> 
> -- 
> Bastien


[-- Attachment #2: Type: text/html, Size: 53870 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-30  0:43   ` Mike McLean
@ 2012-03-31  9:17     ` Bastien
  2012-04-02 15:26       ` Mike McLean
  0 siblings, 1 reply; 21+ messages in thread
From: Bastien @ 2012-03-31  9:17 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode

Hi Mike,

Mike McLean <mike.mclean@pobox.com> writes:

> Bastien
>
> I can verify that this has fixed the problem with tag completion not
> prompting for all tags. I see that commit
> 647396464d563634b980127673cf61769663407e has added a wrapper 
> (append that combines buffer-tags with (mapcar 'car table).
>
> This has, however, exposed a new bug and conflict
> with org-completion-use-ido that I can minimally reproduce below.

This is now fixed, thanks!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-31  9:17     ` Bastien
@ 2012-04-02 15:26       ` Mike McLean
  2012-04-02 15:27         ` Mike McLean
  2012-04-02 15:50         ` Bastien
  0 siblings, 2 replies; 21+ messages in thread
From: Mike McLean @ 2012-04-02 15:26 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org, Mike McLean

[-- Attachment #1: Type: text/plain, Size: 1004 bytes --]

Bastion

The dangers of minimal testing setups is rearing its ugly head. I can
confirm that your latest patch does fix the minimal example that I
provided. It does not, sadly, fix a similar case where the org-tag-alist
variable includes the :startgroup and :endgroup tokens. If you can my most
recent steps to reproduce, step 1.3, and add those tokens, the error is
"Wrong type argument: stringp, :endgroup"

Thank you for you patience :)

On Saturday, March 31, 2012, Bastien wrote:

> Hi Mike,
>
> Mike McLean <mike.mclean@pobox.com <javascript:;>> writes:
>
> > Bastien
> >
> > I can verify that this has fixed the problem with tag completion not
> > prompting for all tags. I see that commit
> > 647396464d563634b980127673cf61769663407e has added a wrapper
> > (append that combines buffer-tags with (mapcar 'car table).
> >
> > This has, however, exposed a new bug and conflict
> > with org-completion-use-ido that I can minimally reproduce below.
>
> This is now fixed, thanks!
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 1379 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-02 15:26       ` Mike McLean
@ 2012-04-02 15:27         ` Mike McLean
  2012-04-02 15:45           ` Bastien
  2012-04-02 15:50         ` Bastien
  1 sibling, 1 reply; 21+ messages in thread
From: Mike McLean @ 2012-04-02 15:27 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1235 bytes --]

Apologies, I blame my iOS spell check for the "correction" of the spelling
on your name :(

Of course I should have seen it before I hit send, too ... Sigh

On Monday, April 2, 2012, Mike McLean wrote:

> Bastion
>
> The dangers of minimal testing setups is rearing its ugly head. I can
> confirm that your latest patch does fix the minimal example that I
> provided. It does not, sadly, fix a similar case where the org-tag-alist
> variable includes the :startgroup and :endgroup tokens. If you can my most
> recent steps to reproduce, step 1.3, and add those tokens, the error is
> "Wrong type argument: stringp, :endgroup"
>
> Thank you for you patience :)
>
> On Saturday, March 31, 2012, Bastien wrote:
>
>> Hi Mike,
>>
>> Mike McLean <mike.mclean@pobox.com> writes:
>>
>> > Bastien
>> >
>> > I can verify that this has fixed the problem with tag completion not
>> > prompting for all tags. I see that commit
>> > 647396464d563634b980127673cf61769663407e has added a wrapper
>> > (append that combines buffer-tags with (mapcar 'car table).
>> >
>> > This has, however, exposed a new bug and conflict
>> > with org-completion-use-ido that I can minimally reproduce below.
>>
>> This is now fixed, thanks!
>>
>> --
>>  Bastien
>>
>

[-- Attachment #2: Type: text/html, Size: 1672 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-02 15:27         ` Mike McLean
@ 2012-04-02 15:45           ` Bastien
  0 siblings, 0 replies; 21+ messages in thread
From: Bastien @ 2012-04-02 15:45 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode@gnu.org

Mike McLean <mike.mclean@pobox.com> writes:

> Apologies, I blame my iOS spell check for the "correction" of the
> spelling on your name :(
>
> Of course I should have seen it before I hit send, too ... Sigh

No problem -- actually "Bastion" means "fortress" in french...  
that's an inspiring image for the resistence I try to show while
sorting out the current problems :)

-- 
 Bastien

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-02 15:26       ` Mike McLean
  2012-04-02 15:27         ` Mike McLean
@ 2012-04-02 15:50         ` Bastien
  2012-04-02 19:19           ` Mike McLean
                             ` (2 more replies)
  1 sibling, 3 replies; 21+ messages in thread
From: Bastien @ 2012-04-02 15:50 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode@gnu.org

Hi Mike,

Mike McLean <mike.mclean@pobox.com> writes:

> The dangers of minimal testing setups is rearing its ugly head. 

You bet :)

> I can
> confirm that your latest patch does fix the minimal example that I
> provided. It does not, sadly, fix a similar case where the
> org-tag-alist variable includes the :startgroup and :endgroup tokens.
> If you can my most recent steps to reproduce, step 1.3, and add those
> tokens, the error is "Wrong type argument: stringp, :endgroup"

Can you resubmit the full test case?

> Thank you for you patience :)

Thanks for your collaboration :)

-- 
 Bastien

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-02 15:50         ` Bastien
@ 2012-04-02 19:19           ` Mike McLean
  2012-04-02 19:19           ` Mike McLean
  2012-04-04  1:00           ` Mike McLean
  2 siblings, 0 replies; 21+ messages in thread
From: Mike McLean @ 2012-04-02 19:19 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org, Mike McLean

[-- Attachment #1: Type: text/plain, Size: 267 bytes --]

Yes,  but not until later tonight at the earliest. I have limited access to
personal email at work (iPad only) which is not conducive to emailing test
cases

On Monday, April 2, 2012, Bastien wrote:

>
> Can you resubmit the full test case?
>
>
>
> --
>  Bastien
>
>

[-- Attachment #2: Type: text/html, Size: 434 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Bug: Tag Completion Not Prompting for all tags
  2012-04-02 15:50         ` Bastien
  2012-04-02 19:19           ` Mike McLean
@ 2012-04-02 19:19           ` Mike McLean
  2012-04-04  1:00           ` Mike McLean
  2 siblings, 0 replies; 21+ messages in thread
From: Mike McLean @ 2012-04-02 19:19 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org, Mike McLean

[-- Attachment #1: Type: text/plain, Size: 220 bytes --]

Yes,  but not until later tonight at the earliest. I have limited access to
personal email at work (iPad only

On Monday, April 2, 2012, Bastien wrote:

>
> Can you resubmit the full test case?
>
>
>
> --
>  Bastien
>
>

[-- Attachment #2: Type: text/html, Size: 388 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-02 15:50         ` Bastien
  2012-04-02 19:19           ` Mike McLean
  2012-04-02 19:19           ` Mike McLean
@ 2012-04-04  1:00           ` Mike McLean
  2012-04-04 17:38             ` Mike McLean
  2 siblings, 1 reply; 21+ messages in thread
From: Mike McLean @ 2012-04-04  1:00 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 2669 bytes --]

OK - sorry, it took an extra day. Here is the new (third, and hopefully last) test case.

1 Steps to Reproduce:

1.1 Start Emacs clean

/Applications/Emacs.app/Contents/MacOS/Emacs -Q
1.1.1 Note: Emacs Version

M-x emacs-version <RET>
GNU Emacs 24.0.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-04-03 on bob.porkrind.org
1.2 Clone Git HEAD Org-Mode (to get the new commit)

$ git clone git://orgmode.org/org-mode.git
1.3 Load Cloned version of org-mode

Evaluate the following Lisp in *scratch*

(require 'ido)
(ido-mode t)

(setq load-path (cons "~/tmp/new-new-new/org-mode/lisp" load-path))
(setq load-path (cons "~/tmp/new-new-new/org-mode/contrib/lisp" load-path))
(require 'org-install)
(setq org-completion-use-ido t)
(setq org-tag-alist (quote (
                            (:startgroup)
                            ("tag_a" . ?a)
                            ("tag_b" . ?b)
                            (:endgroup)
                            ("tag_c" . ?c)
                            )))
1.4 Open the following org-mode file

* Header 1
** Header 1.1
* Header 2                                                                      :Personal:
1.4.1 Note: Org-Version

M-x org-version <RET>
release_7.8.07-201-g72d9
Org-mode version 7.8.08 (release_7.8.07.201.g72d9)
1.5 Point should be on the first asterisk for “Header 1”

1.6 Type C-c C-q to bring up Tag selection

The expected result is the fast tag selection window-split; this works

1.7 Type <TAB> to enter free tag selection

The expected result is that the Minibuffer prompts with Tag: and the ido completion (this works)

1.8 Type t to begin to ido select one of the tags

The expected result is the ido completion narrowing the choices; the result

Error in post-command-hook (ido-exhibit): (wrong-type-argument sequencep 97)
Note that M-x toggle-debug-on-error doesn’t show anything different than the above.


On Apr 2, 2012, at 11:50 AM, Bastien wrote:

> Hi Mike,
> 
> Mike McLean <mike.mclean@pobox.com> writes:
> 
>> The dangers of minimal testing setups is rearing its ugly head. 
> 
> You bet :)
> 
>> I can
>> confirm that your latest patch does fix the minimal example that I
>> provided. It does not, sadly, fix a similar case where the
>> org-tag-alist variable includes the :startgroup and :endgroup tokens.
>> If you can my most recent steps to reproduce, step 1.3, and add those
>> tokens, the error is "Wrong type argument: stringp, :endgroup"
> 
> Can you resubmit the full test case?
> 
>> Thank you for you patience :)
> 
> Thanks for your collaboration :)
> 
> -- 
> Bastien
> 


[-- Attachment #2: Type: text/html, Size: 14980 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-04  1:00           ` Mike McLean
@ 2012-04-04 17:38             ` Mike McLean
  0 siblings, 0 replies; 21+ messages in thread
From: Mike McLean @ 2012-04-04 17:38 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 3259 bytes --]

FYI

I saw the other thread related to org-tag-fast-selection and Ido mode, so I
just re tested my minimal example below. I get the same error with:

release_7.8.07-207-g5d9c
Org-mode version 7.8.08 (release_7.8.07.207.g5d9c)

This version includes the April 3 commit e48d67ed6 that mentions "bug when
gathering tag completion options"

Mike

On Tuesday, April 3, 2012, Mike McLean wrote:

> OK - sorry, it took an extra day. Here is the new (third, and hopefully
> last) test case.
> 1 Steps to Reproduce:
> 1.1 Start Emacs clean
>
> /Applications/Emacs.app/Contents/MacOS/Emacs -Q
>
> 1.1.1 Note: Emacs Version
>
> M-x emacs-version <RET>
> GNU Emacs 24.0.95.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2012-04-03 on bob.porkrind.org
>
> 1.2 Clone Git HEAD Org-Mode (to get the new commit)
>
> $ git clone git://orgmode.org/org-mode.git
>
> 1.3 Load Cloned version of org-mode
>
> Evaluate the following Lisp in *scratch*
>
> (require 'ido)
> (ido-mode t)
>
> (setq load-path (cons "~/tmp/new-new-new/org-mode/lisp" load-path))
> (setq load-path (cons "~/tmp/new-new-new/org-mode/contrib/lisp" load-path))
> (require 'org-install)
> (setq org-completion-use-ido t)
> (setq org-tag-alist (quote (
>                             (:startgroup)
>                             ("tag_a" . ?a)
>                             ("tag_b" . ?b)
>                             (:endgroup)
>                             ("tag_c" . ?c)
>                             )))
>
> 1.4 Open the following org-mode file
>
> * Header 1
> ** Header 1.1
> * Header 2                                                                      :Personal:
>
> 1.4.1 Note: Org-Version
>
> M-x org-version <RET>
> release_7.8.07-201-g72d9
> Org-mode version 7.8.08 (release_7.8.07.201.g72d9)
>
> 1.5 Point should be on the first asterisk for “Header 1”
> 1.6 Type C-c C-q to bring up Tag selection
>
> The expected result is the fast tag selection window-split; this works
> 1.7 Type <TAB> to enter free tag selection
>
> The expected result is that the Minibuffer prompts with Tag: and the ido completion
> (this works)
> 1.8 Type t to begin to ido select one of the tags
>
> The expected result is the ido completion narrowing the choices; the
> result
>
> Error in post-command-hook (ido-exhibit): (wrong-type-argument sequencep 97)
>
> Note that M-x toggle-debug-on-error doesn’t show anything different than
> the above.
>
> On Apr 2, 2012, at 11:50 AM, Bastien wrote:
>
> Hi Mike,
>
> Mike McLean <mike.mclean@pobox.com <javascript:_e({}, 'cvml',
> 'mike.mclean@pobox.com');>> writes:
>
> The dangers of minimal testing setups is rearing its ugly head.
>
>
> You bet :)
>
> I can
>
> confirm that your latest patch does fix the minimal example that I
>
> provided. It does not, sadly, fix a similar case where the
>
> org-tag-alist variable includes the :startgroup and :endgroup tokens.
>
> If you can my most recent steps to reproduce, step 1.3, and add those
>
> tokens, the error is "Wrong type argument: stringp, :endgroup"
>
>
> Can you resubmit the full test case?
>
> Thank you for you patience :)
>
>
> Thanks for your collaboration :)
>
> --
> Bastien
>
>
>

[-- Attachment #2: Type: text/html, Size: 13092 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-27 10:31 ` Bastien
  2012-03-30  0:43   ` Mike McLean
@ 2012-04-06  4:38   ` Matt Lundin
  2012-04-10 18:48   ` Mike McLean
  2 siblings, 0 replies; 21+ messages in thread
From: Matt Lundin @ 2012-04-06  4:38 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Mike McLean

Hi Bastien,

Bastien <bzg@gnu.org> writes:

> Hi Mike,
>
> Mike McLean <mike.mclean@pobox.com> writes:
>
>> 8 Type tag_ followed by <TAB>
>>
>> The expected result is a completion list of tag_a and tag_b, this
>> does not work and the Minibuffer prompts [No match]
>
> Fixed.
>
>> Note that if I were to remove the single characters
>> for tag_a and tag_b completion works for those two but not for
>> the Personal tag from the file
>
> Fixed.
>
>> Shouldn't free tag entry always show all possible tags, regardless of
>> the setting of or use of fast tag completion?
>
> I think so -- thanks a lot for the detailed report.

This change (commit acc7a0b2) has the effect of adding buffer tags to
the fast tag completion window (and assigning them arbitrary shortcuts).
Historically, only tags explicitly defined in org-tag-alist or via an
in-buffer heading show up in the fast tag completion window. In
addition, tags now show up in the window twice with different shortcuts
(once if defined in org-tag-alist, and once if they appear in the
buffer).

Best,
Matt

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-24 15:50 Bug: Tag Completion Not Prompting for all tags Mike McLean
  2012-03-24 16:03 ` Bastien
  2012-03-27 10:31 ` Bastien
@ 2012-04-10 16:38 ` Bastien
  2012-04-10 18:40   ` Mike McLean
  2 siblings, 1 reply; 21+ messages in thread
From: Bastien @ 2012-04-10 16:38 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode

Hi Mike,

I just reverted the commits I pushed for fixing this "issue".

Mike McLean <mike.mclean@pobox.com> writes:

> The expected result is a completion list of tag_a and tag_b, this
> does not work and the Minibuffer prompts [No match]

I cannot do any better than to quote Matt Lundin on this:

"Historically, only tags explicitly defined in org-tag-alist or via an
in-buffer heading show up in the fast tag completion window."

So, let's stick to the current behavior.

Thanks for your patience!

-- 
 Bastien

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-10 16:38 ` Bastien
@ 2012-04-10 18:40   ` Mike McLean
  2012-04-11  8:08     ` Bastien
  0 siblings, 1 reply; 21+ messages in thread
From: Mike McLean @ 2012-04-10 18:40 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org, Mike McLean

[-- Attachment #1: Type: text/plain, Size: 1221 bytes --]

Interesting

The very first report I submitted (
http://comments.gmane.org/gmane.emacs.orgmode/53824 ) showed the historic
behavior correct (the two tags defined in org-tag-alist show up in the fast
tag completion window). The "bug" was after shifting to free tag selection
mode, the tags defined in org-tag-alist are not available for completion.

The behavior that Matt Lundin reported was/is a side effect of the fix
(implementation). I think that the idea of the fix is valid, e.g. the free
tag entry should autocomplete tags defined in org-tag-alist to match the
behavior of the fast tag completion window.

On Tuesday, April 10, 2012, Bastien wrote:

> Hi Mike,
>
> I just reverted the commits I pushed for fixing this "issue".
>
> Mike McLean <mike.mclean@pobox.com <javascript:;>> writes:
>
> > The expected result is a completion list of tag_a and tag_b, this
> > does not work and the Minibuffer prompts [No match]
>
> I cannot do any better than to quote Matt Lundin on this:
>
> "Historically, only tags explicitly defined in org-tag-alist or via an
> in-buffer heading show up in the fast tag completion window."
>
> So, let's stick to the current behavior.
>
> Thanks for your patience!
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 1719 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-03-27 10:31 ` Bastien
  2012-03-30  0:43   ` Mike McLean
  2012-04-06  4:38   ` Matt Lundin
@ 2012-04-10 18:48   ` Mike McLean
  2 siblings, 0 replies; 21+ messages in thread
From: Mike McLean @ 2012-04-10 18:48 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org, Mike McLean

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

On Tuesday, March 27, 2012, Bastien wrote:

>
> > Shouldn't free tag entry always show all possible tags, regardless of
> > the setting of or use of fast tag completion?
>
> I think so -- thanks a lot for the detailed report.


Yes, this is the crux of the problem as first reported. Note that the fixes
were in two parts because the first patch worked without
org-completion-use-ido (part of a minimal test case) and the second attempt
was to fix it with org-completion-use-ido enabled.

[-- Attachment #2: Type: text/html, Size: 666 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-10 18:40   ` Mike McLean
@ 2012-04-11  8:08     ` Bastien
  2012-04-11 11:57       ` Mike McLean
  0 siblings, 1 reply; 21+ messages in thread
From: Bastien @ 2012-04-11  8:08 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode@gnu.org

Hi Mike,

Mike McLean <mike.mclean@pobox.com> writes:

> The "bug" was after shifting to free tag selection mode, the
> tags defined in org-tag-alist are not available for completion. 

Not sure I understand.  Do you suggest there is still a bug, 
considering that we want to skip to Matt's quote about "historical
behavior"?  Please let me know if so.

-- 
 Bastien

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-11  8:08     ` Bastien
@ 2012-04-11 11:57       ` Mike McLean
  2012-04-11 12:11         ` Mike McLean
  0 siblings, 1 reply; 21+ messages in thread
From: Mike McLean @ 2012-04-11 11:57 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode@gnu.org, Mike McLean

[-- Attachment #1: Type: text/plain, Size: 901 bytes --]

Yes, there is still the original bug (re-occurring after the reverts).
Matt's comment was accurate but related to the implementation of the fix
not th concept of the bug. If you switch two free-tag entry mode from fast
tag selection, the tags listed in the alist are not available for
completion.

The trick, it appears, is to fix this in a way that a) works with and
without Ido mode and b) doesn't also introduce the duplication that Matt
reported.

On Wednesday, April 11, 2012, Bastien wrote:

> Hi Mike,
>
> Mike McLean <mike.mclean@pobox.com <javascript:;>> writes:
>
> > The "bug" was after shifting to free tag selection mode, the
> > tags defined in org-tag-alist are not available for completion.
>
> Not sure I understand.  Do you suggest there is still a bug,
> considering that we want to skip to Matt's quote about "historical
> behavior"?  Please let me know if so.
>
> --
>  Bastien
>

[-- Attachment #2: Type: text/html, Size: 1235 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: Bug: Tag Completion Not Prompting for all tags
  2012-04-11 11:57       ` Mike McLean
@ 2012-04-11 12:11         ` Mike McLean
  0 siblings, 0 replies; 21+ messages in thread
From: Mike McLean @ 2012-04-11 12:11 UTC (permalink / raw)
  To: Mike McLean; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1028 bytes --]

And c) with :startgroup and :endgroup in the alist :)

On Wednesday, April 11, 2012, Mike McLean wrote:

> Yes, there is still the original bug (re-occurring after the reverts).
> Matt's comment was accurate but related to the implementation of the fix
> not th concept of the bug. If you switch two free-tag entry mode from fast
> tag selection, the tags listed in the alist are not available for
> completion.
>
> The trick, it appears, is to fix this in a way that a) works with and
> without Ido mode and b) doesn't also introduce the duplication that Matt
> reported.
>
> On Wednesday, April 11, 2012, Bastien wrote:
>
>> Hi Mike,
>>
>> Mike McLean <mike.mclean@pobox.com> writes:
>>
>> > The "bug" was after shifting to free tag selection mode, the
>> > tags defined in org-tag-alist are not available for completion.
>>
>> Not sure I understand.  Do you suggest there is still a bug,
>> considering that we want to skip to Matt's quote about "historical
>> behavior"?  Please let me know if so.
>>
>> --
>>  Bastien
>>
>

[-- Attachment #2: Type: text/html, Size: 1396 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-04-11 12:12 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-24 15:50 Bug: Tag Completion Not Prompting for all tags Mike McLean
2012-03-24 16:03 ` Bastien
2012-03-24 16:43   ` Mike McLean
2012-03-27 10:31 ` Bastien
2012-03-30  0:43   ` Mike McLean
2012-03-31  9:17     ` Bastien
2012-04-02 15:26       ` Mike McLean
2012-04-02 15:27         ` Mike McLean
2012-04-02 15:45           ` Bastien
2012-04-02 15:50         ` Bastien
2012-04-02 19:19           ` Mike McLean
2012-04-02 19:19           ` Mike McLean
2012-04-04  1:00           ` Mike McLean
2012-04-04 17:38             ` Mike McLean
2012-04-06  4:38   ` Matt Lundin
2012-04-10 18:48   ` Mike McLean
2012-04-10 16:38 ` Bastien
2012-04-10 18:40   ` Mike McLean
2012-04-11  8:08     ` Bastien
2012-04-11 11:57       ` Mike McLean
2012-04-11 12:11         ` Mike McLean

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).