From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.bugs Subject: `make-variable-frame-local' Date: Sat, 3 Aug 2002 07:01:39 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <200208030501.g7351d907628@localhost.localdomain> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1028345130 12188 127.0.0.1 (3 Aug 2002 03:25:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2002 03:25:30 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17apXk-0003AK-00 for ; Sat, 03 Aug 2002 05:25:28 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17apYK-0007t7-00; Fri, 02 Aug 2002 23:26:04 -0400 Original-Received: from dialin-145-254-203-145.arcor-ip.net ([145.254.203.145] helo=localhost.localdomain) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17apYD-0007s9-00 for ; Fri, 02 Aug 2002 23:25:58 -0400 Original-Received: (from egoge@localhost) by localhost.localdomain (8.11.4/8.11.4) id g7351d907628; Sat, 3 Aug 2002 07:01:39 +0200 Original-To: bug-gnu-emacs@gnu.org Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:3100 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:3100 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-04-29 on hermes configured using `configure --with-gif --with-png --with-x-toolkit=lucid --with-xpm --with-jpeg --with-tiff' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: C value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Is it possible that there is a bug in `make-variable-frame-local' or am I missing something here? I do the following in a fresh Emacs (v 21.2) started with -q and -no-site-file: I eval this in *scratch*: (defvar sframes-mode nil) (make-variable-frame-local 'sframes-mode) (setq sframes-mode 'lirum-larum) Then I make a new frame with `C-x 5 2'. I eval this in the new frame: (setq sframes-mode 'schubi-dubi) Then I go back to frame #1 and do `C-h v sframe-mode RET': ==> sframes-mode's value is schubi-dubi In other words: `sframes-mode' still behaves so far like a global variable. :-( --- Now the docs mention frame-parameters in the context of `make-variable-frame-local'. Again in a fresh Emacs with -q --no-site-file: frame #1: (defvar sframes-mode nil) (make-variable-frame-local 'sframes-mode) (modify-frame-parameters nil '((sframes-mode . lirum-larum))) sframes-mode => lirum-larum Then I create frame #2: sframes-mode => nil (setq lirum-larum 'schubi-dubi) Back to frame #1: sframes-mode => lirum-larum So after I touched the frame-parameters once, everything works as expected. --- Now, how do I work around this? Do I have to do modify the frame-parameters once for every frame-local variable? Or is there a better way? I need it to implement a frame-local minor-mode. -- Oliver