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:
b3ada79
)
(move_if_not_intangible): Force POSITION to be between BEGV and ZV.
author
Richard M. Stallman
<rms@gnu.org>
Mon, 16 Aug 2004 22:52:29 +0000
(22:52 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 16 Aug 2004 22:52:29 +0000
(22:52 +0000)
src/intervals.c
patch
|
blob
|
blame
|
history
diff --git
a/src/intervals.c
b/src/intervals.c
index
33ef9a3
..
a822daf
100644
(file)
--- a/
src/intervals.c
+++ b/
src/intervals.c
@@
-2275,6
+2275,10
@@
move_if_not_intangible (position)
pos = Fnext_char_property_change (pos, Qnil);
}
+ else if (position < BEGV)
+ position = BEGV;
+ else if (position > ZV)
+ position = ZV;
/* If the whole stretch between PT and POSITION isn't intangible,
try moving to POSITION (which means we actually move farther