all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Davin Pearson <davin.pearson@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Symbol's value as variable is void: defun
Date: Sun, 4 Feb 2018 22:39:50 -0800 (PST)	[thread overview]
Message-ID: <7a817195-02d9-4742-b018-19d67c0b3981@googlegroups.com> (raw)
In-Reply-To: <86vafcrvaj.fsf@zoho.com>

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	other threads:[~2018-02-05  6:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-02  2:54 Symbol's value as variable is void: defun Davin Pearson
2018-02-02  3:27 ` Emanuel Berg
2018-02-02  7:50   ` tomas
2018-02-02  8:22   ` Emanuel Berg
2018-02-02  7:48 ` tomas
2018-02-02 11:39 ` Ben Bacarisse
2018-02-02 18:10 ` John Mastro
2018-02-05  2:59 ` Davin Pearson
2018-02-05  3:04   ` Emanuel Berg
2018-02-05  6:39     ` Davin Pearson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7a817195-02d9-4742-b018-19d67c0b3981@googlegroups.com \
    --to=davin.pearson@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.