HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cf1226
)
(Fprimitive_undo): Give clearer error message when trying to change
author
Chong Yidong
<cyd@stupidchicken.com>
Fri, 30 Mar 2007 02:04:27 +0000
(
02:04
+0000)
committer
Chong Yidong
<cyd@stupidchicken.com>
Fri, 30 Mar 2007 02:04:27 +0000
(
02:04
+0000)
text properties outside accessible part of buffer.
src/undo.c
patch
|
blob
|
blame
|
history
diff --git
a/src/undo.c
b/src/undo.c
index
0eca97d
..
7a6ba37
100644
(file)
--- a/
src/undo.c
+++ b/
src/undo.c
@@
-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))