aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1992-07-19 01:07:07 +0000
committerRichard M. Stallman1992-07-19 01:07:07 +0000
commitfd5285f3e3929a85dd3b140880d3bd9bb9626d4d (patch)
tree36d055e387a969bf4a1cf794c739d6494ccea123
parent8215ebe635873ef5aea8b031aab0e6650fab0321 (diff)
downloademacs-fd5285f3e3929a85dd3b140880d3bd9bb9626d4d.tar.gz
emacs-fd5285f3e3929a85dd3b140880d3bd9bb9626d4d.zip
*** empty log message ***
-rw-r--r--lisp/emacs-lisp/bytecomp.el40
-rw-r--r--lisp/files.el1
-rw-r--r--lisp/mail/rmail.el9
-rw-r--r--src/callint.c2
4 files changed, 33 insertions, 19 deletions
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 57f83ca57b6..583fd60b392 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1,17 +1,21 @@
1;;; -*- Mode: Emacs-Lisp -*- 1;;; bytecomp.el --- compilation of Lisp code into byte code.
2;;; Compilation of Lisp code into byte code. 2
3;;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc. 3;; Author: Jamie Zawinski <jwz@lucid.com>
4;; Hallvard Furuseth <hbf@ulrik.uio.no>
5;; Last-Modified: 15 Jul 1992
6;; Keywords: internal
4 7
5;; By Jamie Zawinski <jwz@lucid.com> and Hallvard Furuseth <hbf@ulrik.uio.no>.
6;; Subsequently modified by RMS. 8;; Subsequently modified by RMS.
7 9
8(defconst byte-compile-version "FSF 2.1") 10(defconst byte-compile-version "FSF 2.1")
9 11
12;;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc.
13
10;; This file is part of GNU Emacs. 14;; This file is part of GNU Emacs.
11 15
12;; GNU Emacs is free software; you can redistribute it and/or modify 16;; GNU Emacs is free software; you can redistribute it and/or modify
13;; it under the terms of the GNU General Public License as published by 17;; it under the terms of the GNU General Public License as published by
14;; the Free Software Foundation; either version 1, or (at your option) 18;; the Free Software Foundation; either version 2, or (at your option)
15;; any later version. 19;; any later version.
16 20
17;; GNU Emacs is distributed in the hope that it will be useful, 21;; GNU Emacs is distributed in the hope that it will be useful,
@@ -23,6 +27,8 @@
23;; along with GNU Emacs; see the file COPYING. If not, write to 27;; along with GNU Emacs; see the file COPYING. If not, write to
24;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 28;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
25 29
30;;; Code:
31
26;;; ======================================================================== 32;;; ========================================================================
27;;; Entry points: 33;;; Entry points:
28;;; byte-recompile-directory, byte-compile-file, batch-byte-compile, 34;;; byte-recompile-directory, byte-compile-file, batch-byte-compile,
@@ -757,8 +763,11 @@ otherwise pop it")
757 (if byte-compile-error-on-warn 763 (if byte-compile-error-on-warn
758 (error "%s" format) ; byte-compile-file catches and logs it 764 (error "%s" format) ; byte-compile-file catches and logs it
759 (byte-compile-log-1 (concat "** " format)) 765 (byte-compile-log-1 (concat "** " format))
760 (or noninteractive ; already written on stdout. 766;;; It is useless to flash warnings too fast to be read.
761 (message "Warning: %s" format)))) 767;;; Besides, they will all be shown at the end.
768;;; (or noninteractive ; already written on stdout.
769;;; (message "Warning: %s" format))
770 ))
762 771
763;;; Used by make-obsolete. 772;;; Used by make-obsolete.
764(defun byte-compile-obsolete (form) 773(defun byte-compile-obsolete (form)
@@ -1043,6 +1052,7 @@ otherwise pop it")
1043 (recenter 1)))))))) 1052 (recenter 1))))))))
1044 1053
1045 1054
1055;;;###autoload
1046(defun byte-recompile-directory (directory &optional arg) 1056(defun byte-recompile-directory (directory &optional arg)
1047 "Recompile every `.el' file in DIRECTORY that needs recompilation. 1057 "Recompile every `.el' file in DIRECTORY that needs recompilation.
1048This is if a `.elc' file exists but is older than the `.el' file. 1058This is if a `.elc' file exists but is older than the `.el' file.
@@ -1070,6 +1080,7 @@ for each such `.el' file, whether to compile it."
1070 (message "Done (Total of %d file%s compiled)" 1080 (message "Done (Total of %d file%s compiled)"
1071 count (if (= count 1) "" "s")))) 1081 count (if (= count 1) "" "s"))))
1072 1082
1083;;;###autoload
1073(defun byte-compile-file (filename &optional load) 1084(defun byte-compile-file (filename &optional load)
1074 "Compile a file of Lisp code named FILENAME into a file of byte code. 1085 "Compile a file of Lisp code named FILENAME into a file of byte code.
1075The output file's name is made by appending `c' to the end of FILENAME. 1086The output file's name is made by appending `c' to the end of FILENAME.
@@ -1087,8 +1098,8 @@ With prefix arg (noninteractively: 2nd arg), load the file after compiling."
1087 (list (read-file-name (if current-prefix-arg 1098 (list (read-file-name (if current-prefix-arg
1088 "Byte compile and load file: " 1099 "Byte compile and load file: "
1089 "Byte compile file: ") 1100 "Byte compile file: ")
1090 file-dir file-name nil)) 1101 file-dir file-name nil)
1091 current-prefix-arg)) 1102 current-prefix-arg)))
1092 ;; Expand now so we get the current buffer's defaults 1103 ;; Expand now so we get the current buffer's defaults
1093 (setq filename (expand-file-name filename)) 1104 (setq filename (expand-file-name filename))
1094 1105
@@ -1142,7 +1153,7 @@ With prefix arg (noninteractively: 2nd arg), load the file after compiling."
1142 (or (eq t byte-compile-generate-call-tree) 1153 (or (eq t byte-compile-generate-call-tree)
1143 (y-or-n-p (format "Report call tree for %s? " filename)))) 1154 (y-or-n-p (format "Report call tree for %s? " filename))))
1144 (save-excursion 1155 (save-excursion
1145 (byte-compile-report-call-tree filename))) 1156 (display-call-tree filename)))
1146 (if load 1157 (if load
1147 (load target-file))) 1158 (load target-file)))
1148 t) 1159 t)
@@ -1170,6 +1181,7 @@ With prefix arg (noninteractively: 2nd arg), load the file after compiling."
1170;; t) 1181;; t)
1171 1182
1172;;; compiling a single function 1183;;; compiling a single function
1184;;;###autoload
1173(defun compile-defun (&optional arg) 1185(defun compile-defun (&optional arg)
1174 "Compile and evaluate the current top-level form. 1186 "Compile and evaluate the current top-level form.
1175Print the result in the minibuffer. 1187Print the result in the minibuffer.
@@ -1180,7 +1192,8 @@ With argument, insert value in current buffer after the form."
1180 (beginning-of-defun) 1192 (beginning-of-defun)
1181 (let* ((byte-compile-current-file nil) 1193 (let* ((byte-compile-current-file nil)
1182 (byte-compile-last-warned-form 'nothing) 1194 (byte-compile-last-warned-form 'nothing)
1183 (value (eval (byte-compile-sexp (read (current-buffer)))))) 1195 (value (eval (displaying-byte-compile-warnings
1196 (byte-compile-sexp (read (current-buffer)))))))
1184 (cond (arg 1197 (cond (arg
1185 (message "Compiling from buffer... done.") 1198 (message "Compiling from buffer... done.")
1186 (prin1 value (current-buffer)) 1199 (prin1 value (current-buffer))
@@ -1525,6 +1538,7 @@ With argument, insert value in current buffer after the form."
1525 nil))))) 1538 nil)))))
1526 1539
1527 1540
1541;;;###autoload
1528(defun byte-compile (form) 1542(defun byte-compile (form)
1529 "If FORM is a symbol, byte-compile its function definition. 1543 "If FORM is a symbol, byte-compile its function definition.
1530If FORM is a lambda or a macro, byte-compile it as a function." 1544If FORM is a lambda or a macro, byte-compile it as a function."
@@ -2725,6 +2739,7 @@ If FORM is a lambda or a macro, byte-compile it as a function."
2725 2739
2726;; Renamed from byte-compile-report-call-tree 2740;; Renamed from byte-compile-report-call-tree
2727;; to avoid interfering with completion of byte-compile-file. 2741;; to avoid interfering with completion of byte-compile-file.
2742;;;###autoload
2728(defun display-call-tree (&optional filename) 2743(defun display-call-tree (&optional filename)
2729 "Display a call graph of a specified file. 2744 "Display a call graph of a specified file.
2730This lists which functions have been called, what functions called 2745This lists which functions have been called, what functions called
@@ -2853,6 +2868,7 @@ invoked interactively."
2853 2868
2854;;; by crl@newton.purdue.edu 2869;;; by crl@newton.purdue.edu
2855;;; Only works noninteractively. 2870;;; Only works noninteractively.
2871;;;###autoload
2856(defun batch-byte-compile () 2872(defun batch-byte-compile ()
2857 "Run `byte-compile-file' on the files remaining on the command line. 2873 "Run `byte-compile-file' on the files remaining on the command line.
2858Use this from the command line, with `-batch'; 2874Use this from the command line, with `-batch';
@@ -2959,3 +2975,5 @@ For example, invoke \"emacs -batch -f batch-byte-compile $emacs/ ~/*.el\""
2959 byte-compile-constant 2975 byte-compile-constant
2960 byte-compile-variable-ref)))) 2976 byte-compile-variable-ref))))
2961 nil) 2977 nil)
2978
2979;;; bytecomp.el ends here
diff --git a/lisp/files.el b/lisp/files.el
index 7a0a56448a9..8a7bea3b195 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -512,6 +512,7 @@ run `normal-mode' explicitly."
512 ("\\.article\\'" . text-mode) 512 ("\\.article\\'" . text-mode)
513 ("\\.letter\\'" . text-mode) 513 ("\\.letter\\'" . text-mode)
514 ("\\.texinfo\\'" . texinfo-mode) 514 ("\\.texinfo\\'" . texinfo-mode)
515 ("\\.texi\\'" . texinfo-mode)
515 ("\\.lsp\\'" . lisp-mode) 516 ("\\.lsp\\'" . lisp-mode)
516 ("\\.awk\\'" . awk-mode) 517 ("\\.awk\\'" . awk-mode)
517 ("\\.prolog\\'" . prolog-mode) 518 ("\\.prolog\\'" . prolog-mode)
diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 949d82cc6fb..0330791342b 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1214,17 +1214,12 @@ and reverse search is specified by a negative numeric arg."
1214(defun rmail-delete-forward (&optional backward) 1214(defun rmail-delete-forward (&optional backward)
1215 "Delete this message and move to next nondeleted one. 1215 "Delete this message and move to next nondeleted one.
1216Deleted messages stay in the file until the \\[rmail-expunge] command is given. 1216Deleted messages stay in the file until the \\[rmail-expunge] command is given.
1217With prefix argument, delete and move backward. If there is no nondeleted 1217With prefix argument, delete and move backward."
1218message to move to in the preferred or specified direction, move in the
1219other direction."
1220 (interactive "P") 1218 (interactive "P")
1221 (rmail-set-attribute "deleted" t) 1219 (rmail-set-attribute "deleted" t)
1222 (condition-case () 1220 (condition-case ()
1223 (rmail-next-undeleted-message (if backward -1 1)) 1221 (rmail-next-undeleted-message (if backward -1 1))
1224 (error 1222 (error nil)))
1225 (condition-case ()
1226 (rmail-previous-undeleted-message (if backward -1 1))
1227 (error nil)))))
1228 1223
1229(defun rmail-delete-backward () 1224(defun rmail-delete-backward ()
1230 "Delete this message and move to previous nondeleted one. 1225 "Delete this message and move to previous nondeleted one.
diff --git a/src/callint.c b/src/callint.c
index bb39604744b..59b73b48960 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -521,7 +521,7 @@ Its numeric meaning is what you would get from `(interactive \"p\")'.")
521 521
522 if (NILP (raw)) 522 if (NILP (raw))
523 XFASTINT (val) = 1; 523 XFASTINT (val) = 1;
524 else if (EQ (val, Qminus)) 524 else if (EQ (raw, Qminus))
525 XSETINT (val, -1); 525 XSETINT (val, -1);
526 else if (CONSP (raw)) 526 else if (CONSP (raw))
527 XSETINT (val, XINT (XCONS (raw)->car)); 527 XSETINT (val, XINT (XCONS (raw)->car));