From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Why aren't paragraph-s\(tart\|eparate\) buffer local by default? Date: Mon, 20 Jun 2005 08:28:33 -0400 Message-ID: <87is09tdr5.fsf-monnier+emacs@gnu.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119271334 18149 80.91.229.2 (20 Jun 2005 12:42:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Jun 2005 12:42:14 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 20 14:42:12 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DkLav-0006II-J2 for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2005 14:41:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DkLh9-0006As-3r for ged-emacs-devel@m.gmane.org; Mon, 20 Jun 2005 08:48:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DkLXr-00048W-Mb for emacs-devel@gnu.org; Mon, 20 Jun 2005 08:38:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DkLXY-0003xx-8l for emacs-devel@gnu.org; Mon, 20 Jun 2005 08:38:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DkLXV-0003wD-MK for emacs-devel@gnu.org; Mon, 20 Jun 2005 08:38:09 -0400 Original-Received: from [209.226.175.93] (helo=tomts36-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DkLQs-0007JU-4n for emacs-devel@gnu.org; Mon, 20 Jun 2005 08:31:18 -0400 Original-Received: from alfajor ([67.71.119.247]) by tomts36-srv.bellnexxia.net (InterMail vM.5.01.06.10 201-253-122-130-110-20040306) with ESMTP id <20050620122834.XGKV16985.tomts36-srv.bellnexxia.net@alfajor>; Mon, 20 Jun 2005 08:28:34 -0400 Original-Received: by alfajor (Postfix, from userid 1000) id 91910D73F6; Mon, 20 Jun 2005 08:28:33 -0400 (EDT) Original-To: Alan Mackenzie In-Reply-To: (Alan Mackenzie's message of "Sat, 18 Jun 2005 21:17:31 +0000 (GMT)") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:39171 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39171 > Unfortunately, the CC Mode initialisation hadn't been done for the > buffer. In particular, the the two paragraph variables hadn't been made > buffer local. So the global values got overwritten. Which is why I strongly recommend to always use (set (make-local-variable 'foo) bar) rather than (make-local-variable 'foo) ... ... (setq foo bar) Putting the two parts in different functions is asking for trouble, Stefan