emacs-devel
[Top][All Lists]
Advanced

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

Re: void variable


From: Lars Hansen
Subject: Re: void variable
Date: Mon, 26 Jul 2004 20:40:25 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk

Kai Grossjohann wrote:
If foo.el defines a variable foo-var, and bar.el wishes to let-bind
this variable, then perhaps the manual should suggest the *caller*
(ie, bar.el) to require foo:

(require 'foo)

(defun bar-func ()
  (let ((foo-var ...))
    ...))

I guess one wants to avoid unnessary loading. So maybe it should be

(defun bar-func ()
  (require 'foo)
  (let ((foo-var ...))
    ...))

At least that was what I did in wdired.el.





reply via email to

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