From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#27639: 25.2; Fix syntax for minor mode enabling in dir locals in manual Date: Tue, 11 Jul 2017 19:37:42 +0300 Message-ID: <83wp7fhquh.fsf@gnu.org> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1499793992 18152 195.159.176.226 (11 Jul 2017 17:26:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Jul 2017 17:26:32 +0000 (UTC) Cc: 27639@debbugs.gnu.org To: Kaushal Modi Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 11 19:26:28 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUyvX-0004JN-Lp for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 19:26:23 +0200 Original-Received: from localhost ([::1]:47829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUyvc-0004S8-V4 for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Jul 2017 13:26:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUyAk-0008I1-Sp for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 12:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUyAk-0002OP-4b for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 12:38:02 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59806) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUyAk-0002OC-1E for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 12:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dUyAj-0005dg-R4 for bug-gnu-emacs@gnu.org; Tue, 11 Jul 2017 12:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Jul 2017 16:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27639 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27639-submit@debbugs.gnu.org id=B27639.149979107721666 (code B ref 27639); Tue, 11 Jul 2017 16:38:01 +0000 Original-Received: (at 27639) by debbugs.gnu.org; 11 Jul 2017 16:37:57 +0000 Original-Received: from localhost ([127.0.0.1]:34250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUyAf-0005dO-87 for submit@debbugs.gnu.org; Tue, 11 Jul 2017 12:37:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35757) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUyAd-0005d9-MY for 27639@debbugs.gnu.org; Tue, 11 Jul 2017 12:37:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUyAV-00029M-H0 for 27639@debbugs.gnu.org; Tue, 11 Jul 2017 12:37:50 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36990) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUyAV-00029A-Cd; Tue, 11 Jul 2017 12:37:47 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1763 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dUyAU-0004gN-Iv; Tue, 11 Jul 2017 12:37:47 -0400 In-reply-to: (message from Kaushal Modi on Mon, 10 Jul 2017 11:55:58 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:134435 Archived-At: > From: Kaushal Modi > Date: Mon, 10 Jul 2017 11:55:58 +0000 > > I recently stumbled across this Reddit post[1] where a user is trying to enable a minor mode in .dir-locals.el. > But he was doing that by setting the mode name to `t'. indent-tabs-mode is the mode variable, so setting it to t is not a mistake. > We generally(?) enable minor modes by doing (mode . MINOR) in .dir-locals.el. You could do it either way. Also, some modes don't have such a variable, so only the latter way will work. But why do you think we should only advertise one method, but not the other? There's no magic here, just legitimate use of public documented variables: 'mode' is a variable and so is 'indent-tabs-mode'. So I think I don't get your motivation for the report and for the patch you provided. Thanks.