From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: MaGelan Newsgroups: gmane.emacs.help Subject: completing-read does not display options in new frames Date: Sun, 30 Apr 2023 18:44:38 +0900 Message-ID: <87zg6pln5l.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15953"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 30 16:57:13 2023 Return-path: Envelope-to: geh-help-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 1pt8UD-00042U-Gx for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 30 Apr 2023 16:57:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pt8TX-0001ml-Gp; Sun, 30 Apr 2023 10:56:31 -0400 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 1pt3c0-0002vw-Dk for help-gnu-emacs@gnu.org; Sun, 30 Apr 2023 05:44:56 -0400 Original-Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pt3by-0007du-T6 for help-gnu-emacs@gnu.org; Sun, 30 Apr 2023 05:44:56 -0400 Original-Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2472740a0dbso1494175a91.3 for ; Sun, 30 Apr 2023 02:44:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682847891; x=1685439891; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=H6oMpXMIffsVC8WrJYPxf0YCP5kQOAvOcx7IZqsTqgo=; b=KGZd09R7QOGcMp5RopLL2oaGcouoIDRktt0+9VRINrHa1Yd+qNg9DlDsIKafedLyOK vOnXogUfifb+i2B0aUJr8lhjRNW/1tHgxjdwx/2RR8fIYsTBvkyc1O745P0fthg1oJIM JYWFECpZQpS9UVTbRRR+HXKCb2/SOYa+2j/qBsapwdItz7IQ7UU2+RrS4SO8XypSEQkP otW98tYoL51Pw2RPRWo8kRJOkN/oAUEIOZkwF8vwSsdlkTkxunF5GXT8qO+usK8/tx1j tDMFwoVNM2TnPAQoN0zEO9k0otXAwmp4eWqQjSwr5BfybIYfuWLn5apNvH6EADSYs3+a juKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682847891; x=1685439891; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=H6oMpXMIffsVC8WrJYPxf0YCP5kQOAvOcx7IZqsTqgo=; b=M4QkY7hGmnpCRKgkE+BJwSDG1Wel6NWiQYFNQLBM3VWP29RjoEMfofD7L0+02Gw6kp 1ZK9w6n5nGtj+s6C6Myd8X43sJOCXOZ3dQio6ttygzMCnvhqSilafimE9RFRFGwuVD4I anckfSPlXGu3CNFjFVEwBkoe0Gq22LR+vNU82HsKy5w8frCN9xs2mMFZxGr/PUo7+dei ZSrXtohndUr8VGI0Wy5/z/pmVHu3rH8apxY4NG56czjgb3ZMcCSJnSYvJsdqLh0xjySK 89DREcgcehvbhexoldWVcMl1oG4j+T2KYHKCQBcHeNsjyR+UODdQcDUsUVgIR7nqNYDG 4VpA== X-Gm-Message-State: AC+VfDzc0ruCfFgQs0loDlUPuILjAAossvPpclStDuBWMfyPIR4+dB4G EvPGWGBnWb9VkFJtw+LyyGelOytcGPRyLA== X-Google-Smtp-Source: ACHHUZ56QoymllZ+eZK5HV/s4/n02LxYrN6rlL3SeO/dy4hLHEN6iywQGFE6tw9a8l6LbA3L0Wgy1w== X-Received: by 2002:a17:902:ce85:b0:1a9:baa4:8675 with SMTP id f5-20020a170902ce8500b001a9baa48675mr13593059plg.1.1682847890527; Sun, 30 Apr 2023 02:44:50 -0700 (PDT) Original-Received: from cabatop (softbank126169113163.bbtec.net. [126.169.113.163]) by smtp.gmail.com with ESMTPSA id c2-20020a170902d90200b001a6dc4a98f9sm16014156plz.195.2023.04.30.02.44.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Apr 2023 02:44:50 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::102c; envelope-from=magel4n@gmail.com; helo=mail-pj1-x102c.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-Mailman-Approved-At: Sun, 30 Apr 2023 10:56:30 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:143466 Archived-At: Hi, This is the first time I post on newsgroups so please forgive me if I am overlooking something and let me know if I break rules. I have been using Emacs for a year now and I am starting to integrate it more and more in my workflow. I am still learning elisp so please bear with me because I have a programming issue. I do not understand how to make the completing-read function work properly in a new frame. Whenever I start completing-read in a new frame what happens is that I do not see the options right away. I have to either press SPC or a input a character and delete it in order to force the refresh of the minibuffer and display the options. Here is an example that should work on any configuration: (defun test-miniframe-completing-read () "Test miniframe completing read" (interactive) (with-selected-frame (make-frame '((name . "emacs-miniframe") (minibuffer . only) (width . 120) (height . 33))) (unwind-protect (let ((choices '("first" "second" "third"))) (completing-read "Select: " choices)) (delete-frame)))) (test-miniframe-completing-read) I am using consult/vertico/orderless framework but my understanding is that the completing-read is an independent function. I did notice though that the consult-buffer when started with: emacsclient -c -e '(consult-buffer)' has the same problem. The buffer selection is not shown right away. I tried to use C-h f and inspect the function but, apparently, it is a C function. So, I do not know how to proceed further here. How do I make this code work properly both in new frames and in the existing one? Thank you very much for any help!