summaryrefslogtreecommitdiff
path: root/src/fileio.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-06-15 23:48:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-06-15 23:48:01 -0700
commit9956144405558933e130f39fb631b21985fba998 (patch)
treed70d08c3345ab7bcb9a8166ed02c9705becb0ff1 /src/fileio.c
parent28177adde9132702ed05b411a12c95f05dc2ba89 (diff)
downloademacs-9956144405558933e130f39fb631b21985fba998.tar.gz
* insdel.c, lisp.h (buffer_overflow): New function.
(insert_from_buffer_1, replace_range, replace_range_2): * insdel.c (make_gap_larger): * editfns.c (Finsert_char): * fileio.c (Finsert_file_contents): Use it, to normalize wording.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index fd5277cbd59..4458a3a4807 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3264,7 +3264,7 @@ variable `last-coding-system-used' to the coding system actually used. */)
platform that allows file sizes greater than the maximum off_t value. */
if (! not_regular
&& ! (0 <= st.st_size && st.st_size <= BUF_BYTES_MAX))
- error ("Maximum buffer size exceeded");
+ buffer_overflow ();
/* Prevent redisplay optimizations. */
current_buffer->clip_changed = 1;
@@ -3808,7 +3808,7 @@ variable `last-coding-system-used' to the coding system actually used. */)
/* Make sure point-max won't overflow after this insertion. */
XSETINT (temp, total);
if (total != XINT (temp))
- error ("Maximum buffer size exceeded");
+ buffer_overflow ();
}
else
/* For a special file, all we can do is guess. */