From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Yiyi Hu" Newsgroups: gmane.emacs.help Subject: Can we add a function which is used to returned immediately within an source file for lib? Date: Wed, 10 Sep 2008 17:31:07 +0800 Message-ID: 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 1221051711 2104 80.91.229.12 (10 Sep 2008 13:01:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Sep 2008 13:01:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 10 15:02:37 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdPL9-00073Q-61 for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 15:02:35 +0200 Original-Received: from localhost ([127.0.0.1]:35811 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdPK8-0004hW-KE for geh-help-gnu-emacs@m.gmane.org; Wed, 10 Sep 2008 09:01:32 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KdM2a-0007lk-U5 for help-gnu-emacs@gnu.org; Wed, 10 Sep 2008 05:31:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KdM2Y-0007kV-EE for help-gnu-emacs@gnu.org; Wed, 10 Sep 2008 05:31:11 -0400 Original-Received: from [199.232.76.173] (port=37601 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdM2X-0007kK-St for help-gnu-emacs@gnu.org; Wed, 10 Sep 2008 05:31:10 -0400 Original-Received: from mail-gx0-f12.google.com ([209.85.217.12]:45543) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KdM2X-0003Ru-GC for help-gnu-emacs@gnu.org; Wed, 10 Sep 2008 05:31:09 -0400 Original-Received: by gxk5 with SMTP id 5so12911923gxk.18 for ; Wed, 10 Sep 2008 02:31:08 -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:mime-version:content-type:content-transfer-encoding :content-disposition; bh=FlgzgoOvb1StlSkkAFYjF0HIqSL/hNnncM3VwWGDNx8=; b=FWUCQBJEOnqqfHt1T4Ud3L9kMroRseKEu7Z7Qb0Gji7ON2GKrTA5eU1zRdKPHTEeKB gB4PDZdtgotVOAV8OIbdj6FbUVwYRjrXm2eLJcsrPzSmPBFcfys/JXjEmkTgU9feOBOY UpCrsqx59og4aYDDnijqGVd92vUkzPlMhUzYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=w6t7T2aO7d5z5WdzjsGmuNx4STH8npKYLjlShbKhj8iMvp50BTeYDOVZ8oB1a9JVKG 4Bj2RyYCRo2PjdiRVqpDbY3hXO46U3EKbOWtr+ZNdkgCwwyQ1xhHRFOCFFh7swT5oDOj cRSH1BGjIXpQrd0KL3kxgC6A1nONFJp+1Au0o= Original-Received: by 10.150.147.9 with SMTP id u9mr1691114ybd.126.1221039067962; Wed, 10 Sep 2008 02:31:07 -0700 (PDT) Original-Received: by 10.150.98.15 with HTTP; Wed, 10 Sep 2008 02:31:07 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Wed, 10 Sep 2008 09:00:49 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57388 Archived-At: Can we add a function or extend (return t) to skip loading the rest of source please? Eg, my ~/.emacs (defun byte-compile-file-if-newer (src) (let ((result (concat src ".elc"))) (when (file-newer-than-file-p src result) (byte-compile-file src) (load-file result)))) (byte-compile-file-if-newer "~/.emacs") (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(auto-compression-mode t) '(column-number-mode t) '(cperl-indent-level 4) '(delete-selection-mode t) '(display-battery-mode t) '(display-time-24hr-format t) '(display-time-day-and-date t) '(display-time-mode t) '(encoded-kbd-mode t) '(gnus-nntp-server "news.readfreenews.net") '(indent-tabs-mode nil) '(inferior-lisp-program "sbcl") '(inhibit-eol-conversion t) '(inhibit-startup-screen t) '(initial-scratch-message nil) '(menu-bar-mode nil) '(mouse-avoidance-mode (quote exile) nil (avoid))) For now, there is now way to support skip the rest of ~/.emacs after (byte-compile-file-if-newer "~/.emacs").