From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Re: Symbol's value as variable is void: defun Date: Sun, 4 Feb 2018 22:39:50 -0800 (PST) Message-ID: <7a817195-02d9-4742-b018-19d67c0b3981@googlegroups.com> References: <4d2444cf-cca2-49b6-9afa-524aa7d28569@googlegroups.com> <68813565-1ce4-44c9-b350-80aff7dd000b@googlegroups.com> <86vafcrvaj.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1517813214 9593 195.159.176.226 (5 Feb 2018 06:46:54 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 5 Feb 2018 06:46:54 +0000 (UTC) Injection-Date: Mon, 05 Feb 2018 06:39:51 +0000 User-Agent: G2/1.0 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 05 07:46:50 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eiaXh-0000LH-GI for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Feb 2018 07:46:17 +0100 Original-Received: from localhost ([::1]:60301 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eiaZi-0001Hc-M6 for geh-help-gnu-emacs@m.gmane.org; Mon, 05 Feb 2018 01:48:22 -0500 X-Received: by 10.55.166.139 with SMTP id p133mr1033905qke.42.1517812791086; Sun, 04 Feb 2018 22:39:51 -0800 (PST) X-Received: by 10.31.49.86 with SMTP id x83mr4829269vkx.0.1517812790954; Sun, 04 Feb 2018 22:39:50 -0800 (PST) Original-Path: usenet.stanford.edu!t22no99408qtb.0!news-out.google.com!u51ni158qtk.1!nntp.google.com!t22no99407qtb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <86vafcrvaj.fsf@zoho.com> Complaints-To: groups-abuse@google.com Original-Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=115.189.100.91; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 115.189.100.91 Original-Xref: usenet.stanford.edu gnu.emacs.help:221806 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115923 Archived-At: 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.