emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: customize-style


From: Luc Teirlinck
Subject: Re: customize-style
Date: Thu, 20 Mar 2003 09:56:29 -0600 (CST)

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  <address@hidden>

        * 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
============================================================




reply via email to

[Prev in Thread] Current Thread [Next in Thread]