Function: wdired--before-change-fn
wdired--before-change-fn is a byte-compiled function defined in
wdired.el.gz.
Signature
(wdired--before-change-fn BEG END)
Source Code
;; Defined in /usr/src/emacs/lisp/wdired.el.gz
(defun wdired--before-change-fn (beg end)
(save-match-data
(save-excursion
(save-restriction
(widen)
;; Make sure to process entire lines.
(goto-char end)
(setq end (line-end-position))
(goto-char beg)
(forward-line 0)
(while (< (point) end)
(unless (wdired--line-preprocessed-p)
(with-silent-modifications
(put-text-property (point) (1+ (point)) 'front-sticky t)
(wdired--preprocess-files)
(when wdired-allow-to-change-permissions
(wdired--preprocess-perms))
(when (fboundp 'make-symbolic-link)
(wdired--preprocess-symlinks))))
(forward-line))
(when (eobp)
(with-silent-modifications
;; Is this good enough? Assumes no extra white lines from dired.
(put-text-property (1- (point-max)) (point-max) 'read-only t)))))))