From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Omar Polo Newsgroups: gmane.emacs.help Subject: Re: does (setq Man-switches "-a") work? Date: Sat, 30 Nov 2019 17:37:59 +0100 Message-ID: <20191130163759.GA19306@venera.rosetta.moe> References: <86r21qvsyd.fsf@zoho.eu> <83lfrxomrd.fsf@gnu.org> <865zj1wti9.fsf@zoho.eu> <83d0d9odjb.fsf@gnu.org> <86r21pve8h.fsf@zoho.eu> <834kylo8r9.fsf@gnu.org> <86v9r1tu0p.fsf@zoho.eu> <831rtpo460.fsf@gnu.org> <86mucdtoo5.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="104374"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.12.2 (2019-09-21) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 30 17:38:54 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ib5ll-000QZU-TO for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Nov 2019 17:38:54 +0100 Original-Received: from localhost ([::1]:41572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ib5lF-0007BH-1F for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Nov 2019 11:38:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58127) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ib5l0-00079m-3w for help-gnu-emacs@gnu.org; Sat, 30 Nov 2019 11:38:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ib5ky-00062A-BV for help-gnu-emacs@gnu.org; Sat, 30 Nov 2019 11:38:05 -0500 Original-Received: from mail.xglobe.in ([2a02:c205:2011:1565::1]:35044 helo=xglobe.in) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ib5kx-0005wi-MU for help-gnu-emacs@gnu.org; Sat, 30 Nov 2019 11:38:04 -0500 Original-Received: by xglobe.in (OpenSMTPD) with ESMTP id 2fdc13bd for ; Sat, 30 Nov 2019 16:38:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=xglobe.in; h=date:from:to :subject:message-id:references:mime-version:content-type :content-transfer-encoding:in-reply-to; s=mail; bh=JgC2tdSPxqrRw 9OCM/1aGFgRzUQ=; b=FWAHWpTY9sT/ui+Wbw7iB97IfAXBlLzwPWVzGnaKYWpp5 G+w67i/0s0TED62mgNOBzXfuKoedXw5gKP6pbZrgsXxHpJST+/0XYKqFGLbZghkK QZV+kNmkLsyZ0cO61JjoyHXvDiqkGBZIHDynhHfBcX429qTR0Y+rKKxajE+7d4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=xglobe.in; h=date:from:to :subject:message-id:references:mime-version:content-type :content-transfer-encoding:in-reply-to; q=dns; s=mail; b=qhSJav/ JnOQbW1gq14Yj1St6uDQa+0Tvp4Ho8z3g8mzwNCppVKwwV6gxx0dzuHYK4dUaph3 pQB9UHihp3SyF8U/izE/+aWd4Xo94d2mlghPxPr9pOOVFdb1UDL3P5eJzchv6QQ0 4A1lqeyM36wlpk0s03aPJFdv2iwMtWhgD1q0= Original-Received: by xglobe.in (OpenSMTPD) with ESMTPSA id 1ac5592c (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Sat, 30 Nov 2019 16:37:59 +0000 (UTC) Original-Received: from localhost (venera.rosetta.moe [local]) by venera.rosetta.moe (OpenSMTPD) with ESMTPA id 605db34c for ; Sat, 30 Nov 2019 16:37:59 +0000 (UTC) Content-Disposition: inline In-Reply-To: <86mucdtoo5.fsf@zoho.eu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a02:c205:2011:1565::1 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121967 Archived-At: On Sat, Nov 30, 2019 at 03:38:18PM +0100, Emanuel Berg via Users list for the GNU Emacs text editor wrote: > Eli Zaretskii wrote: > > >> What switches are supported? > > > > Any switches supported by the 'man' command > > you have installed, I think. > > zshall(1) with Emacs M-x man RET zshall RET > > "page 1 of 16", and page 1 has 345 lines, > > same with > (setq Man-switches "-a") > and > (setq Man-switches "") > > In the Unix shell with man(1) - no concept of > a sixteenth division, 'man -a' loads the whole > manpage immediately and if you hit G you get to > line 32 213. > > > It does work: it produces all of the man > > pages by that name, in all of the sections. > > You just need to go from one to the other > > with M-n and M-p, as "C-h m" tells you. > > If you are to search the entire document for > a keyword, the entire document must be in one > and only one buffer. > > >> The Unix man(1) is a pager. > > > > No, 'man' is not a pager. It is a program > > that formats and displays manual pages. > > A pager is a program like 'more' or 'less'. > > At least that's what I would call a "pager". > > $ man man > > MAN(1) Manual pager utils MAN(1) > > [...] > > -P pager, --pager=pager > Specify which output pager to use. By default, man > uses pager. This option overrides the $MANPAGER envi‐ > ronment variable, which in turn overrides the $PAGER > environment variable. > > What's pager? > > $ t pager # [1] > /usr/bin/pager > lrwxrwxrwx 1 root 23 Mar 18 2016 /usr/bin/pager -> /etc/alternatives/pager > * links to: /bin/less > -rwxr-xr-x 1 root 148K Mar 5 2016 /bin/less > > > [1] https://dataswamp.org/~incal/conf/.zsh/ide (line 67) > > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > I don't know how to solve your issue (sorry!), but I love nitpicking :) I hope I'm not too offtopic. On Sat, Nov 30, 2019 at 03:38:18PM +0100, Emanuel Berg via Users list for the GNU Emacs text editor wrote: > Eli Zaretskii wrote: [snip] > >> The Unix man(1) is a pager. > > > > No, 'man' is not a pager. It is a program > > that formats and displays manual pages. > > A pager is a program like 'more' or 'less'. > > At least that's what I would call a "pager". > > $ man man > > MAN(1) Manual pager utils MAN(1) > > [...] > > -P pager, --pager=pager > Specify which output pager to use. By default, man > uses pager. This option overrides the $MANPAGER envi‐ > ronment variable, which in turn overrides the $PAGER > environment variable. It means that, by default, if stdin is a tty man(1) will exec less(1) (or more, or most, or ...) to "page" the result. If I've understood correctly, emacs itself is acting as a pager in this case paging the result from man. Having the headline for man(1) "Manual pager utils" doesn't help, it's misleading in my opinion. OpenBSD' manpage is a bit cleaner maybe: $ man man MAN(1) General Commands Manual MAN(1) NAME man - display manual pages [...] -c Copy the manual page to the standard output instead of using more(1) to paginate it. This is done by default if the standard output is not a terminal device. [...] EXAMPLES [...] Read a typeset page in a PDF viewer: $ MANPAGER=mupdf man -T pdf lpd > What's pager? a program that "pages" something (text generally.) $ man more MORE(1) General Commands Manual MORE(1) NAME more - view files DESCRIPTION The more pager displays text one screenful at a time. > > $ t pager # [1] > /usr/bin/pager > lrwxrwxrwx 1 root 23 Mar 18 2016 /usr/bin/pager -> /etc/alternatives/pager > * links to: /bin/less > -rwxr-xr-x 1 root 148K Mar 5 2016 /bin/less > > > [1] https://dataswamp.org/~incal/conf/.zsh/ide (line 67) > > -- > underground experts united > http://user.it.uu.se/~embe8573 > https://dataswamp.org/~incal > > -- Omar Polo