aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1992-04-04 05:55:39 +0000
committerJim Blandy1992-04-04 05:55:39 +0000
commit8c0e7b739deaa08033e465190a0cb9f98d054062 (patch)
tree8ecec9af8e54b85a5584012c982a290dc7efb785
parent08564963293aac2ea90a3dee54f48ded962238eb (diff)
downloademacs-8c0e7b739deaa08033e465190a0cb9f98d054062.tar.gz
emacs-8c0e7b739deaa08033e465190a0cb9f98d054062.zip
*** empty log message ***
-rwxr-xr-xconfigure1.in90
-rw-r--r--lisp/files.el35
-rw-r--r--src/search.c2
3 files changed, 84 insertions, 43 deletions
diff --git a/configure1.in b/configure1.in
index be045bbfb00..d7b6ab6afd3 100755
--- a/configure1.in
+++ b/configure1.in
@@ -43,7 +43,7 @@ These options have reasonable defaults (in []s), and may not be needed:
43 -cc=COMPILER - Which compiler to use. Defaults to gcc if available. 43 -cc=COMPILER - Which compiler to use. Defaults to gcc if available.
44 -libdir=DIR - where to look for arch-dependent library files 44 -libdir=DIR - where to look for arch-dependent library files
45 -datadir=DIR - where to look for architecture-independent library files 45 -datadir=DIR - where to look for architecture-independent library files
46 -installbin=DIR - where to install the Emacs executable, and some friends 46 -bindir=DIR - where to install the Emacs executable, and some friends
47 -lisppath=PATH - colon-separated list of Elisp directories 47 -lisppath=PATH - colon-separated list of Elisp directories
48 -lockdir=DIR - where Emacs should do its file-locking stuff 48 -lockdir=DIR - where Emacs should do its file-locking stuff
49 -window_system=none or [x11, if it is installed] - what window system to use 49 -window_system=none or [x11, if it is installed] - what window system to use
@@ -51,7 +51,7 @@ These options have reasonable defaults (in []s), and may not be needed:
51 -gnu_malloc=[yes] or no - use the GNU memory allocator 51 -gnu_malloc=[yes] or no - use the GNU memory allocator
52 -rel_alloc=[yes] or no - use compacting allocator for buffers 52 -rel_alloc=[yes] or no - use compacting allocator for buffers
53 -highpri=N - run at N points higher-than-normal priority 53 -highpri=N - run at N points higher-than-normal priority
54 -lisp_float_type=[yes] or no - Support floating point in Elisp 54 -lisp_float_type=[yes] or no - Support native floating point in Elisp
55If successful, ${progname} leaves its status in config.status. If 55If successful, ${progname} leaves its status in config.status. If
56unsuccessful after disturbing the status quo, config.status is removed." 56unsuccessful after disturbing the status quo, config.status is removed."
57 57
@@ -65,7 +65,7 @@ options=":\
65usage:help:\ 65usage:help:\
66machine:opsystem:\ 66machine:opsystem:\
67g:O:cc:\ 67g:O:cc:\
68libroot:datadir:libdir:installbin:lisppath:lockdir:\ 68libroot:datadir:libdir:bindir:lisppath:lockdir:\
69gnu_malloc:rel_alloc:highpri:lisp_float_type:\ 69gnu_malloc:rel_alloc:highpri:lisp_float_type:\
70window_system:have_x_menu:\ 70window_system:have_x_menu:\
71" 71"
@@ -82,7 +82,7 @@ c_switch_site:sigtype:\
82" 82"
83 83
84libroot= 84libroot=
85installbin=/usr/local/bin 85bindir=/usr/local/bin
86gnu_malloc=yes 86gnu_malloc=yes
87lisp_float_type=yes 87lisp_float_type=yes
88 88
@@ -406,7 +406,7 @@ echo "Editing ./Makefile..."
406tempMakefile="tempMakefile"$$ 406tempMakefile="tempMakefile"$$
407/bin/sed < Makefile > ${tempMakefile} \ 407/bin/sed < Makefile > ${tempMakefile} \
408-e 's;^\(LIBROOT=\).*$;\1'"${libroot};" \ 408-e 's;^\(LIBROOT=\).*$;\1'"${libroot};" \
409-e 's;^\(INSTALLBIN=\).*$;\1'"${installbin};" \ 409-e 's;^\(BINDIR=\).*$;\1'"${bindir};" \
410-e 's;^\(LISPPATH=\).*$;\1'"${lisppath};" \ 410-e 's;^\(LISPPATH=\).*$;\1'"${lisppath};" \
411-e 's;^\(DATADIR=\).*$;\1'"${datadir};" \ 411-e 's;^\(DATADIR=\).*$;\1'"${datadir};" \
412-e 's;^\(LOCKDIR=\).*$;\1'"${lockdir};" \ 412-e 's;^\(LOCKDIR=\).*$;\1'"${lockdir};" \
@@ -418,7 +418,7 @@ echo "Editing ./build-install..."
418tempbi="tempbi"$$ 418tempbi="tempbi"$$
419/bin/sed < build-install > ${tempbi} \ 419/bin/sed < build-install > ${tempbi} \
420-e 's;^\(LIBROOT=\).*$;\1'"${libroot};" \ 420-e 's;^\(LIBROOT=\).*$;\1'"${libroot};" \
421-e 's;^\(BINDIR=\).*$;\1'"${installbin};" \ 421-e 's;^\(BINDIR=\).*$;\1'"${bindir};" \
422-e 's;^\(LISPPATH=\).*$;\1'"${lisppath};" \ 422-e 's;^\(LISPPATH=\).*$;\1'"${lisppath};" \
423-e 's;^\(DATADIR=\).*$;\1'"${datadir};" \ 423-e 's;^\(DATADIR=\).*$;\1'"${datadir};" \
424-e 's;^\(LOCKDIR=\).*$;\1'"${lockdir};" \ 424-e 's;^\(LOCKDIR=\).*$;\1'"${lockdir};" \
@@ -442,30 +442,60 @@ tempMakefile="tempMakefile"$$
442-e 's;^\(CC=\).*$;\1'"${cc};" 442-e 's;^\(CC=\).*$;\1'"${cc};"
443mv ${tempMakefile} lib-src/Makefile 443mv ${tempMakefile} lib-src/Makefile
444 444
445# Document the damage we have done. 445# Create a verbal description of what we have done.
446message="# Configured for machine \`${machine}' running \`${opsystem}'.
447# The following values have been set in ./Makefile and ./build-install:
448# Executables will be placed in
449# ${bindir}.
450# Emacs's lisp search path will be
451# \`${lisppath}'.
452# Emacs will look for its architecture-independent data in
453# ${datadir}.
454# Emacs will look for its utility programs and other architecture-
455# dependent data in
456# ${libdir}.
457# Emacs will keep track of file-locking in
458# ${lockdir}.
459# The following values have been set in src/config.h:
460# At how much higher than normal priority should Emacs run? ${highpri-none}
461# Should Emacs use the GNU version of malloc? ${gnu_malloc}${gnu_malloc_reason}
462# Should Emacs use the relocating allocator for buffers? ${rel_alloc}
463# Should Emacs support a floating point Elisp type? ${lisp_float_type}
464# What window system should Emacs use? ${window_system}
465# Should Emacs support mouse menus, which require X11? ${have_x_menu}
466# What compiler should emacs be built with? ${cc}
467# Should the compilation use \`-g' and/or \`-O'? ${c_switch_site- neither}"
468
469# Document the damage we have done by writing config.status.
470
471echo '#!/bin/sh' > config.status
472
473echo "# This file is generated by \`${progname}.'
474# If you are thinking about editing it, you should seriously consider
475# running \`${progname}' instead.
476" >> config.status
477echo "${message}" >> config.status
478echo "'${progname}' \\
479 -machine='${machine}' \\
480 -opsystem='${opsystem}' \\
481 -g=${g} \\
482 -O=${O} \\
483 -cc=${cc} \\
484 -libdir='${libdir}' \\
485 -datadir='${datadir}' \\
486 -bindir='${bindir}' \\
487 -lisppath='${lisppath}' \\
488 -lockdir='${lockdir}' \\
489 -window_system='${window_system}' \\
490 -have_x_menu='${have_x_menu}' \\
491 -gnu_malloc='${gnu_malloc}'
492 -rel_malloc='${rel_alloc}' \\
493 -highpri='${highpri}' \\
494 -lisp_float_type='${lisp_float_type}'" >> config.status
495chmod +x config.status
496
497# Print the description.
446echo 498echo
447echo "Configured for machine \`${machine}' running \`${opsystem}'. 499echo "${message}" | sed -e 's/^# //'
448The following values have been set in ./Makefile and ./build-install:
449 Executables will be placed in
450 ${installbin}.
451 Emacs's lisp search path will be
452 \`${lisppath}'.
453 Emacs will look for its architecture-independent data in
454 ${datadir}.
455 Emacs will look for its utility programs and other architecture-
456 dependent data in
457 ${libdir}.
458 Emacs will keep track of file-locking in
459 ${lockdir}.
460The following values have been set in src/config.h:
461 At how much higher than normal priority should Emacs run? ${highpri-none}
462 Should Emacs use the GNU version of malloc? ${gnu_malloc}${gnu_malloc_reason}
463 Should Emacs use the relocating allocator for buffers? ${rel_alloc}
464 Should Emacs support a floating point Elisp type? ${lisp_float_type}
465 What window system should Emacs use? ${window_system}
466 Should Emacs support mouse menus, which require X11? ${have_x_menu}
467 What compiler should emacs be built with? ${cc}
468 Should the compilation use \`-g' and/or \`-O'? ${c_switch_site- neither}" \
469| tee config.status 1>&2
470 500
471exit 0 501exit 0
diff --git a/lisp/files.el b/lisp/files.el
index ed2882eddeb..d3827b4126d 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1,5 +1,5 @@
1;; File input and output commands for Emacs 1;; File input and output commands for Emacs
2;; Copyright (C) 1985, 1986, 1987 Free Software Foundation, Inc. 2;; Copyright (C) 1985, 1986, 1987, 1992 Free Software Foundation, Inc.
3 3
4;; This file is part of GNU Emacs. 4;; This file is part of GNU Emacs.
5 5
@@ -147,7 +147,19 @@ functions are called.")
147(defvar write-file-hooks nil 147(defvar write-file-hooks nil
148 "List of functions to be called before writing out a buffer to a file. 148 "List of functions to be called before writing out a buffer to a file.
149If one of them returns non-nil, the file is considered already written 149If one of them returns non-nil, the file is considered already written
150and the rest are not called.") 150and the rest are not called.
151These hooks are considered to pertain to the visited file.
152So this list is cleared if you change the visited file name.
153See also `write-contents-hooks'.")
154
155(defvar write-contents-hooks nil
156 "List of functions to be called before writing out a buffer to a file.
157If one of them returns non-nil, the file is considered already written
158and the rest are not called.
159These hooks are considered to pertain to the buffer's contents,
160not to the particular visited file; thus, `set-visited-file-name' does
161not clear this variable, but changing the major mode does clear it.
162See also `write-file-hooks'.")
151 163
152(defconst enable-local-variables t 164(defconst enable-local-variables t
153 "*Control use of local-variables lists in files you visit. 165 "*Control use of local-variables lists in files you visit.
@@ -932,7 +944,7 @@ the last real save, but optional arg FORCE non-nil means delete anyway."
932 (save-excursion 944 (save-excursion
933 (goto-char (point-max)) 945 (goto-char (point-max))
934 (insert ?\n))) 946 (insert ?\n)))
935 (let ((hooks write-file-hooks) 947 (let ((hooks (append write-contents-hooks write-file-hooks))
936 (done nil)) 948 (done nil))
937 (while (and hooks 949 (while (and hooks
938 (not (setq done (funcall (car hooks))))) 950 (not (setq done (funcall (car hooks)))))
@@ -1127,22 +1139,21 @@ or multiple mail buffers, etc."
1127Gets two args, first the nominal file name to use, 1139Gets two args, first the nominal file name to use,
1128and second, t if reading the auto-save file.") 1140and second, t if reading the auto-save file.")
1129 1141
1130(defun revert-buffer (&optional arg noconfirm) 1142(defun revert-buffer (&optional check-auto noconfirm)
1131 "Replace the buffer text with the text of the visited file on disk. 1143 "Replace the buffer text with the text of the visited file on disk.
1132This undoes all changes since the file was visited or saved. 1144This undoes all changes since the file was visited or saved.
1133If latest auto-save file is more recent than the visited file, 1145With a prefix argument, offer to revert from latest auto-save file, if
1134asks user whether to use that instead. 1146that is more recent than the visited file.
1135 1147When called from lisp, this is the first argument, CHECK-AUTO; it is optional.
1136Optional first argument ARG means don't offer to use auto-save file.
1137This is the prefix arg when called interactively.
1138Optional second argument NOCONFIRM means don't ask for confirmation at all. 1148Optional second argument NOCONFIRM means don't ask for confirmation at all.
1139 1149
1140If `revert-buffer-function' value is non-nil, it is called to do the work." 1150If the value of `revert-buffer-function' is non-nil, it is called to
1151do the work."
1141 (interactive "P") 1152 (interactive "P")
1142 (if revert-buffer-function 1153 (if revert-buffer-function
1143 (funcall revert-buffer-function arg noconfirm) 1154 (funcall revert-buffer-function (not check-auto) noconfirm)
1144 (let* ((opoint (point)) 1155 (let* ((opoint (point))
1145 (auto-save-p (and (null arg) (recent-auto-save-p) 1156 (auto-save-p (and check-auto (recent-auto-save-p)
1146 buffer-auto-save-file-name 1157 buffer-auto-save-file-name
1147 (file-readable-p buffer-auto-save-file-name) 1158 (file-readable-p buffer-auto-save-file-name)
1148 (y-or-n-p 1159 (y-or-n-p
diff --git a/src/search.c b/src/search.c
index 3f268c44010..cad14a47560 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1254,7 +1254,7 @@ syms_of_search ()
1254 register int i; 1254 register int i;
1255 1255
1256 searchbuf.allocated = 100; 1256 searchbuf.allocated = 100;
1257 searchbuf.buffer = (char *) malloc (searchbuf.allocated); 1257 searchbuf.buffer = (unsigned char *) malloc (searchbuf.allocated);
1258 searchbuf.fastmap = search_fastmap; 1258 searchbuf.fastmap = search_fastmap;
1259 1259
1260 Qsearch_failed = intern ("search-failed"); 1260 Qsearch_failed = intern ("search-failed");