|
From: | David Hansen |
Subject: | query-replace-regexp and read-only text properties (Was: wdired and query-replace) |
Date: | Fri, 23 Dec 2005 18:16:05 +0100 |
User-agent: | Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
Seems this has nothing to do with wdired.el. Eval this (progn (with-current-buffer (get-buffer-create "*query-replace-bug*") (save-excursion (insert "foo foo \nfoo foo \n") (goto-char (point-min)) (put-text-property (point-at-bol) (+ 3 (point-at-bol)) 'read-only t) (next-line) (put-text-property (point-at-bol) (+ 3 (point-at-bol)) 'read-only t) (set (make-local-variable 'query-replace-skip-read-only) t))) (pop-to-buffer (get-buffer "*query-replace-bug*"))) and C-M-% foo RET bar RET ! (Note again that it's "foo " and not "foo"). Only the first non read-only "foo " gets replaced. David
[Prev in Thread] | Current Thread | [Next in Thread] |