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 22:42:43 +0200 Message-ID: <83k0qhqsvw.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> <83y2exr4hk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31464"; 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 21:43:17 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 1lJMij-00085h-6D for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 21:43:17 +0100 Original-Received: from localhost ([::1]:36214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJMii-00085E-1X for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 15:43:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJMiT-00082i-Uu for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 15:43:01 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33394) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJMiT-0005Gd-NK for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 15:43:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJMiT-0002P5-Lt for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 15:43: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 20:43: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.16152361769228 (code B ref 46979); Mon, 08 Mar 2021 20:43:01 +0000 Original-Received: (at 46979) by debbugs.gnu.org; 8 Mar 2021 20:42:56 +0000 Original-Received: from localhost ([127.0.0.1]:44940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJMiO-0002Om-1u for submit@debbugs.gnu.org; Mon, 08 Mar 2021 15:42:56 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:46952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJMiM-0002OV-K0 for 46979@debbugs.gnu.org; Mon, 08 Mar 2021 15:42:54 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54719) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJMiH-0005BK-2R; Mon, 08 Mar 2021 15:42:49 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3156 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lJMiG-0006Is-En; Mon, 08 Mar 2021 15:42:48 -0500 In-Reply-To: (message from Daniel =?UTF-8?Q?Mart=C3=ADn?= on Mon, 08 Mar 2021 20:01:31 +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:201883 Archived-At: > From: Daniel Martín > Cc: 46979@debbugs.gnu.org, jidanni@jidanni.org > Date: Mon, 08 Mar 2021 20:01:31 +0100 > > Eli Zaretskii writes: > > > > > The need to add local variables to files is in itself a downside. > > I'm not too sold on the local variables approach, either. Perhaps we > could expose a customization point in the form of an alist of filename > patterns vs corresponding manuals. Emacs would provide a few of them > and users could expand the list with more if > needed. `Man-default-man-entry' would consult this alist first and > fallback to the current behavior of guessing based on the text near > point. That'd be better, IMO. We could also define a trivial major mode for those files, and then make Man-default-man-entry sensitive to that.