[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
make-variable-buffer-local vs. make-local-variable
From: |
Miles Bader |
Subject: |
make-variable-buffer-local vs. make-local-variable |
Date: |
Tue, 31 Oct 2000 13:42:42 +0900 (JST) |
I'm curious if there's any concensus over which is a better way to
define (purely) buffer-local variables for a mode --
(defvar foo-bar ...)
(make-variable-buffer-local 'foo-bar)
(defun foo-mode ()
(setq foo-bar ...))
or
(defvar foo-bar ...)
(defun foo-mode ()
(set (make-local-variable 'foo-bar) ...))
-Miles
--
Love is a snowmobile racing across the tundra. Suddenly it flips over,
pinning you underneath. At night the ice weasels come. --Nietzsche
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- make-variable-buffer-local vs. make-local-variable,
Miles Bader <=