From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Allowing completion sources to customize completion display Date: Thu, 23 Nov 2023 13:20:27 -0800 Message-ID: <08c7660f-ee16-7159-581c-c8b2526a6035@gmail.com> References: <831qcghn52.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27717"; mail-complaints-to="usenet@ciao.gmane.io" Cc: sbaugh@janestreet.com, emacs-devel@gnu.org To: Eli Zaretskii , Eshel Yaron Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 23 22:21:43 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r6H8o-00076w-I7 for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Nov 2023 22:21:42 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r6H7y-0004LJ-P4; Thu, 23 Nov 2023 16:20:50 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r6H7t-0004Kr-7D for emacs-devel@gnu.org; Thu, 23 Nov 2023 16:20:45 -0500 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r6H7f-000143-3v; Thu, 23 Nov 2023 16:20:32 -0500 Original-Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-1ce95f96edcso9803645ad.0; Thu, 23 Nov 2023 13:20:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700774429; x=1701379229; darn=gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=kaysAhsoLKf/lsPtkcpfsfJVg065BeMqm1QGzH1LfBI=; b=HkOSssIb8i/SfondSjk2ozzKMTIG8tixf+/+zh2WgUX+W2JLzbOLvDuueuJGoiYd0k S9OkbE4o6bSt3xr0O681zQlVqOttiBeMSGoOl5VuyTVsjDmuV5JFY66zdfZMefIF9ls4 QLaFeaFTrsdSh01kgLdDRo+ulxbmc27+vCDor7ZBZqhkIj4xlrHvTr8uv2wCzms9ttd+ sq6C1tcIKXv5dVy8fh8E9Gx5NULr8/+3LxTcWKbDuidGxSCq0/9Y56VUflM9k78+4TJ9 Y0Hf1nVSt5IkyyzMiZ89vRW9irJdcPknZvi6AgC616Fmvw3AksyjcIA/mja8zKpXcmi3 kZgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700774429; x=1701379229; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kaysAhsoLKf/lsPtkcpfsfJVg065BeMqm1QGzH1LfBI=; b=nAtaEvxxA2eQGYbN925vYu6v1ovEC3V7nWMY6aevIvySt3RU56vXoVIPB89yunLvXu a/UzgmzDv2nrLDWO1GWnPl6BY7KSQFSL3Uy5+2ImuA9UQaqH8TJwu38kwHRlPn/g8qdd Z2K23G+gWMCjhmPk1BklfIykNOEMOTkZ55X+KD3BcDpM5/2gCjA/oQZMe2oZMCgsE/Hj h2XfLEEzEz6PdcERnqtNcCXtvArHR8k8UPSPS+iuFXXZbwrEG+TbySLD/VmarZ7EeCMx 3/QeENgM3vEJLO5s/DBI1RVWso4La20CWcrHzjAra4S5x4pxjTH+jceI7P8kc1C46xJj OvWw== X-Gm-Message-State: AOJu0YyXBWdlBuXOYqyqMhwwyxitfSiMV+5mmIC2uIJM82Q4wo1SfbpC NjKyoUdhu80nu40aKr4znx14pbBQbtI= X-Google-Smtp-Source: AGHT+IEouCSYOEIzNFLmTLPTyL1LOaJXgoAma5ZyDu8UcNLUwPX0Dm4XHfrwpg7AA6vxNul+Plm9fA== X-Received: by 2002:a17:902:8205:b0:1cc:474a:ddc9 with SMTP id x5-20020a170902820500b001cc474addc9mr595341pln.28.1700774429139; Thu, 23 Nov 2023 13:20:29 -0800 (PST) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id n14-20020a170902e54e00b001bc675068e2sm1801969plf.111.2023.11.23.13.20.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Nov 2023 13:20:28 -0800 (PST) Content-Language: en-US In-Reply-To: <831qcghn52.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x630.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:313160 Archived-At: On 11/23/2023 12:47 AM, Eli Zaretskii wrote: > IMNSHO, it will be a sad day when different completion sources will > present different completion UI. There will be no end to user > confusion. I think Spencer's suggestion below would be ok (assuming it actually works). Then it's up to the users themselves to opt-in to different UI for different sources: On 11/22/2023 3:05 PM, Spencer Baugh wrote: > - Maybe completion-category-overrides could change > completion-in-region-function based on the category? Whether that's the best solution is another story, but I don't think it would cause any extra confusion, since nothing would change by default.