diff options
| author | Michael Albinus | 2024-10-13 16:03:07 +0200 |
|---|---|---|
| committer | Michael Albinus | 2024-10-13 16:03:07 +0200 |
| commit | b120397868502e8e4ffc09fdeea6ef4c65662cd1 (patch) | |
| tree | 4f5b0b9f3cc0580ed0fb91999e3ce0421024befe /src | |
| parent | de54d922b5c239a474adb41c84ea316b266f1838 (diff) | |
| parent | 0f8f0773183a07a229b23d3f970723ceb9585aef (diff) | |
| download | emacs-b120397868502e8e4ffc09fdeea6ef4c65662cd1.tar.gz emacs-b120397868502e8e4ffc09fdeea6ef4c65662cd1.zip | |
Merge branch 'emacs-30' of git.sv.gnu.org:/srv/git/emacs into emacs-30
Diffstat (limited to 'src')
| -rw-r--r-- | src/coding.c | 4 | ||||
| -rw-r--r-- | src/fileio.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c index b21ed360578..5591b7fed45 100644 --- a/src/coding.c +++ b/src/coding.c | |||
| @@ -5270,7 +5270,9 @@ decode_coding_raw_text (struct coding_system *coding) | |||
| 5270 | coding->chars_at_source = 1; | 5270 | coding->chars_at_source = 1; |
| 5271 | coding->consumed_char = coding->src_chars; | 5271 | coding->consumed_char = coding->src_chars; |
| 5272 | coding->consumed = coding->src_bytes; | 5272 | coding->consumed = coding->src_bytes; |
| 5273 | if (eol_dos && coding->source[coding->src_bytes - 1] == '\r') | 5273 | if (eol_dos |
| 5274 | && coding->src_bytes > 0 /* empty source text? */ | ||
| 5275 | && coding->source[coding->src_bytes - 1] == '\r') | ||
| 5274 | { | 5276 | { |
| 5275 | coding->consumed_char--; | 5277 | coding->consumed_char--; |
| 5276 | coding->consumed--; | 5278 | coding->consumed--; |
diff --git a/src/fileio.c b/src/fileio.c index 7afe3e75737..2db2760916b 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3788,7 +3788,8 @@ DEFUN ("unix-sync", Funix_sync, Sunix_sync, 0, 0, "", | |||
| 3788 | DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, | 3788 | DEFUN ("file-newer-than-file-p", Ffile_newer_than_file_p, Sfile_newer_than_file_p, 2, 2, 0, |
| 3789 | doc: /* Return t if file FILE1 is newer than file FILE2. | 3789 | doc: /* Return t if file FILE1 is newer than file FILE2. |
| 3790 | If FILE1 does not exist, the answer is nil; | 3790 | If FILE1 does not exist, the answer is nil; |
| 3791 | otherwise, if FILE2 does not exist, the answer is t. */) | 3791 | otherwise, if FILE2 does not exist, the answer is t. |
| 3792 | For existing files, this compares their last-modified times. */) | ||
| 3792 | (Lisp_Object file1, Lisp_Object file2) | 3793 | (Lisp_Object file1, Lisp_Object file2) |
| 3793 | { | 3794 | { |
| 3794 | struct stat st1, st2; | 3795 | struct stat st1, st2; |