From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46979: Allow setting Man-default-entry via Local Variables Date: Mon, 08 Mar 2021 18:32:07 +0200 Message-ID: <83y2exr4hk.fsf@gnu.org> References: <87tupnrhvv.8.fsf@jidanni.org> <83tupntrwb.fsf@gnu.org> <87pn0b12f0.5.fsf@jidanni.org> <87blbtoj16.5.fsf@jidanni.org> <83czw9somb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29318"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46979@debbugs.gnu.org, jidanni@jidanni.org To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 08 17:33:08 2021 Return-path: Envelope-to: geb-bug-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 1lJIoe-0007W2-Tw for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 17:33:08 +0100 Original-Received: from localhost ([::1]:39652 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJIod-0001z2-M0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 11:33:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJIoY-0001yt-0m for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 11:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33064) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJIoX-0006ow-Q5 for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 11:33:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJIoX-0000Wd-My for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 11:33:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Mar 2021 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46979 X-GNU-PR-Package: emacs Original-Received: via spool by 46979-submit@debbugs.gnu.org id=B46979.16152211391966 (code B ref 46979); Mon, 08 Mar 2021 16:33:01 +0000 Original-Received: (at 46979) by debbugs.gnu.org; 8 Mar 2021 16:32:19 +0000 Original-Received: from localhost ([127.0.0.1]:44610 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJInr-0000Ve-BJ for submit@debbugs.gnu.org; Mon, 08 Mar 2021 11:32:19 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49712) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJInq-0000VQ-8G for 46979@debbugs.gnu.org; Mon, 08 Mar 2021 11:32:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51182) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJInk-0006RX-RZ; Mon, 08 Mar 2021 11:32:12 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3233 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lJInk-0006EZ-8j; Mon, 08 Mar 2021 11:32:12 -0500 In-Reply-To: (message from Daniel =?UTF-8?Q?Mart=C3=ADn?= on Mon, 08 Mar 2021 16:48:52 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201850 Archived-At: > From: Daniel Martín > Cc: 積丹尼 Dan Jacobson , > 46979@debbugs.gnu.org > Date: Mon, 08 Mar 2021 16:48:52 +0100 > > Eli Zaretskii writes: > > > > > Our solution to this is "C-h S". Did you try it? You can extend its > > database if the default lacks something you need. > > C-h S only searches Info pages. I think this feature request is more > about improving the default that M-x man offers, to consider more things > than just the text around point. That'd be a tough sell to a GNU project, since the GNU project wants to deprecate the man pages. (And please don't use "Info pages" when you are talking about Info manuals: those manuals are not just collections of random unrelated "pages".) And besides, which important packages don't have Info manuals? > I can see its usefulness, as a lot of Unix tools provide special man > pages for its configuration files. Another potential use case is a user > visiting a .gitconfig file, where M-x man could suggest "git-config(1)" > by default. Similarly for .gitattributes and "gitattributes(5)". Git has an Info manual, even though many people don't know and don't use it. > As it's almost impossible to have all that knowledge in Emacs core, I > see it as a new extensibilty point for users. What are the downsides > you see in the local variable approach? The need to add local variables to files is in itself a downside.