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

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

Re: Symbol's value as variable is void: defun


From: Davin Pearson
Subject: Re: Symbol's value as variable is void: defun
Date: Sun, 4 Feb 2018 22:39:50 -0800 (PST)
User-agent: G2/1.0

On Monday, February 5, 2018 at 4:04:54 PM UTC+13, Emanuel Berg wrote:
> Davin Pearson wrote:
> 
> > In response to your postings I have placed the
> > *.el source code files on my Website for all
> > to view. [...]
> >
> > When I try to load the file
> > c++2lisp++-stage-2-beautify.elc it says
> > (invalid-function d-assert) [...]
> 
> Does it byte compile with no error messages
> or even warnings?
> 
> -- 
> underground experts united
> http://user.it.uu.se/~embe8573


(setq load-path (cons "~/dlisp/" load-path))

(load-file "~/lisp++-projects/c++2lisp++.el")
(load-file "~/lisp++-projects/lisp++2c++.el")

(defun byte-compile-folder ()
  (interactive)
  (progn
    (delete-other-windows)
    (let ((ptr (directory-files "~/lisp++-projects/" nil "\\.el$")))
      (while ptr
        (when (file-newer-than-file-p (car ptr) (concat (car ptr) "c"))
          (message "Byte-compiling file %s" (car ptr))
          (byte-compile-file (car ptr) 'LOAD))
        (setq ptr (cdr ptr))
        )))
  )

The errors went away when I removed the compiler errors from the above defun.

Thank you for bringing it to my attention.


reply via email to

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