unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: 39642@debbugs.gnu.org
Subject: [bug#39642] [PATCH 3/3] ui: Don't truncate search output when inside Emacs.
Date: Mon, 17 Feb 2020 14:42:46 +0100	[thread overview]
Message-ID: <20200217134246.2312-2-mail@ambrevar.xyz> (raw)
In-Reply-To: <20200217134246.2312-1-mail@ambrevar.xyz>

* 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

  reply	other threads:[~2020-02-17 13:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-17 13:40 [bug#39642] [PATCH 1/3] ui: Only display link in capable terminals Pierre Neidhardt
2020-02-17 13:42 ` [bug#39642] [PATCH 2/3] ui: Don't disable colors when INSIDE_EMACS is set Pierre Neidhardt
2020-02-17 13:42   ` Pierre Neidhardt [this message]
2020-02-17 16:05 ` [bug#39642] [PATCH 1/3] ui: Only display link in capable terminals zimoun
2020-02-17 22:19 ` zimoun
2020-02-18  7:21   ` Pierre Neidhardt
2020-02-18  8:04     ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200217134246.2312-2-mail@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=39642@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).