Function: set-hard-newline-properties

set-hard-newline-properties is a byte-compiled function defined in simple.el.gz.

Signature

(set-hard-newline-properties FROM TO)

Source Code

;; Defined in /usr/src/emacs/lisp/simple.el.gz
(defun set-hard-newline-properties (from to)
  (let ((sticky (get-text-property from 'rear-nonsticky)))
    (put-text-property from to 'hard 't)
    ;; If rear-nonsticky is not "t", add 'hard to rear-nonsticky list
    (if (and (listp sticky) (not (memq 'hard sticky)))
	(put-text-property from (point) 'rear-nonsticky
			   (cons 'hard sticky)))))