]> git.eshelyaron.com Git - emacs.git/commit
delete-trailing-whitespace: handle read-only text in buffer
authorSam Steingold <sds@gnu.org>
Wed, 7 Dec 2016 20:06:08 +0000 (15:06 -0500)
committerSam Steingold <sds@gnu.org>
Wed, 7 Dec 2016 20:06:20 +0000 (15:06 -0500)
commit4ab7c308e073aa26973c5cdd17ec44bf5b325b57
tree326520665382d9dd90b0d70de82df04a77347c65
parent220ccda78bd8e91069d373287b5d9d0fa505fcf1
delete-trailing-whitespace: handle read-only text in buffer

* lisp/simple.el (region-modifiable-p): New function.
(delete-trailing-whitespace): Us it to avoid trying to delete read-only text.
lisp/simple.el