emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master 4ab7c30: delete-trailing-whitespace: handle read-only text in


From: Leo Liu
Subject: Re: master 4ab7c30: delete-trailing-whitespace: handle read-only text in buffer
Date: Thu, 08 Dec 2016 18:15:33 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (macOS 10.12.1)

On 2016-12-07 20:06 +0000, Sam Steingold wrote:
> branch: master
> +(defun region-modifiable-p (start end)
> +  "Return non-nil if the region contain no non-read-only text."
> +  (and (not (get-text-property start 'read-only))
> +       (eq end (next-single-property-change start 'read-only nil end))))

Do you mean "no read-only text"?

Leo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]