From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:56365) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j3gfv-0001hw-8v for guix-patches@gnu.org; Mon, 17 Feb 2020 08:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j3gfu-0000dH-9m for guix-patches@gnu.org; Mon, 17 Feb 2020 08:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60430) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j3gfu-0000dC-6v for guix-patches@gnu.org; Mon, 17 Feb 2020 08:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j3gfu-0002Qo-5l for guix-patches@gnu.org; Mon, 17 Feb 2020 08:43:02 -0500 Subject: [bug#39642] [PATCH 3/3] ui: Don't truncate search output when inside Emacs. Resent-Message-ID: From: Pierre Neidhardt Date: Mon, 17 Feb 2020 14:42:46 +0100 Message-Id: <20200217134246.2312-2-mail@ambrevar.xyz> In-Reply-To: <20200217134246.2312-1-mail@ambrevar.xyz> References: <20200217134246.2312-1-mail@ambrevar.xyz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39642@debbugs.gnu.org * guix/ui.scm (display-search-results): Loop over all results when INSIDE_EMACS is set. --- guix/ui.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/ui.scm b/guix/ui.scm index 7e3251446f..77e538ccfb 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -1472,7 +1472,8 @@ them. If PORT is a terminal, print at most a full screen of results." #:hyperlinks? links? #:extra-fields `((relevance . ,score))))))) - (if (and max-rows + (if (and (not (getenv "INSIDE_EMACS")) + max-rows (> (port-line port) first-line) ;print at least one result (> (+ 4 (line-count text) (port-line port)) max-rows)) -- 2.25.0