From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: customize-style Date: Thu, 20 Mar 2003 09:56:29 -0600 (CST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200303201556.JAA21910@eel.dms.auburn.edu> References: <20030317152226.E536@WINPC174> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1048176020 425 80.91.224.249 (20 Mar 2003 16:00:20 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 16:00:20 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 20 17:00:08 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18w2Se-000060-00 for ; Thu, 20 Mar 2003 17:00:08 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18w2Tx-00055g-00 for ; Thu, 20 Mar 2003 17:01:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18w2Rx-000629-01 for emacs-devel@quimby.gnus.org; Thu, 20 Mar 2003 10:59:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18w2RO-0005e1-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 10:58:50 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18w2Qz-0005Gj-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 10:58:26 -0500 Original-Received: from manatee.dms.auburn.edu ([131.204.53.104]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18w2OF-0004DQ-00; Thu, 20 Mar 2003 10:55:35 -0500 Original-Received: from eel.dms.auburn.edu (eel.dms.auburn.edu [131.204.53.108]) h2KFtWB18536; Thu, 20 Mar 2003 09:55:32 -0600 (CST) Original-Received: (from teirllm@localhost) by eel.dms.auburn.edu (8.9.3+Sun/8.9.3) id JAA21910; Thu, 20 Mar 2003 09:56:29 -0600 (CST) X-Authentication-Warning: eel.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: rms@gnu.org In-reply-to: (message from Richard Stallman on Thu, 20 Mar 2003 03:45:30 -0500) Original-cc: abraham@dina.kvl.dk X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12489 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12489 Richard Stallman wrote: I think you misread the doc string--the variable is local only in Custom buffers, and *scratch* is not one. The setq did exactly what it should do. Sorry, I should have been more precise. Do: M-x customize-browse then: select option: Confirm Kill Emacs M-: (setq custom-local-buffer "buf") C-h v custom-local-buffer Same result: the global value got set. The following (trivial) diff corrects the problem: (after the patch it is still going to be global in *scratch*, but local in Custom buffers.) Change log: 2003-03-20 Luc Teirlinck * cus-edit.el (custom-mode): Make custom-local-buffer local. Patch: ===File ~/cus-edit-diff===================================== cd /usr/local/share/emacs/21.3.50/lisp/ diff -c /usr/local/share/emacs/21.3.50/lisp/cus-edit.old.el /usr/local/share/emacs/21.3.50/lisp/cus-edit.el *** /usr/local/share/emacs/21.3.50/lisp/cus-edit.old.el Fri Mar 14 15:09:47 2003 --- /usr/local/share/emacs/21.3.50/lisp/cus-edit.el Thu Mar 20 08:53:54 2003 *************** *** 4062,4067 **** --- 4062,4068 ---- (setq widget-documentation-face 'custom-documentation-face) (make-local-variable 'widget-button-face) (setq widget-button-face 'custom-button-face) + (set (make-local-variable 'custom-local-buffer) nil) (set (make-local-variable 'widget-button-pressed-face) 'custom-button-pressed-face) (set (make-local-variable 'widget-mouse-face) Diff finished at Thu Mar 20 09:12:03 ============================================================