annotate lisp/gnus/dgnushack.el @ 70:131b0175ea99 r20-0b30

Import from CVS: tag r20-0b30
author cvs
date Mon, 13 Aug 2007 09:02:59 +0200
parents ec9a17fef872
children 0d2f883870bc
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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
2 ;; Copyright (C) 1994,95,96 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
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
29 (require 'cl)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
30 (setq load-path (cons "." load-path))
16
0293115a14e9 Import from CVS: tag r19-15b91
cvs
parents: 2
diff changeset
31
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
32 (setq custom-file "/THIS FILE DOES NOT eXiST!")
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
2
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
34 (defalias 'device-sound-enabled-p 'ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
35 (defalias 'play-sound-file 'ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
36 (defalias 'nndb-request-article 'ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
37 (defalias 'efs-re-read-dir 'ignore)
ac2d302a0011 Import from CVS: tag r19-15b2
cvs
parents: 0
diff changeset
38 (defalias 'ange-ftp-re-read-dir 'ignore)
30
ec9a17fef872 Import from CVS: tag r19-15b98
cvs
parents: 24
diff changeset
39
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 (defun dgnushack-compile ()
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
41 ;(setq byte-compile-dynamic t)
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (let ((files (directory-files "." nil ".el$"))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 (xemacs (string-match "XEmacs" emacs-version))
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
44 byte-compile-warnings file)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
45 (while files
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
46 (setq file (car files)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
47 files (cdr files))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
48 (cond
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
49 ((or (string= file "custom.el") (string= file "browse-url.el"))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
50 (setq byte-compile-warnings nil))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
51 (xemacs
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
52 (setq byte-compile-warnings
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
53 '(free-vars unresolved callargs redefine)))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
54 (t
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
55 (setq byte-compile-warnings
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
56 '(free-vars unresolved callargs redefine obsolete))))
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
57 (when (or (not (member file '("gnus-xmas.el" "gnus-picon.el"
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 "messagexmas.el" "nnheaderxm.el"
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 "smiley.el")))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 xemacs)
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
61 (condition-case ()
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
62 (byte-compile-file file)
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
63 (error nil))))))
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 (defun dgnushack-recompile ()
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 (require 'gnus)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 (byte-recompile-directory "." 0))
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68
70
131b0175ea99 Import from CVS: tag r20-0b30
cvs
parents: 30
diff changeset
69 ;;; dgnushack.el ends here
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70