diff options
| author | Jim Blandy | 1992-02-15 22:18:37 +0000 |
|---|---|---|
| committer | Jim Blandy | 1992-02-15 22:18:37 +0000 |
| commit | 36a8c287a8731587bec4810565df541176b86ce5 (patch) | |
| tree | f2b6665281767ad92fe76ec8b30a6b062cd9f909 | |
| parent | 35e46c62b9fa31f0b3ed4b237c9d92f3020af52e (diff) | |
| download | emacs-36a8c287a8731587bec4810565df541176b86ce5.tar.gz emacs-36a8c287a8731587bec4810565df541176b86ce5.zip | |
*** empty log message ***
| -rw-r--r-- | Makefile.in | 10 | ||||
| -rwxr-xr-x | build-ins.in | 10 | ||||
| -rw-r--r-- | src/buffer.c | 12 | ||||
| -rw-r--r-- | src/fileio.c | 33 |
4 files changed, 49 insertions, 16 deletions
diff --git a/Makefile.in b/Makefile.in index ec62fa31aa3..20e4300dc52 100644 --- a/Makefile.in +++ b/Makefile.in | |||
| @@ -23,7 +23,7 @@ SHELL = /bin/sh | |||
| 23 | # already, the `install' targets will move or copy it there. The | 23 | # already, the `install' targets will move or copy it there. The |
| 24 | # default definitions for the variables below are expressed in terms | 24 | # default definitions for the variables below are expressed in terms |
| 25 | # of this one, so you may not need to change them. | 25 | # of this one, so you may not need to change them. |
| 26 | LIBROOT=/u/src/emacs/19.0 | 26 | LIBROOT=/usr/local/emacs |
| 27 | 27 | ||
| 28 | # This is where the `install' make target should place the binaries | 28 | # This is where the `install' make target should place the binaries |
| 29 | # people will want to run directly (like etags and Emacs itself). | 29 | # people will want to run directly (like etags and Emacs itself). |
| @@ -34,19 +34,19 @@ INSTALLBIN=/usr/local/bin | |||
| 34 | # elisp files should go under DATADIR (below), since both elisp source | 34 | # elisp files should go under DATADIR (below), since both elisp source |
| 35 | # and compiled elisp are completely portable, but it's traditional to | 35 | # and compiled elisp are completely portable, but it's traditional to |
| 36 | # give the lisp files their own subdirectory. | 36 | # give the lisp files their own subdirectory. |
| 37 | LISPPATH=/u/src/emacs/19.0/lisp | 37 | LISPPATH=/usr/local/emacs/local-lisp:/usr/local/emacs/lisp |
| 38 | 38 | ||
| 39 | # Emacs will look here for its architecture-independent files (like | 39 | # Emacs will look here for its architecture-independent files (like |
| 40 | # the tutorial and the zippy database). | 40 | # the tutorial and the zippy database). |
| 41 | DATADIR=/u/src/emacs/19.0/share-lib | 41 | DATADIR=/usr/local/emacs/share-lib |
| 42 | 42 | ||
| 43 | # Emacs will look here for its architecture-dependent files, like | 43 | # Emacs will look here for its architecture-dependent files, like |
| 44 | # executables for its utilities. | 44 | # executables for its utilities. |
| 45 | LIBDIR=/u/src/emacs/19.0/arch-lib | 45 | LIBDIR=/usr/local/emacs/arch-lib |
| 46 | 46 | ||
| 47 | # The locking directory, where the Emacs locking code keeps track of | 47 | # The locking directory, where the Emacs locking code keeps track of |
| 48 | # which files are currently being edited. | 48 | # which files are currently being edited. |
| 49 | LOCKDIR=/u/src/emacs/19.0/lock | 49 | LOCKDIR=/usr/local/emacs/lock |
| 50 | 50 | ||
| 51 | # This is where the `install' make target should place the man pages | 51 | # This is where the `install' make target should place the man pages |
| 52 | # for the binaries it installs. | 52 | # for the binaries it installs. |
diff --git a/build-ins.in b/build-ins.in index f2a952b6a0b..275a46b6f08 100755 --- a/build-ins.in +++ b/build-ins.in | |||
| @@ -7,27 +7,27 @@ | |||
| 7 | # libaries. The default definitions for the variables below are | 7 | # libaries. The default definitions for the variables below are |
| 8 | # expressed in terms of this one, so you may not need to change them. | 8 | # expressed in terms of this one, so you may not need to change them. |
| 9 | # set LIBROOT=/usr/local/lib/emacs-19.0 | 9 | # set LIBROOT=/usr/local/lib/emacs-19.0 |
| 10 | LIBROOT=/u/src/emacs/19.0 | 10 | LIBROOT=/usr/local/emacs |
| 11 | 11 | ||
| 12 | # Emacs will search this path to find its elisp files. This should be | 12 | # Emacs will search this path to find its elisp files. This should be |
| 13 | # a colon-separated list of directories. Strictly speaking, all the | 13 | # a colon-separated list of directories. Strictly speaking, all the |
| 14 | # elisp files should go under DATADIR (below), since both elisp source | 14 | # elisp files should go under DATADIR (below), since both elisp source |
| 15 | # and compiled elisp are completely portable, but it's traditional to | 15 | # and compiled elisp are completely portable, but it's traditional to |
| 16 | # give the lisp files their own subdirectory. | 16 | # give the lisp files their own subdirectory. |
| 17 | LISPPATH=/u/src/emacs/19.0/lisp | 17 | LISPPATH=/usr/local/emacs/local-lisp:/usr/local/emacs/lisp |
| 18 | 18 | ||
| 19 | # Emacs will look here for its architecture-independent files (like | 19 | # Emacs will look here for its architecture-independent files (like |
| 20 | # the tutorial and the zippy database). | 20 | # the tutorial and the zippy database). |
| 21 | DATADIR=/u/src/emacs/19.0/share-lib | 21 | DATADIR=/usr/local/emacs/share-lib |
| 22 | 22 | ||
| 23 | # Emacs will look here for its architecture-dependent files, like | 23 | # Emacs will look here for its architecture-dependent files, like |
| 24 | # executables for its utilities. | 24 | # executables for its utilities. |
| 25 | LIBDIR=/u/src/emacs/19.0/arch-lib | 25 | LIBDIR=/usr/local/emacs/arch-lib |
| 26 | 26 | ||
| 27 | # The locking directory, where the Emacs locking code keeps track of | 27 | # The locking directory, where the Emacs locking code keeps track of |
| 28 | # which files are currently being edited. | 28 | # which files are currently being edited. |
| 29 | # set LOCKDIR=${LIBROOT}/lock | 29 | # set LOCKDIR=${LIBROOT}/lock |
| 30 | LOCKDIR=/u/src/emacs/19.0/lock | 30 | LOCKDIR=/usr/local/emacs/lock |
| 31 | 31 | ||
| 32 | # This is where build-install should place the binaries people will | 32 | # This is where build-install should place the binaries people will |
| 33 | # want to run directly (like etags and Emacs itself). | 33 | # want to run directly (like etags and Emacs itself). |
diff --git a/src/buffer.c b/src/buffer.c index 55d85f979ba..bbf0e297302 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -715,10 +715,10 @@ with `delete-process'.") | |||
| 715 | return Qt; | 715 | return Qt; |
| 716 | } | 716 | } |
| 717 | 717 | ||
| 718 | /* Put the element for buffer BUF at the front of buffer-alist. | 718 | /* Move the assoc for buffer BUF to the front of buffer-alist. Since |
| 719 | This is done when a buffer is selected "visibly". | 719 | we do this each time BUF is selected visibly, the more recently |
| 720 | It keeps buffer-alist in the order of recency of selection | 720 | selected buffers are always closer to the front of the list. This |
| 721 | so that other_buffer will return something nice. */ | 721 | means that other_buffer is more likely to choose a relevant buffer. */ |
| 722 | 722 | ||
| 723 | record_buffer (buf) | 723 | record_buffer (buf) |
| 724 | Lisp_Object buf; | 724 | Lisp_Object buf; |
| @@ -733,8 +733,8 @@ record_buffer (buf) | |||
| 733 | prev = link; | 733 | prev = link; |
| 734 | } | 734 | } |
| 735 | 735 | ||
| 736 | /* Effectively do Vbuffer_alist = Fdelq (link, Vbuffer_alist) | 736 | /* Effectively do Vbuffer_alist = Fdelq (link, Vbuffer_alist); |
| 737 | but cannot use Fdelq here it that allows quitting. */ | 737 | we cannot use Fdelq itself here because it allows quitting. */ |
| 738 | 738 | ||
| 739 | if (NILP (prev)) | 739 | if (NILP (prev)) |
| 740 | Vbuffer_alist = XCONS (Vbuffer_alist)->cdr; | 740 | Vbuffer_alist = XCONS (Vbuffer_alist)->cdr; |
diff --git a/src/fileio.c b/src/fileio.c index 42ac45b4e53..b12f48c625a 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1911,6 +1911,37 @@ Only the 12 low bits of MODE are used.") | |||
| 1911 | return Qnil; | 1911 | return Qnil; |
| 1912 | } | 1912 | } |
| 1913 | 1913 | ||
| 1914 | DEFUN ("set-umask", Fset_umask, Sset_umask, 1, 1, 0, | ||
| 1915 | "Select which permission bits to disable in newly created files.\n\ | ||
| 1916 | MASK should be an integer; if a permission's bit in MASK is 1,\n\ | ||
| 1917 | subsequently created files will not have that permission enabled.\n\ | ||
| 1918 | Only the low 9 bits are used.\n\ | ||
| 1919 | This setting is inherited by subprocesses.") | ||
| 1920 | (mask) | ||
| 1921 | Lisp_Object mask; | ||
| 1922 | { | ||
| 1923 | CHECK_NUMBER (mask, 0); | ||
| 1924 | |||
| 1925 | umask (XINT (mask) & 0777); | ||
| 1926 | |||
| 1927 | return Qnil; | ||
| 1928 | } | ||
| 1929 | |||
| 1930 | DEFUN ("umask", Fumask, Sumask, 0, 0, 0, | ||
| 1931 | "Return the current umask value.\n\ | ||
| 1932 | The umask value determines which permissions are enabled in newly\n\ | ||
| 1933 | created files. If a permission's bit in the umask is 1, subsequently\n\ | ||
| 1934 | created files will not have that permission enabled.") | ||
| 1935 | () | ||
| 1936 | { | ||
| 1937 | Lisp_Object mask; | ||
| 1938 | |||
| 1939 | XSET (mask, Lisp_Int, umask (0)); | ||
| 1940 | umask (XINT (mask)); | ||
| 1941 | |||
| 1942 | return mask; | ||
| 1943 | } | ||
| 1944 | |||
| 1914 | DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, | 1945 | DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, |
| 1915 | "Return t if file FILE1 is newer than file FILE2.\n\ | 1946 | "Return t if file FILE1 is newer than file FILE2.\n\ |
| 1916 | If FILE1 does not exist, the answer is nil;\n\ | 1947 | If FILE1 does not exist, the answer is nil;\n\ |
| @@ -2842,6 +2873,8 @@ nil means use format `var'. This variable is meaningful only on VMS."); | |||
| 2842 | defsubr (&Sfile_accessible_directory_p); | 2873 | defsubr (&Sfile_accessible_directory_p); |
| 2843 | defsubr (&Sfile_modes); | 2874 | defsubr (&Sfile_modes); |
| 2844 | defsubr (&Sset_file_modes); | 2875 | defsubr (&Sset_file_modes); |
| 2876 | defsubr (&Sset_umask); | ||
| 2877 | defsubr (&Sumask); | ||
| 2845 | defsubr (&Sfile_newer_than_file_p); | 2878 | defsubr (&Sfile_newer_than_file_p); |
| 2846 | defsubr (&Sinsert_file_contents); | 2879 | defsubr (&Sinsert_file_contents); |
| 2847 | defsubr (&Swrite_region); | 2880 | defsubr (&Swrite_region); |