Source

apel / pcustom.el

steveb e07b8e4 

yoshiki 833a3fa 
steveb e07b8e4 






















yoshiki 833a3fa 

steveb e07b8e4 






yoshiki 833a3fa 









steveb e07b8e4 


yoshiki 833a3fa 

steveb e07b8e4 





yoshiki 833a3fa 

steveb e07b8e4 


yoshiki 833a3fa 

steveb e07b8e4 
yoshiki 833a3fa 
;;; pcustom.el -- a portable custom.el.

;; Copyright (C) 1999 Free Software Foundation, Inc.
;; Copyright (C) 1999 Mikio Nakajima <minakaji@osaka.email.ne.jp>

;; Author: Mikio Nakajima <minakaji@osaka.email.ne.jp>
;;	Shuhei KOBAYASHI <shuhei@aqua.ocn.ne.jp>
;; Keywords: emulating, custom

;; This file is part of APEL (A Portable Emacs Library).

;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
;; published by the Free Software Foundation; either version 2, or (at
;; your option) any later version.

;; This program is distributed in the hope that it will be useful, but
;; WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
;; General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with this program; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
;; Boston, MA 02111-1307, USA.

;;; Commentary:

;;; Code:

(require 'poe)
(eval-when-compile (require 'static))

(static-if (condition-case nil
	       ;; compile-time check.
	       (if (and (require 'custom)
			(fboundp 'custom-declare-variable))
		   ;; you have "new custom".
		   t
		 ;; you have custom, but it is "old".
		 (message "\
  ** \"old custom\" is loaded.  See README if you want to use \"new custom\".")
		 (sleep-for 1)
		 nil)
	     ;; you don't have custom.
	     (error nil))
    ;; you have "new custom". no load-time check.
    (require 'custom)
  ;; your custom is "old custom",
  ;; or you don't have custom library at compile-time.
  (or (condition-case nil
	  ;; load-time check.
	  ;; load "custom" if exists.
	  (and (require 'custom)
	       (fboundp 'custom-declare-variable))
	(error nil))
      ;; your custom is "old custom",
      ;; or you don't have custom library.
      ;; load emulation version of "new custom".
      (require 'tinycustom)))

(require 'product)
(product-provide (provide 'pcustom) (require 'apel-ver))

;;; pcustom.el ends here
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.