Commit 9e568684 authored by Chong Yidong's avatar Chong Yidong
Browse files

(Fprimitive_undo): Give clearer error message when trying to change

text properties outside accessible part of buffer.
parent 6cf1226a
......@@ -548,6 +548,8 @@ Return what remains of the list. */)
beg = Fcar (cdr);
end = Fcdr (cdr);
if (XINT (beg) < BEGV || XINT (end) > ZV)
error ("Changes to be undone are outside visible portion of buffer");
Fput_text_property (beg, end, prop, val, Qnil);
}
else if (INTEGERP (car) && INTEGERP (cdr))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment