diff options
| author | Joakim Verona | 2013-07-14 11:04:49 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-07-14 11:04:49 +0200 |
| commit | 0bb9bb0841d89fff09820a57369df4cb01b16b43 (patch) | |
| tree | 832bf9fa8415eef0ce464d22b3ee1300cfa90bb1 /src/buffer.c | |
| parent | 3718127221fbbc31f8ebd027ab7c95403dbe9118 (diff) | |
| parent | 3af1c8684ed6e48fbc21481d129e9aa164752c6e (diff) | |
| download | emacs-0bb9bb0841d89fff09820a57369df4cb01b16b43.tar.gz emacs-0bb9bb0841d89fff09820a57369df4cb01b16b43.zip | |
Merge branch 'trunk' into xwidget
Conflicts:
src/xdisp.c
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/buffer.c b/src/buffer.c index 3bb80c66ee6..44371144687 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -4612,7 +4612,6 @@ evaporate_overlays (ptrdiff_t pos) | |||
| 4612 | 4612 | ||
| 4613 | #ifdef USE_MMAP_FOR_BUFFERS | 4613 | #ifdef USE_MMAP_FOR_BUFFERS |
| 4614 | 4614 | ||
| 4615 | #include <sys/types.h> | ||
| 4616 | #include <sys/mman.h> | 4615 | #include <sys/mman.h> |
| 4617 | 4616 | ||
| 4618 | #ifndef MAP_ANON | 4617 | #ifndef MAP_ANON |
| @@ -4627,8 +4626,6 @@ evaporate_overlays (ptrdiff_t pos) | |||
| 4627 | #define MAP_FAILED ((void *) -1) | 4626 | #define MAP_FAILED ((void *) -1) |
| 4628 | #endif | 4627 | #endif |
| 4629 | 4628 | ||
| 4630 | #include <stdio.h> | ||
| 4631 | |||
| 4632 | #if MAP_ANON == 0 | 4629 | #if MAP_ANON == 0 |
| 4633 | #include <fcntl.h> | 4630 | #include <fcntl.h> |
| 4634 | #endif | 4631 | #endif |
| @@ -4738,7 +4735,7 @@ mmap_init (void) | |||
| 4738 | if (mmap_fd <= 0) | 4735 | if (mmap_fd <= 0) |
| 4739 | { | 4736 | { |
| 4740 | /* No anonymous mmap -- we need the file descriptor. */ | 4737 | /* No anonymous mmap -- we need the file descriptor. */ |
| 4741 | mmap_fd = open ("/dev/zero", O_RDONLY); | 4738 | mmap_fd = emacs_open ("/dev/zero", O_RDONLY, 0); |
| 4742 | if (mmap_fd == -1) | 4739 | if (mmap_fd == -1) |
| 4743 | fatal ("Cannot open /dev/zero: %s", emacs_strerror (errno)); | 4740 | fatal ("Cannot open /dev/zero: %s", emacs_strerror (errno)); |
| 4744 | } | 4741 | } |
| @@ -6107,6 +6104,11 @@ and is the visited file's modification time, as of that time. If the | |||
| 6107 | modification time of the most recent save is different, this entry is | 6104 | modification time of the most recent save is different, this entry is |
| 6108 | obsolete. | 6105 | obsolete. |
| 6109 | 6106 | ||
| 6107 | An entry (t . 0) means means the buffer was previously unmodified but | ||
| 6108 | its time stamp was unknown because it was not associated with a file. | ||
| 6109 | An entry (t . -1) is similar, except that it means the buffer's visited | ||
| 6110 | file did not exist. | ||
| 6111 | |||
| 6110 | An entry (nil PROPERTY VALUE BEG . END) indicates that a text property | 6112 | An entry (nil PROPERTY VALUE BEG . END) indicates that a text property |
| 6111 | was modified between BEG and END. PROPERTY is the property name, | 6113 | was modified between BEG and END. PROPERTY is the property name, |
| 6112 | and VALUE is the old value. | 6114 | and VALUE is the old value. |