From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SCYfMXIw8l4YWQAA0tVLHw (envelope-from ) for ; Tue, 23 Jun 2020 16:40:18 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id kAbnLHIw8l4tHAAAB5/wlQ (envelope-from ) for ; Tue, 23 Jun 2020 16:40:18 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 56E5E9408E9 for ; Tue, 23 Jun 2020 16:40:18 +0000 (UTC) Received: from localhost ([::1]:50850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jnly5-00056N-BK for larch@yhetil.org; Tue, 23 Jun 2020 12:40:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnlxv-000562-LY for guix-devel@gnu.org; Tue, 23 Jun 2020 12:40:07 -0400 Received: from ciao.gmane.io ([159.69.161.202]:59962) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jnlxt-0000ZI-Us for guix-devel@gnu.org; Tue, 23 Jun 2020 12:40:07 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jnlxp-000Fi3-Uf for guix-devel@gnu.org; Tue, 23 Jun 2020 18:40:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: guix-devel@gnu.org From: Robin Templeton Subject: Re: hint: Run `guix search ... | less' to view all the results Date: Tue, 23 Jun 2020 12:05:26 -0400 Message-ID: <87sgelydh5.fsf@terpri.org> References: Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cancel-Lock: sha1:iPI1LsRyJpE3bnQBHCh45ZKrdrQ= Received-SPF: pass client-ip=159.69.161.202; envelope-from=gcggd-guix-devel@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/23 10:46:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: 7jFGlswQn3Rf Jan Synacek writes: > Hello, > > I'm going to give honest feedback, since I still care about some things. > > I decided to check the new guix-1.1.0 and one of the first things that I ran was: > > $ guix package -s firefox > > The resulting message was infuriating to say the least. The code says: > > (if (and (not (getenv "INSIDE_EMACS")) > ... > ... > (display-hint (format #f (G_ "Run @code{~a ... | less} \ > to view all the results.") > command))) > > Seriously? Are you seriously forcing your users to either run emacs (or at least > to set the env variable) or use pipes to get the entire search result? > That's just... backwards. Also, it feels like as if the author of that code sort > of assumed that whoever runs the command is stupid enough not to be able to deal > with long output. I'm sure that it wasn't meant like that. > > Pretty please, fix this. Don't force your users into usage patterns that might > be completely foreign to them. Don't truncate output from programs by default. Seconded! The current behavior seems exactly backwards compared to most *nix tools; if I wanted *less* information from "guix search" I'd manually pipe the output into head or recsel. Perhaps Git-style auto-pagination (i.e. page the results when outputting to a terminal) would be a good compromise as a default.