(kill-region): Detect read-only text
authorKarl Heuer <kwzh@gnu.org>
Wed, 19 Nov 1997 21:36:56 +0000 (21:36 +0000)
committerKarl Heuer <kwzh@gnu.org>
Wed, 19 Nov 1997 21:36:56 +0000 (21:36 +0000)
commitccd19b9f49b88df9eb4c994e6db33e97f1c612c0
treef47bf0bc574f057d3b6a74859f578cd82df1448b
parent887bbf181d84912e57d1ad0f208a7e3fcde6ba49
(kill-region): Detect read-only text
by getting an error trying to delete it.
Handle the cases where we can, and can't, get the killed text
from the undo list with much the same code.
lisp/simple.el