From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id JjCCCy52r1/aPgAA0tVLHw (envelope-from ) for ; Sat, 14 Nov 2020 06:16:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 6E0dBy52r19vKQAA1q6Kng (envelope-from ) for ; Sat, 14 Nov 2020 06:16:14 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9893994011C for ; Sat, 14 Nov 2020 06:16:13 +0000 (UTC) Received: from localhost ([::1]:58822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kdor4-0001cL-Qe for larch@yhetil.org; Sat, 14 Nov 2020 01:16:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:49828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdoqf-0001ao-Fh for emacs-orgmode@gnu.org; Sat, 14 Nov 2020 01:15:45 -0500 Received: from mail-ua1-x92e.google.com ([2607:f8b0:4864:20::92e]:42874) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kdoqc-0002Kl-UH for emacs-orgmode@gnu.org; Sat, 14 Nov 2020 01:15:45 -0500 Received: by mail-ua1-x92e.google.com with SMTP id v16so3716317uat.9 for ; Fri, 13 Nov 2020 22:15:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cTYDY3sPx5h4i8/KOTcbWZeRn0xnT/Lre7+0QbFeH70=; b=PfweH/CmFypn2r1TiKG84t/F2naD3dAEeDdcS6DtdwLac4gIDgpBaunQk50LRy9FXD Ro9R4JOTQ5WGo0wCC6ioMbiez+FrEv8kQdJ3ZfUlCfD+xbTtktb7PYaaFK2qhJQuSmt1 TRsWKlGEJS9Gh2vURa0GGw4XIKlyJTKyZZ9JgBNgBiRSk4dCSB+gj6c4r11WbwvhEaFX jBz21Bbu+qzuBBf1g6HvVAOH8eZwOnimMDcQ6YELVTYGBUQOCihZ5p76iyUkSTLBOWtl F2MpXI4QExBiB0IhjQQgMmVE1+vMHC0kH2bIrJe6RLV/yWPElR1uBfh+F4OxOGLw/5An eyOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cTYDY3sPx5h4i8/KOTcbWZeRn0xnT/Lre7+0QbFeH70=; b=pEUBA+7GWMga3+/7dcCa224ehAm6Tc8cdxAxjPC59WVx/DoPsFGiO1dFly1VUhT8Dg 4IuteWytIxRxW7EBirauZAN9NFPIpowO3C5k40LHRdHXd70fugSi+gWTkBvGkoQD+cC1 BeCFeWxOa8YoL6Gmp0AgjiG71si7DuD2mj3uz5qDQgwlXp25JuLPUrd+1hImbTO3WUFs lvVplcasT62oSsNx10xTVFZh9AdDYXWgdGDdnoea6P7MvJvdwP/qXI5+byjQPfgvzxUJ KpDyapsHK2NW+lY71pRc3ByF0Srpnr3qMOQSplqsJVEv+xN/cD1tRFHby+l4VtisPI4T 4tsQ== X-Gm-Message-State: AOAM53138bqUaR4T5pkYwe0BCzPqsMfKBl4hZ4AbLAQYsKl4+uvvWrg0 TZ40J2owAPzVauaE32c1K50IG1q8hg+0b5ueEfOg61eW2c0U X-Google-Smtp-Source: ABdhPJz/YGwyBbWVpA8xIijOK6EatN+Wxs0rd0NePkHRP2X5Pn276zqGu7BnruiXBSaIcaeeHTXklC/5BhtuWVzFJio= X-Received: by 2002:ab0:6f4e:: with SMTP id r14mr3383850uat.109.1605334541066; Fri, 13 Nov 2020 22:15:41 -0800 (PST) MIME-Version: 1.0 From: stardiviner Date: Sat, 14 Nov 2020 14:15:14 +0800 Message-ID: Subject: [SUGGESTION] Let org-set-tags-command TAB complete with more tags. To: Org-mode Content-Type: multipart/alternative; boundary="00000000000010e53505b40b131f" Received-SPF: pass client-ip=2607:f8b0:4864:20::92e; envelope-from=numbchild@gmail.com; helo=mail-ua1-x92e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=PfweH/Cm; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: sNZ6JyYoI0RX --00000000000010e53505b40b131f Content-Type: text/plain; charset="UTF-8" Currently press [TAB] key in `org-set-tags-command` will provide current buffer tags as completion candidates. This is very less. I suggest providing all tags in candidates. Here is a modification. #+begin_src diff modified lisp/org.el @@ -12254,12 +12254,7 @@ (defun org-fast-tag-selection (current inherited table &optional todo-table) (when exit-after-next (setq exit-after-next 'now))) ((= c ?\t) (condition-case nil - (setq tg (completing-read - "Tag: " - (or buffer-tags - (with-current-buffer buf - (setq buffer-tags - (org-get-buffer-tags)))))) + (setq tg (completing-read "Tag: " (org-global-tags-completion-table))) (quit (setq tg ""))) (when (string-match "\\S-" tg) (cl-pushnew (list tg) buffer-tags :test #'equal) #+end_src The Org Mode has `org-tag-alist` for user to setting default fast-selection tags group. I don't know whether function `(org-global-tags-completion-table)` already merged with `org-tag-alist`. It seems only get tags from all Agenda files after I checked out its source code. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ --00000000000010e53505b40b131f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Currently press [TAB] key in `org-set-tags-command` will p= rovide current buffer tags as completion candidates. This is very less.
Here is a modifica= tion.

#+begin_src diff
modified =C2=A0 lisp/org.el
@@ = -12254,12 +12254,7 @@ (defun org-fast-tag-selection (current inherited tabl= e &optional todo-table)
=C2=A0 =C2=A0 =C2=A0(when exit-after-next = (setq exit-after-next 'now)))
=C2=A0 =C2=A0 ((=3D c ?\t)
=C2=A0= =C2=A0 =C2=A0(condition-case nil
- (setq tg (completing-read
- = =C2=A0"Tag: "
- =C2=A0(or buffer-tags
- =C2=A0 = =C2=A0 =C2=A0(with-current-buffer buf
- (setq buffer-tags
- = =C2=A0 =C2=A0 =C2=A0(org-get-buffer-tags))))))
+ (setq tg (completing-= read "Tag: " (org-global-tags-completion-table)))
=C2=A0 =C2= =A0 =C2=A0 =C2=A0(quit (setq tg "")))
=C2=A0 =C2=A0 =C2=A0(w= hen (string-match "\\S-" tg)
=C2=A0 =C2=A0 =C2=A0 =C2=A0(cl-= pushnew (list tg) buffer-tags :test #'equal)
#+end_src


[stardiviner]= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 <Hack this = world!>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 GPG key ID: 47C32433
IRC(freeen= ode): stardiviner =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Twitter:=C2=A0 @n= umbchild
Key fingerprint =3D 9BAA 92BC CDDD B9EF 3B36=C2=A0 CB99 B8C4 B8= E5 47C3 2433
Blog: http://stardiviner.github.io/
<= /div> --00000000000010e53505b40b131f--