From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: Symbol's value as variable is void: defun Date: Fri, 2 Feb 2018 10:10:18 -0800 Message-ID: References: <4d2444cf-cca2-49b6-9afa-524aa7d28569@googlegroups.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1517596220 9153 195.159.176.226 (2 Feb 2018 18:30:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Feb 2018 18:30:20 +0000 (UTC) Cc: Davin Pearson To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 02 19:30:16 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 1ehg65-0001A4-0O for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Feb 2018 19:30:01 +0100 Original-Received: from localhost ([::1]:47940 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehg84-0000xW-9I for geh-help-gnu-emacs@m.gmane.org; Fri, 02 Feb 2018 13:32:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehfoi-0008FN-QY for help-gnu-emacs@gnu.org; Fri, 02 Feb 2018 13:12:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehfnN-00023V-37 for help-gnu-emacs@gnu.org; Fri, 02 Feb 2018 13:12:04 -0500 Original-Received: from mail-qt0-x233.google.com ([2607:f8b0:400d:c0d::233]:40457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehfnM-00022w-Rt for help-gnu-emacs@gnu.org; Fri, 02 Feb 2018 13:10:40 -0500 Original-Received: by mail-qt0-x233.google.com with SMTP id s39so31988013qth.7 for ; Fri, 02 Feb 2018 10:10:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WlHHt0eO1EsbVjb6jo/U1/sZh8Vg35q3dGZ562rbGS0=; b=iZSXsd/B/XopIKphMvjo/An8EksnmJedkaPl89w6/qNXTpxwlzouCMqehCnpWvsMAE UOZXb8CArPZWi4R5twJb2SMihgkWIp7vhY/BustnCchyUWm4u9Ma4J6ytGhXQMfWgwfl o7S5t5NNdfCAKA5IQP+O0uFfQ8kAA94shP5V0S8v9YVIphR7SMy91s5D0qjoDazNY4t8 2zc65C7M3N8ZFZvBlFm9OyseoJlzL3CibuAd6+GFC8bW3DYd/zFj0K4e+VikXKzA90Ov 3FA9nEh6F8gN+FPEamGSXaoseHTUh04uF5OrDhqGIFcrhzpa20vvg6x1dgnI/dgXzI2W 8I3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WlHHt0eO1EsbVjb6jo/U1/sZh8Vg35q3dGZ562rbGS0=; b=KiiUsDcpyD8FWbhlpSlTsLyX89GIzuquit6v0aETsPoV52iE4CbDONly+REaR5yeUi ng4VcLzfzIQi+VH3bTbwgdjUqBJsVK8WU6Nw5saE3SDD37aZABA/iHa2kJ5b2kPMdcrU yGsHz1UjEz0Bsuei7b7cfznlO9s/tsU1gLFMXUnG6QBhCUPz2512MNYQQQlE4YEq3st0 A9AUCi1WmJpwIqdQEncR/w6d7SUIdK0NVUlSbpx5kOp5vCD7eJ3IaadWf63DhLza4mRc 1EMsxEq6jFdy13eksGu5l/hqA9808LsOLvrM+eOgVAbE3sGTigXF6xQ+he8P4/wsiJtk kkyQ== X-Gm-Message-State: APf1xPCyStMJDJS/spYD+GIoycQBDKB8nh2iFdBhY74gocsc8sKehgQo un6XsUsJY8TBuYpYMQ0g2KwENtdyCHdet461LR4NHkwh X-Google-Smtp-Source: AH8x224aT91y5rNOKc1cvm/iU1NduhpFyc3uOO8ysowt7tp4pFd1EvAa1KvT2uYFJbm079OMDWX9e3YiKALJhVY4SN8= X-Received: by 10.200.57.3 with SMTP id s3mr5414394qtb.328.1517595039791; Fri, 02 Feb 2018 10:10:39 -0800 (PST) Original-Received: by 10.200.27.178 with HTTP; Fri, 2 Feb 2018 10:10:18 -0800 (PST) In-Reply-To: <4d2444cf-cca2-49b6-9afa-524aa7d28569@googlegroups.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::233 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:115900 Archived-At: Davin Pearson wrote: > ;; With the following defun in effect: > > (defun load-file-most-recent (file) [snip] > (load-file-most-recent "~/lisp++-projects/c++2lisp++-stage-1-purge-comments.el") > > ;; gives the following diagnostic: Symbol's value as variable is void: > ;; defun. Would using `load' with `load-prefer-newer' set to non-nil work for you (and save you from needing to implement `load-file-most-recent' yourself)? [ I'm basing this mostly on the name - I only glanced at the definition of `load-file-most-recent'.] John