From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Daniel =?UTF-8?Q?Mart=C3=ADn?= via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46979: Allow setting Man-default-entry via Local Variables Date: Mon, 08 Mar 2021 12:17:39 +0100 Message-ID: References: <87tupnrhvv.8.fsf@jidanni.org> <83tupntrwb.fsf@gnu.org> <87pn0b12f0.5.fsf@jidanni.org> Reply-To: Daniel =?UTF-8?Q?Mart=C3=ADn?= Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23545"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin) Cc: 46979@debbugs.gnu.org, Eli Zaretskii To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 08 12:21:10 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 1lJDwk-000611-8j for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 12:21:10 +0100 Original-Received: from localhost ([::1]:49286 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJDwj-0001qU-6n for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 08 Mar 2021 06:21:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50170) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJDti-0007Vh-Sr for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 06:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lJDti-0002Yv-Jf for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 06:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lJDti-0004Vv-Fw for bug-gnu-emacs@gnu.org; Mon, 08 Mar 2021 06:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Daniel =?UTF-8?Q?Mart=C3=ADn?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 08 Mar 2021 11:18:02 +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.161520227417338 (code B ref 46979); Mon, 08 Mar 2021 11:18:02 +0000 Original-Received: (at 46979) by debbugs.gnu.org; 8 Mar 2021 11:17:54 +0000 Original-Received: from localhost ([127.0.0.1]:42265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJDta-0004VZ-KN for submit@debbugs.gnu.org; Mon, 08 Mar 2021 06:17:54 -0500 Original-Received: from sonic303-20.consmr.mail.ir2.yahoo.com ([77.238.178.201]:44566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lJDtV-0004VI-Uv for 46979@debbugs.gnu.org; Mon, 08 Mar 2021 06:17:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1615202263; bh=Mgwd8qtU3yaCiWfLGVyOry6Q8L0xzsSEELy7KlpKNnY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=o7lvH9TyMaPfjjK4QL1IF4xpi2fgwPQIFWF9nXKEk0my2uy7JW9Nw4KJ700Pu2MxSGkr9fKsMJusFCWCnbmqM28jhMd6dqdEEDovcXDfsKLoS2aIYkaiJbK+x0w0UNpBLwkr70tV6KAk0wb5ud5fwLuCIXSPlF8Jt30hC3D/tyKZ5Rp0xr9k2Q6eykYvSgBnjowYkRLuP4+9DcyqOIhL3uFwETmY1nq91NENk99cdJuL8oTxOCDka+ppn9CN/wzroLwjojO/JdZag6C5NoCYzKV7wFwykyFUtHnW9ki/L4kga0Bi1yf2VCCh0aQFHDtdVcuRewp/+BzPJg6eJ9Sbmw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1615202263; bh=4SbirUhN1NBv8XNEqWnY24DKM8N/pXhBUErLFQ5Ondm=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=tKmIJAB1xZTiZF6cpceJqAD4ByFWSLJNqupIy6KMCrvirSlI7/w35jhsZdz1kjamgXjM+QRauW4LQvJUbJhGMKnM3pvFEb4NCfWzyGwPqmpa1okdHhsVwcI8diXaa0ut52bKLugZmEs/LPErx5NAmYLQce507Z/imNC/rMsNxjAd20xJOq+syg794wXsoSHNT7XdrGEigQ8+is/YLr6SetpQ6WnjA85sLkvgXQ61em0/k3BKEc4wU5jcHlTZSIHPZX+p5M4qCauDR3gznHwjeAKTCbeS6QVtcHoVfF+nwdGxXeqOGdmyzNRpX6ds7sVzkXp/5taQinJjvhEvVstphA== X-YMail-OSG: FSAAjMkVM1mA3ivirZPP1zvpuwjrKtXY_RrVL_x7Uvj8uVveI8_egEiIohjMVvP k814KrIutEY4kbc8TOiTm6_FIBtW907JVyZcScHEOFG1wHrxOhFttA4cifAYdA7xBGkm7mr_E1iG F_73dvdzxP1c5pbdN1ERjIbN4htg1jfcpUzoeS.PL_h9w1OZnPYEeEYFWg6d4DV4d7cG_64RzV5e qD7H2NgvBsS2jZaJkf6EuIn5WJU_UxME4LutE0c.BWYi_UeXPWm47RFKgiIM0TYmG4_bde984jzW XdDOJSTkGFkNMBfD5xH8tRDg2oqJ65mzfJ.yaS3FLbEtZJNGBNqo1hAd.YXRJHCk.mh6l04D4aPs ps2zBHJVaB9OPovwdl_scOZgM0m24zlG9IM.1PWHlU2A.W3vxJI6bScaNPt2VWXK6ZZ_M4yhVrwq ONFgOMWlhBJy2yPPJPeTFXCOm5erALZnRUOasx0MkgyE1ZrSxywQUbR9riyCypIG5r8_ux3mwPQw Gg7_CvCULOtg4fYnVSsi5uZ0xpu6XEDlKAYDV9tZAzpFvZwcOmBoxGxuPiPO99_6ZJlTYDEtiWGs YAyUINLw13OLoOv1uM8cE21jrejyzZbMlp5EgfY.hn69hf.zTdbS9ug3RjHVDiOJekUEKAe8xiO4 PEe2K8ILqXeuAWq.Gn1YC2XJSZaRJi9rIJt8asJc4hC9kVF0RkoqpMCcLVkD9PZE8f2quVYX7fUp DpNlR.bc_3tyddcXpBM1sfAa41JwjPKCpiMaMxY4DLiqCJMpnJb32JXTl3VtI6iton1GWo4iTR_b IUncsyw93iaq5c_erCjfZs8ViSWMrIXxV6JoyblAUo X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.ir2.yahoo.com with HTTP; Mon, 8 Mar 2021 11:17:43 +0000 Original-Received: by smtp404.mail.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID f4e76eb1bb4d4cf28e3fea6ef76a619b; Mon, 08 Mar 2021 11:17:40 +0000 (UTC) In-Reply-To: <87pn0b12f0.5.fsf@jidanni.org> ("=?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson"'s message of "Sun, 07 Mar 2021 22:09:07 +0800") X-Mailer: WebService/1.1.17872 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Apache-HttpAsyncClient/4.1.4 (Java/11.0.9.1) 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:201821 Archived-At: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > > EZ> IMO, it would make much more sense to derive that from the current > EZ> major-mode (in Man-default-man-entry). Patches welcome. > > OK, sounds good. But sometimes e.g., crontab mode is not in emacs > officially yet, so supplementing that should still be an option. The major mode approach would work great for Bash configuration files, for example, but, as you mention, it may not work so well for Cron files or other .rc/.conf files that share Fundamental or Conf mode, in the abscence of a more specific mode. The local variable would require users to add them to existing files, only for Emacs. Do you have a more complete list of potential use cases, ie. common program configuration files with corresponding man pages? I don't know if there are plenty of them, and with that information we could think of the best and simplest way to implement the feature, if it's worth it. Thanks.