From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Yiyi Hu" Newsgroups: gmane.emacs.devel Subject: Re: Can we add a function which is used to returned immediately within an source file for lib? Date: Fri, 12 Sep 2008 02:37:47 +0000 Message-ID: References: <87y71zemnp.fsf@justinbogner.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1221187086 15774 80.91.229.12 (12 Sep 2008 02:38:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2008 02:38:06 +0000 (UTC) Cc: emacs-devel@gnu.org To: mail@justinbogner.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 12 04:39:02 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdyYj-0005yb-MY for ged-emacs-devel@m.gmane.org; Fri, 12 Sep 2008 04:38:57 +0200 Original-Received: from localhost ([127.0.0.1]:45723 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdyXi-0000Zg-Um for ged-emacs-devel@m.gmane.org; Thu, 11 Sep 2008 22:37:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdyXe-0000ZA-DY for emacs-devel@gnu.org; Thu, 11 Sep 2008 22:37:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdyXc-0000Yy-0Y for emacs-devel@gnu.org; Thu, 11 Sep 2008 22:37:48 -0400 Original-Received: from [199.232.76.173] (port=43349 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdyXb-0000Yv-Tq for emacs-devel@gnu.org; Thu, 11 Sep 2008 22:37:47 -0400 Original-Received: from mail-gx0-f12.google.com ([209.85.217.12]:42548) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdyXc-000688-57 for emacs-devel@gnu.org; Thu, 11 Sep 2008 22:37:48 -0400 Original-Received: by gxk5 with SMTP id 5so17939341gxk.18 for ; Thu, 11 Sep 2008 19:37:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=MRQoSyfSPs5iGQ+Ly29/wUZ0ePbFeRxLnStosgZDf+I=; b=cyn9cO8eR4GJ3kTXHV3RcbPRiiwMkIJYeyk32GSc2QrbsE1bO1gFOqKaL5YXKcbmNx FdER3U2qPAZi62m0m+1zFTTEx/Y8qKJQPELWd43mQfSHIqHa9YjLpXbBFa3dWiiOLzka 3ERsK6p85MnT3BRlgFabN7gGrIOB4Ti4WFyAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=eL3NP46nuXBR5v7f8sHFZiKh0J1TwaJ9tfpKJC4HwuAVjrAXezFeTU7ktHoK8rXSFj cJmPJL5syOZQ8TNfQZpK6K+T4B2yX0i0Sz9p/qMLP5MfQ/kyckPOAoic2ypDyp3qMRGz jjWre8ZgQkHM0JjakHaJzbRpm/vNUW9xXbxrI= Original-Received: by 10.151.145.11 with SMTP id x11mr680813ybn.132.1221187067133; Thu, 11 Sep 2008 19:37:47 -0700 (PDT) Original-Received: by 10.150.98.15 with HTTP; Thu, 11 Sep 2008 19:37:47 -0700 (PDT) In-Reply-To: <87y71zemnp.fsf@justinbogner.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:103834 Archived-At: What I want to do is simple: When emacs starts, It checks if ~/.emacs is newer than ~/.emacs.elc, if it does, then it recompiles the ~/.emacs, and load ~/.emacs.elc on the fly. But skip the rest of ~/.emacs, The reason why I want this will be explained. The unless version has this problem. (unless (byte-compile-file-if-newer "~/.emacs") remaining lisp code ...) Because, This will confuse M-x customize-* series functions. Eg, when you put (customize-set-variables ....) things within (unless (byte-compile-file-if-newer "~/.emacs") ) When you do M-x customzie-variable again, It will crate another list which is like (customize-set-variables ...) outside of the file level (unless () ...) statement. If you think It's ok, Please check the example above. (customize-set-variables ..) will take effect and last a session. returning while loading source is a good feature to have. On Wed, Sep 10, 2008 at 9:06 PM, wrote: > "Yiyi Hu" writes: > >> Can we add a function or extend (return t) to skip loading the rest of >> source please? > > What's wrong with `if'? > > -- > BOFH excuse #77: > > Typo in the code > > > >