|
From: | Kevin Rodgers |
Subject: | Re: compiler warning "the function X might not be defined at runtime" |
Date: | Thu, 19 Feb 2009 21:33:38 -0700 |
User-agent: | Thunderbird 2.0.0.19 (Macintosh/20081209) |
Samuel Wales wrote:
What more needs to be done to get rid of that warning? Thanks. ;;(unless (functionp 'scroll-lock-mode) (defun ... (require 'scroll-lock) (eval-when-compile (require 'scroll-lock)) (eval-when (eval load compile) (require 'scroll-lock)) (defun alpha-1 () "even more of a kludge to restore sanity after simultaneous scrolling." (interactive) (one-window) (require 'scroll-lock) (scroll-lock-mode 0))
How are you calling scroll-lock-mode and how are you compiling the file? I don't get any warnings with M-x byte-compile-file in emacs 23.2, started with -Q, on this file: -------- foo.el -------- (defun foo () (scroll-lock-mode 0)) -------- foo.el -------- -- Kevin Rodgers Denver, Colorado, USA
[Prev in Thread] | Current Thread | [Next in Thread] |