aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorDmitry Antipov2014-02-13 16:16:42 +0400
committerDmitry Antipov2014-02-13 16:16:42 +0400
commit28c16c40704c05721077617faad01cf6526fbc0c (patch)
treea2d8db05106f70799eff3eeafc499aae96336ac6 /src/buffer.c
parentace9793861c5ccc602143d9bbe8f6e1a4e429370 (diff)
downloademacs-28c16c40704c05721077617faad01cf6526fbc0c.tar.gz
emacs-28c16c40704c05721077617faad01cf6526fbc0c.zip
* composite.c (fill_gstring_header): Pass positions as C integers
and move parameters checking to... * composite.c (Fcomposition_get_gstring): ...this function. Handle case when buffer positions are in reversed order and avoid crash (Bug#16739). Adjust docstring. * buffer.c (validate_region): Mention current buffer in error message.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 42c4c1306a9..90c15420d1d 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -2261,7 +2261,7 @@ validate_region (register Lisp_Object *b, register Lisp_Object *e)
2261 } 2261 }
2262 2262
2263 if (! (BEGV <= XINT (*b) && XINT (*e) <= ZV)) 2263 if (! (BEGV <= XINT (*b) && XINT (*e) <= ZV))
2264 args_out_of_range (*b, *e); 2264 args_out_of_range_3 (Fcurrent_buffer (), *b, *e);
2265} 2265}
2266 2266
2267/* Advance BYTE_POS up to a character boundary 2267/* Advance BYTE_POS up to a character boundary