From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carlos Pita Subject: Re: Bug: Bad alignment of grouped tags in fast selection dialog [9.2.1 (release_9.2.1-60-gb0379f @ /home/carlos/local/stow/emacs/share/emacs/site-lisp/org/)] Date: Tue, 12 Feb 2019 18:02:00 -0300 Message-ID: References: <87bm3gepff.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0000000000003d678d0581b8bd70" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:58882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtfC4-00029W-2F for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 16:02:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtfC3-0004ri-6t for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 16:02:16 -0500 Received: from mail-yw1-xc30.google.com ([2607:f8b0:4864:20::c30]:44056) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtfC2-0004qC-Sj for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 16:02:15 -0500 Received: by mail-yw1-xc30.google.com with SMTP id x21so29724ywx.11 for ; Tue, 12 Feb 2019 13:02:14 -0800 (PST) In-Reply-To: <87bm3gepff.fsf@gmail.com> 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" To: emacs-orgmode --0000000000003d678d0581b8bd70 Content-Type: text/plain; charset="UTF-8" Ok, this was easier than I initially thought. Here is a patch. I've tested it with a number of configurations: a few grouped tags, many grouped tags, grouped tags that fill the last line entirely, grouped and ungrouped tags. Notice that even ungrouped tags are indented by two spaces. This is done because some tags may be grouped while other not. In case no tag is grouped this is adding an extra initial space but I think removing it is not worth the check "is everything ungrouped?". Best regards -- Carlos --0000000000003d678d0581b8bd70 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-org-Fix-fast-tag-selection-menu-alignment.patch" Content-Disposition: attachment; filename="0001-org-Fix-fast-tag-selection-menu-alignment.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_js294q2a0 RnJvbSA0YTc5ZDEzNTVlYzM1YzcxMWJkZGQwNmJlMGQ5OWIwYWYyODdjMTgyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBtZW1lcGxleCA8Y2FybG9zam9zZXBpdGFAZ21haWwuY29tPgpE YXRlOiBUdWUsIDEyIEZlYiAyMDE5IDE3OjQ5OjQwIC0wMzAwClN1YmplY3Q6IFtQQVRDSF0gb3Jn OiBGaXggZmFzdCB0YWcgc2VsZWN0aW9uIG1lbnUgYWxpZ25tZW50CgoqIGxpc3Avb3JnLmVsIChv cmctZmFzdC10YWctc2VsZWN0aW9uKToKICAtIEF2b2lkIGxpbmVzIHdpdGgganVzdCBhIGNsb3Np bmcgZGVsaW1pdGVyLgogIC0gQ29ycmVjdGx5IGFsaWduIGdyb3VwZWQgYW5kIHVuZ3JvdXBlZCB0 YWdzLgotLS0KIGxpc3Avb3JnLmVsIHwgNiArKystLS0KIDEgZmlsZSBjaGFuZ2VkLCAzIGluc2Vy dGlvbnMoKyksIDMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9vcmcuZWwgYi9saXNw L29yZy5lbAppbmRleCBlMjI1ODc0OWIuLjdmMDRjZWUxOCAxMDA2NDQKLS0tIGEvbGlzcC9vcmcu ZWwKKysrIGIvbGlzcC9vcmcuZWwKQEAgLTE0NTAyLDEzICsxNDUwMiwxMyBAQCBSZXR1cm5zIHRo ZSBuZXcgdGFncyBzdHJpbmcsIG9yIG5pbCB0byBub3QgY2hhbmdlIHRoZSBjdXJyZW50IHNldHRp bmdzLiIKIAkgIAkJCSAgICgobWVtYmVyIHRnIGluaGVyaXRlZCkgaS1mYWNlKSkpKQogCSAgKHdo ZW4gKGVxdWFsIChjYWFyIHRibCkgOmdyb3VwdGFncykKIAkgICAgKG9yZy1hZGQtcHJvcHMgdGcg bmlsICdmYWNlICdvcmctdGFnLWdyb3VwKSkKLQkgICh3aGVuIChhbmQgKHplcm9wIGNudCkgKG5v dCBpbmdyb3VwKSAobm90IGludGFnZ3JvdXApKSAoaW5zZXJ0ICIgIikpCisJICAod2hlbiAoYW5k ICh6ZXJvcCBjbnQpIChub3QgaW5ncm91cCkgKG5vdCBpbnRhZ2dyb3VwKSkgKGluc2VydCAiICAi KSkKIAkgIChpbnNlcnQgIlsiIGMgIl0gIiB0ZyAobWFrZS1zdHJpbmcKIAkJCQkgKC0gZndpZHRo IDQgKGxlbmd0aCB0ZykpID9cICkpCiAJICAocHVzaCAoY29ucyB0ZyBjKSBudGFibGUpCiAJICAo d2hlbiAoPSAoY2wtaW5jZiBjbnQpIG5jb2wpCi0JICAgIChpbnNlcnQgIlxuIikKLQkgICAgKHdo ZW4gKG9yIGluZ3JvdXAgaW50YWdncm91cCkgKGluc2VydCAiICIpKQorCSAgICAodW5sZXNzICht ZW1xIChjYWFyIHRibCkgJyg6ZW5kZ3JvdXAgOmVuZGdyb3VwdGFnKSkgKGluc2VydCAiXG4iKSkK KwkgICAgKHdoZW4gKG9yIGluZ3JvdXAgaW50YWdncm91cCkgKGluc2VydCAiICAiKSkKIAkgICAg KHNldHEgY250IDApKSkpKQogICAgICAgKHNldHEgbnRhYmxlIChucmV2ZXJzZSBudGFibGUpKQog ICAgICAgKGluc2VydCAiXG4iKQotLSAKMi4yMC4xCgo= --0000000000003d678d0581b8bd70--