From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Kaushal Modi Newsgroups: gmane.emacs.help Subject: Understanding why mode keyword shouldn't be used for minor modes in .dir-locals.el Date: Mon, 24 Dec 2018 11:06:38 -0500 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1545667548 14483 195.159.176.226 (24 Dec 2018 16:05:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Dec 2018 16:05:48 +0000 (UTC) To: Help Gnu Emacs mailing list Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 24 17:05:44 2018 Return-path: Envelope-to: geh-help-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 1gbSjd-0003dS-Qc for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Dec 2018 17:05:41 +0100 Original-Received: from localhost ([127.0.0.1]:37758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbSlk-0000Vu-5u for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Dec 2018 11:07:52 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gbSlE-0000Vp-Q3 for help-gnu-emacs@gnu.org; Mon, 24 Dec 2018 11:07:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gbSlC-0001Iy-8y for help-gnu-emacs@gnu.org; Mon, 24 Dec 2018 11:07:18 -0500 Original-Received: from mail-lj1-x22d.google.com ([2a00:1450:4864:20::22d]:45070) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gbSlC-0001Et-1V for help-gnu-emacs@gnu.org; Mon, 24 Dec 2018 11:07:18 -0500 Original-Received: by mail-lj1-x22d.google.com with SMTP id s5-v6so10629464ljd.12 for ; Mon, 24 Dec 2018 08:07:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kq20ICUnw1RWvyGSgseviKOMaWBuDUXcj/sibsqL0vg=; b=ilYKrbY3VUopqnGnKFzkdMZwPGkdihFUtr8lHbd++ThSWr38wrhoTfksJoj5Tz9MoL CImW/4jBrZ6AuXcGKrzq3IZUTAFBOxYgXKJqnioakWYe1hE4Ncr8d2Z3yGlKcAP3PCfl PwS/VMHPyVnWN+mbaHMV+72uj+rMqYZiA5lrbxlFy/u9G47nxOj/t98fFYHJBeNGQ1qk Mx0h2CHGFhNHq7KD1C18HTxLgEk7weuKd3FOnmNHyBpA4a0MCNsXPaUyt0hQl2fOj0Ok igF5q5Fu615IAZBMpjIPWWDoRVVokGRn+IlZKWnMEMDDzHhW6d73pyxBNoNDNK6X8o3N vHLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kq20ICUnw1RWvyGSgseviKOMaWBuDUXcj/sibsqL0vg=; b=lz+Vhsx1MEIVORtugt1YPmH8EDG5C2kSMsmL14KtVLRMMDdrAf7mRPZwFSC39kL/pY J9D+c8+wg78/6lReJFdR2xQZxMQwOAVOPVMGEJekCC9SD20Z3/XAFvSXsDW/WLCMrPES qrVqi2VdAOM6uGdu/etl9w/q1WHq1HV5nEWSK1J1yBGLQM4supIK19zy+3SnV/x1ria3 uf11g8r3R7cJUNTEY+VAoI6R6tRGODHCTF6HWqQRteQKDtW0GW4qPvultlSQnx64od5e u0RVTU6x9yOF/ui3BcCaqAp/UAlQZraqUtbFUvptNZPRJ7OWUFcEYgrceG3ybA02sswB GH8w== X-Gm-Message-State: AJcUukfSvhqahSQxoYlqX0PnTD98wOoiwJEabVwXX00KBxRUYU0V5k0y 8v3Dd1ycf+6eq1ob5uI7nRTj2GoRNuT0eetO+NYjzXc/6x0= X-Google-Smtp-Source: ALg8bN4XL9q65ovnz+lAcRCPhdfR+4MDHIAW9t4UaFsEmm1xFmfepzKaL9t4/um0olDKI0on5BXZW0bktGKlBaX55dM= X-Received: by 2002:a2e:851a:: with SMTP id j26-v6mr7608508lji.163.1545667635181; Mon, 24 Dec 2018 08:07:15 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::22d X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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:119036 Archived-At: Hello, >From the manual node (emacs) Specifying File Variables: > Do not use the =E2=80=98mode=E2=80=99 keyword for minor modes. To enable= or disable a minor mode in a local variables list, use the =E2=80=98eval=E2=80=99 keyw= ord with a Lisp expression that runs the mode command (*note Minor Modes::). Though, I have been using (mode . auto-fill) in my .dir-locals.el for ages, and it works great. And it's less verbose than (eval . (auto-fill-mode)). So I'd like to understand why the manual suggests *not* to use the mode keyword for minor modes. Thanks. -- Kaushal Modi