From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#47868: 28.0.50; [native-comp] vertico package doesn't work when loading the corresponding eln file Date: Sun, 18 Apr 2021 20:49:13 +0200 Message-ID: <87tuo3v2i9.fsf@gnu.org> References: <87czuryggn.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32728"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.11; emacs 28.0.50 Cc: 47868@debbugs.gnu.org, mail@daniel-mendler.de To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 18 21:04:53 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lYCiz-0008Q9-Hk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 21:04:53 +0200 Original-Received: from localhost ([::1]:40654 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYCix-0001AV-5V for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 15:04:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYCiB-0000xw-BI for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 15:04:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lYCiA-0005TP-MT for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 15:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lYCiA-0000mM-Hg for bug-gnu-emacs@gnu.org; Sun, 18 Apr 2021 15:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 19:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47868 X-GNU-PR-Package: emacs Original-Received: via spool by 47868-submit@debbugs.gnu.org id=B47868.16187726352953 (code B ref 47868); Sun, 18 Apr 2021 19:04:02 +0000 Original-Received: (at 47868) by debbugs.gnu.org; 18 Apr 2021 19:03:55 +0000 Original-Received: from localhost ([127.0.0.1]:47818 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYCi2-0000lZ-RS for submit@debbugs.gnu.org; Sun, 18 Apr 2021 15:03:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50654) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYCi1-0000lG-GP for 47868@debbugs.gnu.org; Sun, 18 Apr 2021 15:03:53 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54196) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYChv-0005Ks-Gy; Sun, 18 Apr 2021 15:03:47 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:39721) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1lYChu-00076R-Ip; Sun, 18 Apr 2021 15:03:46 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 1C8F427C0054; Sun, 18 Apr 2021 15:03:46 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 18 Apr 2021 15:03:46 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtvddgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffuffgjkfggtgesthdtre dttdertdenucfhrhhomhepvfgrshhsihhlohcujfhorhhnuceothhsughhsehgnhhurdho rhhgqeenucggtffrrghtthgvrhhnpeevveeikeetkeeviefgfeffiedvteeguddvffeuue duveegtddthedvhfeuveffhfenucfkphepkeejrdduieefrdefuddrudehgeenucevlhhu shhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvg hsmhhtphgruhhthhhpvghrshhonhgrlhhithihqdekieejfeekjeekgedqieefhedvleek qdhtshguhheppehgnhhurdhorhhgsehfrghsthhmrghilhdrfhhm X-ME-Proxy: Original-Received: from thinkpad-t440p (p57a31f9a.dip0.t-ipconnect.de [87.163.31.154]) by mail.messagingengine.com (Postfix) with ESMTPA id 7D39D108005B; Sun, 18 Apr 2021 15:03:44 -0400 (EDT) In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204395 Archived-At: Andrea Corallo writes: Hi Andrea, > I think it would be very helpful to know which one is the Emacs > function that once gets called misbehaves. That's a bit hard to pinpoint. It happens during `completing-read' where the two vertico functions below are called from a `post-command-hook' in order to display vertico's two overlays, the "count overlay" before the minibuffer prompt, and the "candidates overlay" starting after the input string. Here's a "screenshot" of how it is supposed to look like, | representing the usual position of point. [1/3] Find file: input| input-candidate1 input-candidate2 input-candidate3 And here are the functions: --8<---------------cut here---------------start------------->8--- (defun vertico--display-candidates (lines) "Update candidates overlay `vertico--candidates-ov' with LINES." (move-overlay vertico--candidates-ov (point-max) (point-max)) (overlay-put vertico--candidates-ov 'after-string (apply #'concat #(" " 0 1 (cursor t)) (and lines "\n") lines)) (let* ((lh (default-line-height)) (resize (default-value 'resize-mini-windows)) (dp (- (max (cdr (window-text-pixel-size)) (* lh (1+ (if resize (length lines) vertico-count)))) (window-pixel-height))) (dl (ceiling dp lh))) (when (or (> dl 0) (eq resize t)) (window-resize nil dl)))) (defun vertico--display-count () "Update count overlay `vertico--count-ov'." (when vertico-count-format (move-overlay vertico--count-ov (point-min) (point-min)) (overlay-put vertico--count-ov 'before-string (format (car vertico-count-format) (format (cdr vertico-count-format) (cond ((>= vertico--index 0) (1+ vertico--index)) ((vertico--allow-prompt-selection-p) "*") (t "!")) vertico--total))))) --8<---------------cut here---------------end--------------->8--- > PS one should just load the .elc file to obtain the corresponding .eln > loaded. Ah, ok. Bye, Tassilo