annotate lisp/gnus/dgnushack.el @ 16:0293115a14e9 r19-15b91

Import from CVS: tag r19-15b91
author cvs
date Mon, 13 Aug 2007 08:49:20 +0200
parents ac2d302a0011
children 4103f0995bd7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1 ;;; dgnushack.el --- a hack to set the load path for byte-compiling
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
2 ;; Copyright (C) 1994,95,96,97 Free Software Foundation, Inc.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 ;; Author: Lars Magne Ingebrigtsen <larsi@ifi.uio.no>
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 ;; Version: 4.19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 ;; Keywords: news, path
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 ;; This file is part of GNU Emacs.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 ;; GNU Emacs is free software; you can redistribute it and/or modify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 ;; it under the terms of the GNU General Public License as published by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12 ;; the Free Software Foundation; either version 2, or (at your option)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 ;; any later version.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 ;; GNU Emacs is distributed in the hope that it will be useful,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 ;; GNU General Public License for more details.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 ;; You should have received a copy of the GNU General Public License
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 ;; along with GNU Emacs; see the file COPYING. If not, write to the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 ;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 ;; Boston, MA 02111-1307, USA.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 ;;; Commentary:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27 ;;; Code:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
29 (fset 'facep 'ignore)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
30
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (require 'cl)
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
32 (require 'bytecomp)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
33 (push "." load-path)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
34 (require 'lpath)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
36 (defalias 'device-sound-enabled-p 'ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
37 (defalias 'play-sound-file 'ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
38 (defalias 'nndb-request-article 'ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
39 (defalias 'efs-re-read-dir 'ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
40 (defalias 'ange-ftp-re-read-dir 'ignore)
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
41 (defalias 'define-mail-user-agent 'ignore)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
42
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
43 (eval-and-compile
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
44 (unless (string-match "XEmacs" emacs-version)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
45 (fset 'get-popup-menu-response 'ignore)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
46 (fset 'event-object 'ignore)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
47 (fset 'x-defined-colors 'ignore)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
48 (fset 'read-color 'ignore)))
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
49
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 (defun dgnushack-compile ()
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
51 ;;(setq byte-compile-dynamic t)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 (let ((files (directory-files "." nil ".el$"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 (xemacs (string-match "XEmacs" emacs-version))
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
54 ;;(byte-compile-generate-call-tree t)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
55 byte-compile-warnings file elc)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
56 (condition-case ()
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
57 (require 'w3-forms)
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
58 (error (setq files (delete "nnweb.el" files))))
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
59 (while (setq file (pop files))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (cond
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 ((or (string= file "custom.el") (string= file "browse-url.el"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 (setq byte-compile-warnings nil))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 (xemacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 (setq byte-compile-warnings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 '(free-vars unresolved callargs redefine)))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (setq byte-compile-warnings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 '(free-vars unresolved callargs redefine obsolete))))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 (when (or (not (member file '("gnus-xmas.el" "gnus-picon.el"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 "messagexmas.el" "nnheaderxm.el"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 "smiley.el")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 xemacs)
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
73 (when (or (not (file-exists-p (setq elc (concat file "c"))))
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
74 (file-newer-than-file-p file elc))
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
75 (ignore-errors
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
76 (byte-compile-file file)))))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 (defun dgnushack-recompile ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 (require 'gnus)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (byte-recompile-directory "." 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 ;;; dgnushack.el ends here
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83