From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrii Kolomoiets Newsgroups: gmane.emacs.devel Subject: Re: select yank via completion Date: Wed, 25 Nov 2020 10:14:25 +0200 Message-ID: References: <87wnymda5g.fsf@mail.linkov.net> <87ima5he8j.fsf@mail.linkov.net> <87mtzfzt9a.fsf@mail.linkov.net> <87k0uifp3w.fsf@mail.linkov.net> <87d009iykt.fsf@mail.linkov.net> <3341c426-3a86-4ef0-a0ca-9102191a925b@default> <87o8jsiems.fsf@mail.linkov.net> <87o8jmbbu9.fsf@tcd.ie> <878sapnb0k.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="644"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) Cc: spacibba@aol.com, Jean Louis , emacs-devel@gnu.org, "Basil L. Contovounesios" , rudalics@gmx.at, Stefan Monnier , Gregory Heytings , Eli Zaretskii , Drew Adams To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Nov 25 09:16:20 2020 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 1khpyM-000AXO-NV for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Nov 2020 09:16:18 +0100 Original-Received: from localhost ([::1]:49388 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khpyL-0005se-QD for ged-emacs-devel@m.gmane-mx.org; Wed, 25 Nov 2020 03:16:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33016) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khpwe-0004qO-GK for emacs-devel@gnu.org; Wed, 25 Nov 2020 03:14:32 -0500 Original-Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]:45382) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khpwd-0002Da-5Y; Wed, 25 Nov 2020 03:14:32 -0500 Original-Received: by mail-lj1-x22c.google.com with SMTP id b17so1306959ljf.12; Wed, 25 Nov 2020 00:14:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=wg8i2J6GUvcghdA/cFHonAcvtuThNSpxZt/t+LujHqA=; b=celXBoA7eStzOw3oqSMoOwWRH0t1UwYvdeUW6Gfn1F3B/0R2N4tJrStgylpOaWBofk 9Sczf4SzLBirTekqDw7Givv9LFNWE6yJNJNC8vuTlZt845hawl79iF3xFCBz0VOH/1Y1 sy6RuKybxqfX/j4X0FzW7dRgc8G4mezd4M+LP29y3D3D0iEknMngNCQEsmgqTG0Y+7jv /5LUPOTLbWN3wb3HcJKXp57e3JqqK6/iX1UpLsCEs6cuPRtoJ52iN76fNc3hsFzNIJB+ km1uxOoS74cjXFWuQE0DqePhPjR/clv6UyIGzgJjQ+50dvpyz0tGjlHL68BgNNkWnqw5 NkZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=wg8i2J6GUvcghdA/cFHonAcvtuThNSpxZt/t+LujHqA=; b=TKYW487GL4BBRXrAVgqaOaScb1k0K+Aqy9tgHuL9lcu+kYc9oZ2w1X9KGGVqEazQ9w uUrUygC82aW/EBK1qbq3Y6SZ+DtL97pzTh7VFHIJrz07Kze5HAsyPgBI6QWD5Za0gBji LzUd/W+FmEKDWlWyh0byaNP0WOAIDh7MzZKf2AVCKrN+RHrJQxTpmc6TQFnkg4zRsf0W 0SuoHXLLBXG2Jact0icKw5TTyaHt4KihR9VwZxkxpwD97PN0N1uI219PI8hAuZDUmilW CpDL+7e/uc79Q9TpzY/tWzMSDyU49yedCtymge4WjRMak1CGlL+YPDqL4dbtOMPDnwBT hiXA== X-Gm-Message-State: AOAM533GaUBbVymuaz/N+aVN058vZhm1xl1Q0vJyLUqRfAL8oKJh65zB CbJ8o0ciQoHABpnpJWnzvs3XYQ6aW8997A== X-Google-Smtp-Source: ABdhPJxERjrC38zbT5wILZc8k9rg6KMSbZ7KDqLRCzQAt9wJnDURCALX1lHg15aeTF0Y9dqPm+9hhg== X-Received: by 2002:a2e:3308:: with SMTP id d8mr999770ljc.183.1606292068274; Wed, 25 Nov 2020 00:14:28 -0800 (PST) Original-Received: from muffinmac ([91.206.110.192]) by smtp.gmail.com with ESMTPSA id v2sm164865lfn.163.2020.11.25.00.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Nov 2020 00:14:27 -0800 (PST) In-Reply-To: <878sapnb0k.fsf@mail.linkov.net> (Juri Linkov's message of "Wed, 25 Nov 2020 09:36:27 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=andreyk.mad@gmail.com; helo=mail-lj1-x22c.google.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.devel:259771 Archived-At: Juri Linkov writes: >>> + (when (> (length s) (- 40 b)) >>> + (add-text-properties >>> + (min (+ b 40) (length s)) (length s) >>> + `(display ,ellipsis) s)) >> >> Any chance this threshold can be configurable? I don't mind completions >> as wide as or wider than the frame in Ivy's minibuffer. > > Instead of adding a specific defcustom for kill-ring completions, > maybe some more general option is possible in minibuffer.el? > Something like how many columns the user expects for completions. Would be nice. I'm using custom function in display-buffer-alist to show *Completions* buffer in child frame. To make completions occupy single column, frame width is set to 1 initially and later resized to fit the buffer. Such an option will make it easier. Thanks!