1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00

(move_if_not_intangible): Force POSITION to be between BEGV and ZV.

This commit is contained in:
Richard M. Stallman 2004-08-16 22:52:29 +00:00
parent b3ada79133
commit 97d8f112ef

View file

@ -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