From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id gCgOIfoQdGHDngAAgWs5BA (envelope-from ) for ; Sat, 23 Oct 2021 15:41:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id GAm4HPoQdGH3AgAAB5/wlQ (envelope-from ) for ; Sat, 23 Oct 2021 13:41: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 23D051455A for ; Sat, 23 Oct 2021 15:41:14 +0200 (CEST) Received: from localhost ([::1]:40752 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1meHGq-0002fD-35 for larch@yhetil.org; Sat, 23 Oct 2021 09:41:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35718) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1meHFl-0002ev-KI for emacs-orgmode@gnu.org; Sat, 23 Oct 2021 09:40:06 -0400 Received: from mail-pg1-x52d.google.com ([2607:f8b0:4864:20::52d]:38496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1meHFj-0005l1-6x for emacs-orgmode@gnu.org; Sat, 23 Oct 2021 09:40:05 -0400 Received: by mail-pg1-x52d.google.com with SMTP id e65so6040706pgc.5 for ; Sat, 23 Oct 2021 06:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=0PriBAQLQ0u9XU9ToyGw4dIju9PlgU9KpR9D8nVLY60=; b=T88A1YUVwtD7P/P86soUHDV8jSC29Q24gpyTrzMUMZSSVRZ52qnOpfkVDmWqCxLzG/ x1l4eLQzp5pbAaGi0EFmBorlMhlvPk68nX4FI41q1V1lTBiwNlnD1zKmOmMBecUyzbM9 xPKmqwvZ0YDndlmDyVCZhZTs+bttkHJWgZoe2A6dm9EogLW9qwn4vSEugdMzPKFWFvan EfRl6YtsA83mK4KN05CqlnZmiok/eyUiBph8YcGxy6gzUb0+WKU9FsOFY3OqvG9RGNnz uX/JULoTcwtC0fmMnZjyjnOAk5+zzIvgNfuIgIsSzPOqyfno4vXTdVqL89TUGpIPA83h 8eyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=0PriBAQLQ0u9XU9ToyGw4dIju9PlgU9KpR9D8nVLY60=; b=dBP4b6cOBlz3L7d3Nph1pcWGfu9lxaxFW/0/UHxWSF5oAiEqRV27u4iqiuCihk6Ez6 BHxxJHwYwJc44xGvmhATYJJwll829o5SZBv3GPBIEr3myHmI2ARJEGeBsgKtn5RleHwA WcPWsgbXISUIIPy1w7ZT+eAT49k1IX0LTqEREpGMAk4/9qx7L/UmYiF+rnuK38DbQx5X IKIRgWdytFzaQmlww6dd28Uyu+TQCx2yu76CeLsmt6oM6DCzX3NJevxbBfwYoP+js1Wz J/XNLHysrCkd+EVR+3BfZyKNk4BavUkiZwroZRxZr9u1F0N34YSN1YE2/S1soyudIPuo C5YQ== X-Gm-Message-State: AOAM533G9BgAyWdnpl6S70LAxC+xabMuq0JdXCkItEK4+i6pxqdpZwZn TQiJxBGaJDddbfoWWGvcnQixstvmAwIhvA== X-Google-Smtp-Source: ABdhPJx3c8gW5EX+Mu5ejIewZaSGeAhGsh/pu4voyeo2VKEYlk+LZqifrPO6IKcLBSfJX6CUPlD1RA== X-Received: by 2002:a05:6a00:1a15:b0:44d:a80:a194 with SMTP id g21-20020a056a001a1500b0044d0a80a194mr6222070pfv.78.1634996401652; Sat, 23 Oct 2021 06:40:01 -0700 (PDT) Received: from localhost ([103.125.234.210]) by smtp.gmail.com with ESMTPSA id t4sm14063781pfj.13.2021.10.23.06.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Oct 2021 06:40:01 -0700 (PDT) From: Ihor Radchenko To: Carlos Pita Subject: Keyword completion list: uppercase or lowercase? (was: Shower thought: submit an IETF RFC to register Org as a MIME type) In-Reply-To: References: <87lf2k8ck1.fsf@localhost> Date: Sat, 23 Oct 2021 21:41:26 +0800 Message-ID: <871r4bg8op.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::52d; envelope-from=yantar92@gmail.com; helo=mail-pg1-x52d.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634996474; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0PriBAQLQ0u9XU9ToyGw4dIju9PlgU9KpR9D8nVLY60=; b=H8YpLIbHVae0dKhpANkvjnizlsaDTq1GCSScfkwKvo4/s28aXwo3t6gvT6cwcsAFpYNcPf 8EHjGKjxBM8fuiDy0IZMH8NaTYtNS1m18FHqmqSWjvkvqxb1wMUTqM3Mh24wYbpkHkNKvr vR7RGsvStiSs8pFu1XyXES9bIduZ3ss2FMLjIZCwUiPTwkZ51uDBDU68FjF1G9IYiHqjsA D5sE1vDzQANACuOqziliXdhN/eHMeSrYSfB7LIovpXCDBHb2Bqe0xczjf9ynRZyGqhGuZF WznBHvqtFuCZkoInaFAuVEN0G8voNCNvGj3walJcFMxvJShbvhAa6VV84cDcOA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634996474; a=rsa-sha256; cv=none; b=m/YcO7PP+V+/XsF5nPsDlQrOU8V3bIU3oMXhz9wSOMbYmLJK+3uI+IZK3rpHXqdKRiYIyc OXRJE9V5Urh4Q2pzat+EHe9md7EZt0wOT2eXzaHEOdfWOw+UMXMLRepzbfVtYJTvOdKorr kOSXGJYrbxyeCxjwLCJ6s6QEfS1cLDvBFv6kNrgUHpY6vezGsCG34pMoLzRMKUVNeIOZO+ ybjI+LwBLm37wd9ldhqUzo1DyvyroyCKsQ3hlaZrPhP1iVq075s1LQTzHXp3AS4l5GCxfL f+Tz+1vAKQc/jMa0iuHBl1TU592LlmN7YJ8TlwsRkyNf6T9QPdIqYnezcoTH9Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=T88A1YUV; 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-Spam-Score: -2.03 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=T88A1YUV; 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-Migadu-Queue-Id: 23D051455A X-Spam-Score: -2.03 X-Migadu-Scanner: scn1.migadu.com X-TUID: h9ukQSqwheQ6 Carlos Pita writes: >>> But then c-a-p is very lenient since it lists lower and upper case block >>> variants even when I typed a lower case prefix, and upper case usually >>> will go first in the list, hence promoting a seemingly bad practice. >> >> Could you clarify what is "c-a-p"? > > Yes, I just meant completion-at-point. At least some org functions, > which I believe are implemented using pcomplete and then exposed through > the completion-at-point interface, provide completions in both lower and > uppercase variants and except when completion-ignore-case is nil (not > the default) uppercase candidates will be sorted first in the list. > It's often quite inconvenient to scroll down a completion menu to pick > the lowercase completion for a short prefix, which either promotes using > the uppercase variant at hand or offsets the benefits of > autocompletion. Moreover, popular external collections of snippets have > already adopted the lowercase convention of org-mode, hence introducing > inconsistency in the document when one mixes both sources of completion > (lowercase snippets and org-mode uppercase completions). So perhaps > uppercase completions should be provided only when the user explicitly > typed an uppercase prefix. What do you think? I just tried with clean Emacs: #+beg #+begin_ -> list of completions, all in lower case #+BEG #+BEGIN_ -> list of completions, all in upper case Seems to be all right. Can you provide a more concrete example when you are given both uppercase and lowercase completions? Best, Ihor