From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.devel Subject: Re: Can we expand the valid location of "Local Variables" ? Date: Mon, 23 Mar 2020 10:03:26 -0700 Message-ID: <87d093ovfl.fsf@dima.secretsauce.net> References: <87r1y0apzm.fsf@secretsauce.net> <87h7ygoulz.fsf@dima.secretsauce.net> <83sghzb1f9.fsf@gnu.org> <83k13bawyn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="58382"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.2.0; emacs 28.0.50 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 23 18:04:20 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jGQUu-000F5q-Nm for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Mar 2020 18:04:20 +0100 Original-Received: from localhost ([::1]:37126 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGQUt-0000nj-Nr for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Mar 2020 13:04:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45158) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jGQU6-0000MR-S4 for emacs-devel@gnu.org; Mon, 23 Mar 2020 13:03:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jGQU5-0000m1-Rl for emacs-devel@gnu.org; Mon, 23 Mar 2020 13:03:30 -0400 Original-Received: from wout5-smtp.messagingengine.com ([64.147.123.21]:60485) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jGQU5-0000k8-Cs for emacs-devel@gnu.org; Mon, 23 Mar 2020 13:03:29 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id E205D693 for ; Mon, 23 Mar 2020 13:03:27 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Mon, 23 Mar 2020 13:03:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= hiBl0F+8KIgsBrDKQ4VmLq6xScjIlSbtUcwJApVroe0=; b=VQWRymumcCWhwFK8 HTjUZ47JrF6rszxrXKc7zQcE1OE9hiJVScdaNmc8c+NT6pv6enc7VPklHPY33G7i WW3lhn++9eBLgQLbuqMWaZH/k4fz4EdvX4jtKNYs3LQTiTcutSw7m7Pr07aDHFdN hmWFMev9NmEGz79kgvSC+14S+Wbda/Z2223qwbuHRTkWvvykaOaXTvuwHEyg3GpY hY1OWO55SyAn+WA8Fu7mwyk36ygkkpaJBsea/kohRFdXtcOvgZJACn7zgaHQo4eS dufL3QZTUqFFfTD+XwzyG/BfOe/J4rRQtouSsBBK6hCJ+qJRrTN5LWX+D7eB8a9J mpcHIw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=hiBl0F+8KIgsBrDKQ4VmLq6xScjIlSbtUcwJApVro e0=; b=jcXhLimknU1ux0IDtNCXZPuvYPIjCR3B3VMfLqE/MMDU6atebO5tQDUSB 3d9NhtSDmD7HiuvSIpt0OurF3orhnfwiZplv/IeDynnVrlUo2QGk/72MIAZKqzI5 UUrDvTDUmYVDT6A0Hd87cooGYc+uhdfIJ/SRqCXpd9T2wU+ZWNaa5BO/DUrIMlFr mGEvnmltHOMWyyJS+G+EkSKqm4ECXxz6ij7YVADfhy4Pc28qs4q/z5iQne25xdPb OwlvSmsLDX1SjrNTaVMi7K0MXOvvHZ8XVSjWI9Vuhg1Wo46H3Ercn7d9iBoXKvX+ ay2VRQDlZrW5k3b111Z3s3gQquyQQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegkedgleehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpehffgfhvffujgffkfggtgfgsehtqh ertddtreejnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhmrgesshgvtghrvght shgruhgtvgdrnhgvtheqnecukfhppedutdejrddvuddtrddvudefrddvgeefnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhhishhtshesughi mhgrrdhsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Original-Received: from shorty.local (107-210-213-243.lightspeed.irvnca.sbcglobal.net [107.210.213.243]) by mail.messagingengine.com (Postfix) with ESMTPA id 2E4213062A4E for ; Mon, 23 Mar 2020 13:03:27 -0400 (EDT) Original-Received: from dima by shorty.local with local (Exim 4.92.1) (envelope-from ) id 1jGQU2-0001Vl-7F for emacs-devel@gnu.org; Mon, 23 Mar 2020 10:03:26 -0700 In-reply-to: <83k13bawyn.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.123.21 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245726 Archived-At: Eli Zaretskii writes: >> From: Robert Pluim >> Cc: dima@secretsauce.net, monnier@iro.umontreal.ca, emacs-devel@gnu.org >> Date: Mon, 23 Mar 2020 16:28:49 +0100 >> >> >>>>> On Mon, 23 Mar 2020 16:17:46 +0200, Eli Zaretskii s= aid: >> >> >> From: Robert Pluim >> >> Date: Mon, 23 Mar 2020 09:25:28 +0100 >> >> Cc: Stefan Monnier , emacs-devel@gnu.org >> >> >> >> Would providing a defcustom be such a hardship? >> >> Eli> Given that "enlarging the limit is a bad idea", I'm not even su= re we >> Eli> should provide a variable. We definitely shouldn't document >> Eli> it. >> >> In that case we shouldn=CA=BCt even provide the variable, no? > > Possibly. Stefan didn't say why he thought adding a variable was an > improvement, but my guess would be ease of change in the future. I think we should provide the variable, because even here the usual reasons apply: - With a variable the reader of the code knows that all uses of that variable refer to the same logical thing. If I see "3000" in two different places I don't know if they're related: it may just be a coincidence - With a variable, the reader of the code knows where to find the documentation. If we document this. - With a variable, the generated .tex docs and the value (3000) can't go out of sync