diff options
| author | Glenn Morris | 2018-04-20 13:35:20 -0400 |
|---|---|---|
| committer | Glenn Morris | 2018-04-20 13:35:20 -0400 |
| commit | 3e233dd1c9a460e93974d9f13dfe564caed5ab56 (patch) | |
| tree | 6554c66e20621cdf7139bb4251a62daa1a9c27f2 /lisp/replace.el | |
| parent | 15a62a60d12eef50c21e2271acde2b47b397a093 (diff) | |
| download | emacs-3e233dd1c9a460e93974d9f13dfe564caed5ab56.tar.gz emacs-3e233dd1c9a460e93974d9f13dfe564caed5ab56.zip | |
* lisp/replace.el (query-replace-descr): Silence compiler.
Diffstat (limited to 'lisp/replace.el')
| -rw-r--r-- | lisp/replace.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/replace.el b/lisp/replace.el index 0e723390347..d5d34f652ab 100644 --- a/lisp/replace.el +++ b/lisp/replace.el | |||
| @@ -148,7 +148,7 @@ See `replace-regexp' and `query-replace-regexp-eval'.") | |||
| 148 | 148 | ||
| 149 | (defun query-replace-descr (string) | 149 | (defun query-replace-descr (string) |
| 150 | (setq string (copy-sequence string)) | 150 | (setq string (copy-sequence string)) |
| 151 | (dotimes (i (length string) string) | 151 | (dotimes (i (length string)) |
| 152 | (let ((c (aref string i))) | 152 | (let ((c (aref string i))) |
| 153 | (cond | 153 | (cond |
| 154 | ((< c ?\s) (add-text-properties | 154 | ((< c ?\s) (add-text-properties |
| @@ -158,7 +158,8 @@ See `replace-regexp' and `query-replace-regexp-eval'.") | |||
| 158 | ((= c ?\^?) (add-text-properties | 158 | ((= c ?\^?) (add-text-properties |
| 159 | i (1+ i) | 159 | i (1+ i) |
| 160 | `(display ,(propertize "^?" 'face 'escape-glyph)) | 160 | `(display ,(propertize "^?" 'face 'escape-glyph)) |
| 161 | string)))))) | 161 | string))))) |
| 162 | string) | ||
| 162 | 163 | ||
| 163 | (defun query-replace--split-string (string) | 164 | (defun query-replace--split-string (string) |
| 164 | "Split string STRING at a substring with property `separator'." | 165 | "Split string STRING at a substring with property `separator'." |