From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mDB3JKpW2l+kMQAA0tVLHw (envelope-from ) for ; Wed, 16 Dec 2020 18:49: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 mp2 with LMTPS id gFa/HqpW2l9OOQAAB5/wlQ (envelope-from ) for ; Wed, 16 Dec 2020 18:49: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 0AF689402D6 for ; Wed, 16 Dec 2020 18:49:14 +0000 (UTC) Received: from localhost ([::1]:35730 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kpbrM-0006pr-LY for larch@yhetil.org; Wed, 16 Dec 2020 13:49:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kpboX-0004kQ-1n for emacs-orgmode@gnu.org; Wed, 16 Dec 2020 13:46:17 -0500 Received: from mail-qk1-x729.google.com ([2607:f8b0:4864:20::729]:34861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kpboU-00047d-Va for emacs-orgmode@gnu.org; Wed, 16 Dec 2020 13:46:16 -0500 Received: by mail-qk1-x729.google.com with SMTP id n142so23705282qkn.2 for ; Wed, 16 Dec 2020 10:46:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=HryuthCwIjo3SzhvClIZc6KnjfVeWYT8DRvXpdYW2DU=; b=TpzLDctluuiOUG7gDVEf+j5Uij5nEv2e1Exg+rrvBPu0FMmg8EkBmv1IP7DEJ0ICkC O1YDbuLhRO4ckxrKGEwFw3hdrakLRI1reiTA3KoujL9NDoQchtN94yC+lxECNGbWMlg7 9JSGWG1F9UUaRDUd08MRk+O8xybsBjg6cJVWJfhXtScLlc1Kn5aYNTxOpqm7aPzOWIQh 2yaiW0cncYAlb2qpDTQgvzg9qqE/1GopbMgK/8m6bKeUUS+2QUiQOWWwSzVRQHiBITnN 6OCRF52VslB8OBxgCH/K0TgI4l0J9obFX0l5TlsBylrTQD0eQ2fg29mHBMV4IRm6Ozdh sYXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=HryuthCwIjo3SzhvClIZc6KnjfVeWYT8DRvXpdYW2DU=; b=d+V5zcxx5/5hpFJIuVEFpExxGZABuIpeLeL+N8/NGMpCSSPUwFQ+vrSf73lPj5SfnY 4fCwgguXgVyKrT8a4YLg5vuGpjEvob3b+/lpY4fRNhXPkCfAwPjjHteS55BY2Nmm6ubs UhzfKWfTBgjeqoTW0HVvonZJ1r7/XpGSN++R5Bvgrym5MhqUs6ubk1Xvv9dF/j77KpS0 yULc6r0QZGTSCapxr8uUBcJw7no2VyibEm+KKHXHZqJSDYroXpoTYXGF0HNAtODbrNPr TS973h/wPKkmDVnaldx0ETLlaeSJO2HYkAar0oAhiLRMf1+O/BTZbektr+QMd4yMPkc3 8gXw== X-Gm-Message-State: AOAM5314GOjLQ9A6lBIp5uFVinZAmmh0jlNV0Jin5kfEUonORBuoysYn 8o0QT0Lb4NuOyQz4AXtMXvs= X-Google-Smtp-Source: ABdhPJxZfjsDGL8VE8N13lPxWlcFjX5F8KEpJghlWr8spLSyqlLaLTvBG7/YeBTkH6oW64rfPvDESA== X-Received: by 2002:a37:8485:: with SMTP id g127mr44650434qkd.233.1608144373726; Wed, 16 Dec 2020 10:46:13 -0800 (PST) Received: from arch ([2601:8b:c300:1024:1266:d0ff:1635:f964]) by smtp.gmail.com with ESMTPSA id y187sm1671549qkc.120.2020.12.16.10.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Dec 2020 10:46:12 -0800 (PST) User-agent: mu4e 1.5.6; emacs 28.0.50 From: No Wayman To: bugs@gnu.support Subject: Re: Org Capture Menu cannot be fully viewed In-Reply-To: Date: Wed, 16 Dec 2020 13:46:11 -0500 Message-ID: <875z51si6k.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::729; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x729.google.com 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, 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: , Cc: theophilusx@gmail.com, pietru@caramail.com, emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=fail (headers rsa verify failed) header.d=gmail.com header.s=20161025 header.b=TpzLDctl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Migadu-Queue-Id: 0AF689402D6 X-Spam-Score: -1.21 X-Migadu-Scanner: scn0.migadu.com X-TUID: G36iyTAoWoeh > What is here missing is `org-capture-by-completing-read' so that > user may select among many various capture templates. > Compensating for initial bad design is expensive effort. Are you suggesting something like this?: #+begin_src emacs-lisp (defun +org-capture-read (&optional arg) "completing read interface for org-capture template selection. ARG is passed to `org-capture'." (let (parent) (when-let* ((templates (mapcar (lambda (template) (let* ((keys (car template)) (parentkeys (car parent))) (if (= (length template) 2) (progn (setq parent template) nil) (cons (concat (when (and parentkeys (string-prefix-p parentkeys keys)) (concat (cadr parent) "/")) (cadr template)) keys)))) org-capture-templates)) (selection (alist-get (completing-read "capture template: " (mapcar #'car (delq nil templates)) nil 'require-match) templates nil nil #'string=))) (org-capture arg selection)))) #+end_src emacs-lisp