|
From: | Lennart Borgman (gmail) |
Subject: | Re: Why is not end-of-defun-function buffer local? |
Date: | Sat, 08 Dec 2007 19:04:20 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Stefan Monnier wrote:
It surprises me that beginning/end-of-defun-function are not always buffer local.Why force them to be buffer-local? When you need to set them in a buffer, just do (set (make-local-variable 'end-of-defun-function) 'foo) If you think that's too long, then you may want to request a new `setq-local' macro.
setq-local would be a good idea.But I do not understand how you think in this case. Are not the variables above always meant to be buffer local?
Looking at some code that is a bit older it looks like some of it uses make-local-variable where it is not needed since the variables in question are always buffer local. From that I draw the conclusion that the code in Emacs uses make-variable-buffer-local more often now. Is not that the case?
[Prev in Thread] | Current Thread | [Next in Thread] |