From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shavkat Rustamov Subject: (org-use-fast-tag-selection (quote auto)) - problem with TAB Completion and non ASCII tag selection characters [\200] Date: Fri, 13 Feb 2015 13:22:23 +0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d043c81fa08abee050ef3f2fc Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMBWu-0005lp-SX for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 03:23:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMBWq-0003qS-EV for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 03:23:15 -0500 Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:42827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMBWq-0003qC-4K for emacs-orgmode@gnu.org; Fri, 13 Feb 2015 03:23:12 -0500 Received: by mail-wi0-f180.google.com with SMTP id h11so10217224wiw.1 for ; Fri, 13 Feb 2015 00:23:11 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --f46d043c81fa08abee050ef3f2fc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have =E2=80=8B one =E2=80=8B persistent tag =E2=80=8B =E2=80=8B set with a key character like this: '(org-tag-persistent-alist (quote (("a" . 97)))) There are no file based #+TAGS in any of org files. I also like to have access to all tags in all files, so I set this up: (org-complete-tags-always-offer-all-agenda-tags t) Finally I'd like to have a fast selection splash screen: (org-use-fast-tag-selection (quote auto)) Now the problems: =E2=80=8B1. =E2=80=8B Running C-q in an org file on a heading shows a fast selection splash windo= w =E2=80=8B. =E2=80=8B =E2=80=8B =E2=80=8B It shows all the tags from all the org files. =E2=80=8B The main problem is that apart from [a] defined in org-tag-persistent-alist other characters are =E2=80=8B assigned =E2=80=8B for =E2=80=8B fast pick =E2=80=8B randomly =E2=80=8B and =E2=80=8B are not only 'a-z', but also seemingly =E2=80=8B non-ASCII characters which are shown as: - [\200] tagname1 - [\204] tagname2 - etc There seems to be no way to select tagname1 or tagname2. 2. With all the above variables unchanged hitting the TAB here for selection of tags in the minibuffer only allows tags already in the file, ignoring the (org-complete-tags-always-offer-all-agenda-tags t) variable. Disabling =E2=80=8B ' =E2=80=8B org-use-fast-tag-selection =E2=80=8B ' by setting it =E2=80=8B to 'nil' =E2=80=8B and hitting TAB after C-q produces ':' and the Completions buffer is not opened. However, typing a first character of a tag, say 'b' and hitting TAB opens 'Completions' buffer and lists all tags starting with 'b' =E2=80=8B . Note that org ido completion (which would be shown as 'Ido Completions' buffer name) is not used although (org-completion-use-ido t) if (org-use-fast-tag-selection (quote =E2=80=8B nil =E2=80=8B )) =E2=80=8B . =E2=80=8B 3. =E2=80=8BI =E2=80=8B n addition to problem 1., and problem 2., TAB does not show a full list of tags in the Completions buffer =E2=80=8B which start with 'a' {probably due to the tag 'a' =E2=80=8B defined above}, but selecting another starting letter and hitting TAB opens Completion buffer with all tags starting with 'b' =E2=80=8B . So, fast select seems broken. I would expect it behave like this: 1. having (org-complete-tags-always-offer-all-agenda-tags t) and (org-use-fast-tag-selection (quote auto)) should limit the tags selection to ASCII only characters or offer double character selection like [aa]-[zz] if there are more tags that az permits. Use numbers perhaps too?. 2. If 1. is not possible then perhaps limit the characters to =E2=80=8B ' =E2=80=8B a =E2=80=8B - =E2=80=8B z =E2=80=8B ' =E2=80=8B and leaving other tags out of the fast select but allow TAB to choose all tags in all org files using org-ido? I'm forced currently to disable (org-use-fast-tag-selection (quote auto)) setting it to (org-use-fast-tag-selection (quote =E2=80=8B nil =E2=80=8B )) and use the Completions buffer, which =E2=80=8B seems to work more consistently. --f46d043c81fa08abee050ef3f2fc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have
=E2=80=8B =C2=A0
one
=E2=80=8B
persistent tag
=E2=80=8B
=E2=80=8B =C2=A0
set with a key character like this:
=C2=A0'= ;(org-tag-persistent-alist (quote (("a" . 97))))

There are= no file based #+TAGS in any of org files.

I also like to have acces= s to all tags in all files, so I set this up:
(org-complete-tags-always-= offer-all-agenda-tags t)
=C2=A0
Finally I'd like to have a fast s= election splash screen:
(org-use-fast-tag-selection (quote auto)) =C2=A0=

Now the problems:

=E2=80=8B1. =E2=80=8B
R= unning C-q in an org file on a heading shows a fast selection splash window=
=E2=80=8B. =E2=80=8B
=E2=80=8B
=E2=80=8B
It shows all the tags from all the org files.
=E2=80=8B
The main problem is that
=C2=A0
= apart from [a] defined in org-tag-persistent-alist other characters are=E2=80=8B =C2=A0
assigned
=E2=80=8B =C2=A0for
=E2=80=8B =C2=A0
=C2=A0fast pick
=E2= =80=8B =C2=A0
randomly
=E2=80=8B =C2=A0
and
=E2=80=8B =C2=A0
are not only 'a-z', =C2=A0but also
=C2=A0
seemingly
=E2=80=8B =C2=A0
non-ASCII= characters which are shown as:
- [\200] tagname1
- [\204] tagname2- etc
There seems to be no way to select tagname1 or tagname2.

= 2. With all the above variables unchanged hitting the TAB here for selectio= n of tags in the minibuffer only allows tags already in the file, ignoring = the (org-complete-tags-always-offer-all-agenda-tags t) variable. Disabling =
=E2=80=8B =C2=A0
'
=E2=80=8B
org-u= se-fast-tag-selection
=E2=80=8B
' by setting it
=E2=80=8B
=C2=A0
to
=C2=A0=C2= =A0
'nil'
=E2=80=8B =C2=A0
=C2=A0and hitting= TAB after C-q
produces ':' and the Completions buffer is not o= pened. However, typing a first character of a tag, say 'b' and hitt= ing TAB opens 'Completions' buffer and lists all tags starting with= 'b'
=E2=80=8B
.

Note that org ido comple= tion (which would be shown as 'Ido Completions' buffer name) is not= used although =C2=A0(org-completion-use-ido t) if
(org-use-fast-tag-se= lection (quote
=E2=80=8B =C2=A0
nil
=E2=80= =8B =C2=A0
))
=E2=80=8B =C2=A0
.
=E2=80= =8B =C2=A0
=C2=A0

3.
=E2=80=8BI
=E2=80=8B
n addition to problem 1., and problem 2., TAB does not s= how a full list of tags in the Completions buffer
=E2=80=8B which start with 'a' {probably due to the tag 'a'
=E2=80=8B
defined above}, but selecting another starting let= ter and hitting TAB opens Completion buffer with all tags starting with = 9;b'
=E2=80=8B =C2=A0
.

So, fast select seems = broken.

I would expect it behave like this:

1. having (org-co= mplete-tags-always-offer-all-agenda-tags t) and (org-use-fast-tag-selection= (quote auto)) should limit the tags selection to ASCII only characters or = offer double character selection like [aa]-[zz] if there are more tags that= az permits. Use numbers perhaps too?.
2. If 1. is not possible then per= haps limit the characters to
=E2=80=8B =C2=A0
'
=E2=80=8B
a
=E2=80=8B=C2=A0
-
=E2=80=8B
z
=E2=80=8B
'
=E2=80=8B= =C2=A0
=C2=A0and leaving other tags out of the fast select but allow = TAB to choose all tags in all org files using org-ido?

I'm force= d currently to disable (org-use-fast-tag-selection (quote auto)) =C2=A0sett= ing it to =C2=A0(org-use-fast-tag-selection (quote
=E2=80=8B<= /div>nil
=E2=80=8B
)) and use the Completions buffer, whi= ch
=E2=80=8B
seems to work more consistently.
--f46d043c81fa08abee050ef3f2fc--