From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: locals.texi Date: Thu, 29 Jun 2006 13:57:26 -0400 Message-ID: References: <17571.1885.899074.211162@kahikatea.snap.net.nz> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1151603879 1206 80.91.229.2 (29 Jun 2006 17:57:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 29 Jun 2006 17:57:59 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 29 19:57:56 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Fw0lp-0003ZE-IX for ged-emacs-devel@m.gmane.org; Thu, 29 Jun 2006 19:57:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fw0lp-0002fA-08 for ged-emacs-devel@m.gmane.org; Thu, 29 Jun 2006 13:57:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Fw0lc-0002bz-Fo for emacs-devel@gnu.org; Thu, 29 Jun 2006 13:57:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Fw0lb-0002ZF-FU for emacs-devel@gnu.org; Thu, 29 Jun 2006 13:57:28 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Fw0lb-0002Z8-Bg for emacs-devel@gnu.org; Thu, 29 Jun 2006 13:57:27 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Fw0yC-0007RH-EA for emacs-devel@gnu.org; Thu, 29 Jun 2006 14:10:28 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1Fw0la-00022v-0g; Thu, 29 Jun 2006 13:57:26 -0400 Original-To: Nick Roberts In-reply-to: <17571.1885.899074.211162@kahikatea.snap.net.nz> (message from Nick Roberts on Thu, 29 Jun 2006 10:49:01 +1200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56297 Archived-At: In gdb-ui.el (as in many other files, I often just copy current practice), I have constructs like (set (make-local-variable 'font-lock-defaults) '(gdb-memory-font-lock-keywords)) 1. It is always cleaner to use separate calls to make-local-variable and setq. 2. When the variable is automatically local, it is ok to delete the call to make-local-variable. A major mode normally doesn't set any variable that isn't local.