diff options
| author | Jim Blandy | 1992-04-04 05:55:39 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-04-04 05:55:39 +0000 |
| commit | 8c0e7b739deaa08033e465190a0cb9f98d054062 (patch) | |
| tree | 8ecec9af8e54b85a5584012c982a290dc7efb785 | |
| parent | 08564963293aac2ea90a3dee54f48ded962238eb (diff) | |
| download | emacs-8c0e7b739deaa08033e465190a0cb9f98d054062.tar.gz emacs-8c0e7b739deaa08033e465190a0cb9f98d054062.zip | |
*** empty log message ***
| -rwxr-xr-x | configure1.in | 90 | ||||
| -rw-r--r-- | lisp/files.el | 35 | ||||
| -rw-r--r-- | src/search.c | 2 |
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 |
| 55 | If successful, ${progname} leaves its status in config.status. If | 55 | If successful, ${progname} leaves its status in config.status. If |
| 56 | unsuccessful after disturbing the status quo, config.status is removed." | 56 | unsuccessful after disturbing the status quo, config.status is removed." |
| 57 | 57 | ||
| @@ -65,7 +65,7 @@ options=":\ | |||
| 65 | usage:help:\ | 65 | usage:help:\ |
| 66 | machine:opsystem:\ | 66 | machine:opsystem:\ |
| 67 | g:O:cc:\ | 67 | g:O:cc:\ |
| 68 | libroot:datadir:libdir:installbin:lisppath:lockdir:\ | 68 | libroot:datadir:libdir:bindir:lisppath:lockdir:\ |
| 69 | gnu_malloc:rel_alloc:highpri:lisp_float_type:\ | 69 | gnu_malloc:rel_alloc:highpri:lisp_float_type:\ |
| 70 | window_system:have_x_menu:\ | 70 | window_system:have_x_menu:\ |
| 71 | " | 71 | " |
| @@ -82,7 +82,7 @@ c_switch_site:sigtype:\ | |||
| 82 | " | 82 | " |
| 83 | 83 | ||
| 84 | libroot= | 84 | libroot= |
| 85 | installbin=/usr/local/bin | 85 | bindir=/usr/local/bin |
| 86 | gnu_malloc=yes | 86 | gnu_malloc=yes |
| 87 | lisp_float_type=yes | 87 | lisp_float_type=yes |
| 88 | 88 | ||
| @@ -406,7 +406,7 @@ echo "Editing ./Makefile..." | |||
| 406 | tempMakefile="tempMakefile"$$ | 406 | tempMakefile="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..." | |||
| 418 | tempbi="tempbi"$$ | 418 | tempbi="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};" |
| 443 | mv ${tempMakefile} lib-src/Makefile | 443 | mv ${tempMakefile} lib-src/Makefile |
| 444 | 444 | ||
| 445 | # Document the damage we have done. | 445 | # Create a verbal description of what we have done. |
| 446 | message="# 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 | |||
| 471 | echo '#!/bin/sh' > config.status | ||
| 472 | |||
| 473 | echo "# 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 | ||
| 477 | echo "${message}" >> config.status | ||
| 478 | echo "'${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 | ||
| 495 | chmod +x config.status | ||
| 496 | |||
| 497 | # Print the description. | ||
| 446 | echo | 498 | echo |
| 447 | echo "Configured for machine \`${machine}' running \`${opsystem}'. | 499 | echo "${message}" | sed -e 's/^# //' |
| 448 | The 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}. | ||
| 460 | The 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 | ||
| 471 | exit 0 | 501 | exit 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. |
| 149 | If one of them returns non-nil, the file is considered already written | 149 | If one of them returns non-nil, the file is considered already written |
| 150 | and the rest are not called.") | 150 | and the rest are not called. |
| 151 | These hooks are considered to pertain to the visited file. | ||
| 152 | So this list is cleared if you change the visited file name. | ||
| 153 | See 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. | ||
| 157 | If one of them returns non-nil, the file is considered already written | ||
| 158 | and the rest are not called. | ||
| 159 | These hooks are considered to pertain to the buffer's contents, | ||
| 160 | not to the particular visited file; thus, `set-visited-file-name' does | ||
| 161 | not clear this variable, but changing the major mode does clear it. | ||
| 162 | See 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." | |||
| 1127 | Gets two args, first the nominal file name to use, | 1139 | Gets two args, first the nominal file name to use, |
| 1128 | and second, t if reading the auto-save file.") | 1140 | and 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. |
| 1132 | This undoes all changes since the file was visited or saved. | 1144 | This undoes all changes since the file was visited or saved. |
| 1133 | If latest auto-save file is more recent than the visited file, | 1145 | With a prefix argument, offer to revert from latest auto-save file, if |
| 1134 | asks user whether to use that instead. | 1146 | that is more recent than the visited file. |
| 1135 | 1147 | When called from lisp, this is the first argument, CHECK-AUTO; it is optional. | |
| 1136 | Optional first argument ARG means don't offer to use auto-save file. | ||
| 1137 | This is the prefix arg when called interactively. | ||
| 1138 | Optional second argument NOCONFIRM means don't ask for confirmation at all. | 1148 | Optional second argument NOCONFIRM means don't ask for confirmation at all. |
| 1139 | 1149 | ||
| 1140 | If `revert-buffer-function' value is non-nil, it is called to do the work." | 1150 | If the value of `revert-buffer-function' is non-nil, it is called to |
| 1151 | do 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"); |