[Top][All Lists]

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

Re: Repeated call of customize buffer returns error

From: Markus Rost
Subject: Re: Repeated call of customize buffer returns error
Date: Thu, 12 Jun 2003 14:51:51 -0400 (EDT)

Something related:  Evaluate the form

  (defcustom test-var nil
    "No doc"
    :type '(radio string sexp))
  (customize-variable 'test-var)
  (find-file "~")
  (customize-variable 'test-var))

You end up with two windows showing the same customize buffer.  With
the old version of custom-buffer-create in cus-edit.el.~1.181 the two
windows would show different buffers, which seems to be more

(defun custom-buffer-create (options &optional name description)
  "Create a buffer containing OPTIONS.
Optional NAME is the name of the buffer.
OPTIONS should be an alist of the form ((SYMBOL WIDGET)...), where
SYMBOL is a customization option, and WIDGET is a widget for editing
that option."
  (unless name (setq name "*Customization*"))
  (kill-buffer (get-buffer-create name))
  (pop-to-buffer (get-buffer-create name))
  (custom-buffer-create-internal options description))

reply via email to

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