help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: compiler warning "the function X might not be defined at runtime"


From: Kevin Rodgers
Subject: Re: compiler warning "the function X might not be defined at runtime"
Date: Thu, 19 Feb 2009 21:35:11 -0700
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Kevin Rodgers wrote:
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 --------

I meant emacs 22.3 of course.

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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