diff options
| author | Basil L. Contovounesios | 2019-08-01 15:59:46 +0300 |
|---|---|---|
| committer | Basil L. Contovounesios | 2019-08-01 17:04:53 +0300 |
| commit | 2267110b6f00bbb0ad87f4621e6ecd9dc1bd8581 (patch) | |
| tree | fdbe65f9e6a975a3614d66613f499d406df77226 | |
| parent | 6a77aa4a2c34e6edee06c9831687927543c75391 (diff) | |
| download | emacs-2267110b6f00bbb0ad87f4621e6ecd9dc1bd8581.tar.gz emacs-2267110b6f00bbb0ad87f4621e6ecd9dc1bd8581.zip | |
Fix usage of remove-text-properties
* lisp/allout-widgets.el (allout-decorate-item-icon):
* lisp/emacs-lisp/chart.el (chart-goto-xy):
* lisp/forms.el (forms--make-format)
(forms--make-format-elt-using-text-properties):
* lisp/htmlfontify.el (hfy-unmark-trailing-whitespace):
* lisp/net/newst-plainview.el (newsticker-hide-entry)
(newsticker-show-entry):
* lisp/nxml/nxml-mode.el (nxml-cleanup):
* lisp/obsolete/longlines.el (longlines-unshow-hard-newlines)
(longlines-encode-region):
* lisp/org/ob-exp.el (org-babel-exp-process-buffer):
* lisp/org/org-agenda.el (org-agenda-show-new-time):
* lisp/progmodes/cc-defs.el
(c-clear-char-property-with-value-function)
(c-clear-char-property-with-value-on-char-function):
* lisp/progmodes/ebrowse.el (ebrowse--hide):
* lisp/progmodes/gdb-mi.el (gdb-send):
* lisp/progmodes/idlw-shell.el
(idlwave-retrieve-expression-from-level):
* lisp/progmodes/make-mode.el (makefile-fill-paragraph):
* lisp/progmodes/prog-mode.el (prettify-symbols--post-command-hook):
* lisp/progmodes/ruby-mode.el (ruby-syntax-propertize):
* lisp/tmm.el (tmm-remove-inactive-mouse-face):
Always pass an explicit plist to remove-text-properties.
* lisp/dired.el (dired--unhide):
* lisp/facemenu.el (facemenu-add-face):
* lisp/htmlfontify.el (hfy-fontify-buffer):
* lisp/iimage.el (iimage-mode-buffer):
* lisp/image-file.el (image-file-yank-handler):
* lisp/progmodes/prog-mode.el (prettify-symbols--compose-symbol):
* lisp/textmodes/tex-mode.el (latex-env-before-change):
* test/src/undo-tests.el (undo-test0):
Use remove-list-of-text-properties in place of
remove-text-properties where appropriate.
| -rw-r--r-- | lisp/allout-widgets.el | 2 | ||||
| -rw-r--r-- | lisp/dired.el | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/chart.el | 2 | ||||
| -rw-r--r-- | lisp/facemenu.el | 2 | ||||
| -rw-r--r-- | lisp/forms.el | 4 | ||||
| -rw-r--r-- | lisp/htmlfontify.el | 5 | ||||
| -rw-r--r-- | lisp/iimage.el | 5 | ||||
| -rw-r--r-- | lisp/image-file.el | 2 | ||||
| -rw-r--r-- | lisp/net/newst-plainview.el | 4 | ||||
| -rw-r--r-- | lisp/nxml/nxml-mode.el | 2 | ||||
| -rw-r--r-- | lisp/obsolete/longlines.el | 4 | ||||
| -rw-r--r-- | lisp/org/ob-exp.el | 3 | ||||
| -rw-r--r-- | lisp/org/org-agenda.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/cc-defs.el | 4 | ||||
| -rw-r--r-- | lisp/progmodes/ebrowse.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/gdb-mi.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/idlw-shell.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/make-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/prog-mode.el | 9 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-mode.el | 2 | ||||
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 2 | ||||
| -rw-r--r-- | lisp/tmm.el | 2 | ||||
| -rw-r--r-- | test/src/undo-tests.el | 2 |
23 files changed, 36 insertions, 32 deletions
diff --git a/lisp/allout-widgets.el b/lisp/allout-widgets.el index e7da08d44e7..e4a8db8a628 100644 --- a/lisp/allout-widgets.el +++ b/lisp/allout-widgets.el | |||
| @@ -1966,7 +1966,7 @@ reapplying this method will rectify the glyphs." | |||
| 1966 | ;; XXX we strip the prior properties without even checking if | 1966 | ;; XXX we strip the prior properties without even checking if |
| 1967 | ;; the prior bullet was distinctive, because the widget | 1967 | ;; the prior bullet was distinctive, because the widget |
| 1968 | ;; provisions to convey that info is disappearing, sigh. | 1968 | ;; provisions to convey that info is disappearing, sigh. |
| 1969 | (remove-text-properties icon-end (1+ icon-end) '(display)) | 1969 | (remove-text-properties icon-end (1+ icon-end) '(display nil)) |
| 1970 | (setq distinctive-start icon-end distinctive-end icon-end) | 1970 | (setq distinctive-start icon-end distinctive-end icon-end) |
| 1971 | (widget-put item-widget :distinctive-start distinctive-start) | 1971 | (widget-put item-widget :distinctive-start distinctive-start) |
| 1972 | (widget-put item-widget :distinctive-end distinctive-end)) | 1972 | (widget-put item-widget :distinctive-end distinctive-end)) |
diff --git a/lisp/dired.el b/lisp/dired.el index d47393b1349..331e95a6cc4 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2560,7 +2560,7 @@ See options: `dired-hide-details-hide-symlink-targets' and | |||
| 2560 | ;; approximate ("anywhere on the line is fine"). | 2560 | ;; approximate ("anywhere on the line is fine"). |
| 2561 | ;; FIXME: This also removes other invisible properties! | 2561 | ;; FIXME: This also removes other invisible properties! |
| 2562 | (save-excursion | 2562 | (save-excursion |
| 2563 | (remove-text-properties | 2563 | (remove-list-of-text-properties |
| 2564 | (progn (goto-char start) (line-end-position)) | 2564 | (progn (goto-char start) (line-end-position)) |
| 2565 | (progn (goto-char end) (line-end-position)) | 2565 | (progn (goto-char end) (line-end-position)) |
| 2566 | '(invisible)))) | 2566 | '(invisible)))) |
diff --git a/lisp/emacs-lisp/chart.el b/lisp/emacs-lisp/chart.el index 354830d9112..124ede17fd3 100644 --- a/lisp/emacs-lisp/chart.el +++ b/lisp/emacs-lisp/chart.el | |||
| @@ -518,7 +518,7 @@ cons cells of the form (NAME . NUM). See `sort' for more details." | |||
| 518 | (or (= (move-to-column x) x) | 518 | (or (= (move-to-column x) x) |
| 519 | (let ((p (point))) | 519 | (let ((p (point))) |
| 520 | (indent-to x) | 520 | (indent-to x) |
| 521 | (remove-text-properties p (point) '(face)))))) | 521 | (remove-text-properties p (point) '(face nil)))))) |
| 522 | 522 | ||
| 523 | (defun chart-zap-chars (n) | 523 | (defun chart-zap-chars (n) |
| 524 | "Zap up to N chars without deleting EOLs." | 524 | "Zap up to N chars without deleting EOLs." |
diff --git a/lisp/facemenu.el b/lisp/facemenu.el index 44b3941b24d..c582fc8b28f 100644 --- a/lisp/facemenu.el +++ b/lisp/facemenu.el | |||
| @@ -732,7 +732,7 @@ effect. See `facemenu-remove-face-function'." | |||
| 732 | (if facemenu-remove-face-function | 732 | (if facemenu-remove-face-function |
| 733 | (funcall facemenu-remove-face-function start end) | 733 | (funcall facemenu-remove-face-function start end) |
| 734 | (if (and start (< start end)) | 734 | (if (and start (< start end)) |
| 735 | (remove-text-properties start end '(face default)) | 735 | (remove-list-of-text-properties start end '(face)) |
| 736 | (facemenu-set-self-insert-face 'default)))) | 736 | (facemenu-set-self-insert-face 'default)))) |
| 737 | (facemenu-add-face-function | 737 | (facemenu-add-face-function |
| 738 | (save-excursion | 738 | (save-excursion |
diff --git a/lisp/forms.el b/lisp/forms.el index a85ee94c1a2..149b9675730 100644 --- a/lisp/forms.el +++ b/lisp/forms.el | |||
| @@ -933,7 +933,7 @@ Commands: Equivalent keys in read-only mode: | |||
| 933 | '(front-sticky (read-only cursor-intangible))))) | 933 | '(front-sticky (read-only cursor-intangible))))) |
| 934 | ;; Prevent insertion after the last text. | 934 | ;; Prevent insertion after the last text. |
| 935 | (remove-text-properties (1- (point)) (point) | 935 | (remove-text-properties (1- (point)) (point) |
| 936 | '(rear-nonsticky))) | 936 | '(rear-nonsticky nil))) |
| 937 | (setq forms--iif-start nil)) | 937 | (setq forms--iif-start nil)) |
| 938 | `(lambda (arg) | 938 | `(lambda (arg) |
| 939 | ,@(apply 'append | 939 | ,@(apply 'append |
| @@ -998,7 +998,7 @@ Commands: Equivalent keys in read-only mode: | |||
| 998 | ;; '(front-sticky (read-only)))))) | 998 | ;; '(front-sticky (read-only)))))) |
| 999 | ;; ;; Prevent insertion after the last text. | 999 | ;; ;; Prevent insertion after the last text. |
| 1000 | ;; (remove-text-properties (1- (point)) (point) | 1000 | ;; (remove-text-properties (1- (point)) (point) |
| 1001 | ;; '(rear-nonsticky))) | 1001 | ;; '(rear-nonsticky nil))) |
| 1002 | ;; | 1002 | ;; |
| 1003 | ;; ;; wrap up | 1003 | ;; ;; wrap up |
| 1004 | ;; (setq forms--iif-start nil) | 1004 | ;; (setq forms--iif-start nil) |
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el index dfba025742a..b8442be1e89 100644 --- a/lisp/htmlfontify.el +++ b/lisp/htmlfontify.el | |||
| @@ -1589,7 +1589,7 @@ Do not record undo information during evaluation of BODY." | |||
| 1589 | (when show-trailing-whitespace | 1589 | (when show-trailing-whitespace |
| 1590 | (hfy-save-buffer-state nil | 1590 | (hfy-save-buffer-state nil |
| 1591 | (remove-text-properties (point-min) (point-max) | 1591 | (remove-text-properties (point-min) (point-max) |
| 1592 | '(hfy-show-trailing-whitespace))))) | 1592 | '(hfy-show-trailing-whitespace nil))))) |
| 1593 | 1593 | ||
| 1594 | (defun hfy-begin-span (style text-block text-id text-begins-block-p) | 1594 | (defun hfy-begin-span (style text-block text-id text-begins-block-p) |
| 1595 | "Default handler to begin a span of text. | 1595 | "Default handler to begin a span of text. |
| @@ -1677,7 +1677,8 @@ FILE, if set, is the file name." | |||
| 1677 | (copy-to-buffer html-buffer (point-min) (point-max)) | 1677 | (copy-to-buffer html-buffer (point-min) (point-max)) |
| 1678 | (set-buffer html-buffer) | 1678 | (set-buffer html-buffer) |
| 1679 | ;; rip out props that could interfere with our htmlization of the buffer: | 1679 | ;; rip out props that could interfere with our htmlization of the buffer: |
| 1680 | (remove-text-properties (point-min) (point-max) hfy-ignored-properties) | 1680 | (remove-list-of-text-properties (point-min) (point-max) |
| 1681 | hfy-ignored-properties) | ||
| 1681 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1682 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 1682 | ;; at this point, html-buffer retains the fontification of the parent: | 1683 | ;; at this point, html-buffer retains the fontification of the parent: |
| 1683 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 1684 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
diff --git a/lisp/iimage.el b/lisp/iimage.el index 3b5006491aa..b2ee3da7838 100644 --- a/lisp/iimage.el +++ b/lisp/iimage.el | |||
| @@ -138,8 +138,9 @@ Examples of image filename patterns to match: | |||
| 138 | keymap ,image-map | 138 | keymap ,image-map |
| 139 | modification-hooks | 139 | modification-hooks |
| 140 | (iimage-modification-hook))) | 140 | (iimage-modification-hook))) |
| 141 | (remove-text-properties (match-beginning 0) (match-end 0) | 141 | (remove-list-of-text-properties |
| 142 | '(display modification-hooks)))))))))) | 142 | (match-beginning 0) (match-end 0) |
| 143 | '(display modification-hooks)))))))))) | ||
| 143 | 144 | ||
| 144 | ;;;###autoload | 145 | ;;;###autoload |
| 145 | (define-minor-mode iimage-mode nil | 146 | (define-minor-mode iimage-mode nil |
diff --git a/lisp/image-file.el b/lisp/image-file.el index 6cadc42110f..26f16d1ed25 100644 --- a/lisp/image-file.el +++ b/lisp/image-file.el | |||
| @@ -140,7 +140,7 @@ absolute file name and number of characters inserted." | |||
| 140 | "Yank handler for inserting an image into a buffer." | 140 | "Yank handler for inserting an image into a buffer." |
| 141 | (let ((len (length string)) | 141 | (let ((len (length string)) |
| 142 | (image (get-text-property 0 'display string))) | 142 | (image (get-text-property 0 'display string))) |
| 143 | (remove-text-properties 0 len yank-excluded-properties string) | 143 | (remove-list-of-text-properties 0 len yank-excluded-properties string) |
| 144 | (if (consp image) | 144 | (if (consp image) |
| 145 | (add-text-properties 0 | 145 | (add-text-properties 0 |
| 146 | (or (next-single-property-change 0 'image-counter string) | 146 | (or (next-single-property-change 0 'image-counter string) |
diff --git a/lisp/net/newst-plainview.el b/lisp/net/newst-plainview.el index 4f5c729dd00..58bca31aba4 100644 --- a/lisp/net/newst-plainview.el +++ b/lisp/net/newst-plainview.el | |||
| @@ -1002,7 +1002,7 @@ not get changed." | |||
| 1002 | ;; toggle | 1002 | ;; toggle |
| 1003 | (add-text-properties pos1 pos2 | 1003 | (add-text-properties pos1 pos2 |
| 1004 | (list 'invisible org-inv-prop)) | 1004 | (list 'invisible org-inv-prop)) |
| 1005 | (remove-text-properties pos1 pos2 '(org-invisible)))))) | 1005 | (remove-text-properties pos1 pos2 '(org-invisible nil)))))) |
| 1006 | (newsticker--buffer-redraw)) | 1006 | (newsticker--buffer-redraw)) |
| 1007 | 1007 | ||
| 1008 | (defun newsticker-show-entry () | 1008 | (defun newsticker-show-entry () |
| @@ -1028,7 +1028,7 @@ not get changed." | |||
| 1028 | ;; toggle | 1028 | ;; toggle |
| 1029 | (add-text-properties pos1 pos2 | 1029 | (add-text-properties pos1 pos2 |
| 1030 | (list 'invisible org-inv-prop)) | 1030 | (list 'invisible org-inv-prop)) |
| 1031 | (remove-text-properties pos1 pos2 '(org-invisible)))))) | 1031 | (remove-text-properties pos1 pos2 '(org-invisible nil)))))) |
| 1032 | (newsticker--buffer-redraw)) | 1032 | (newsticker--buffer-redraw)) |
| 1033 | 1033 | ||
| 1034 | (defun newsticker-toggle-auto-narrow-to-feed () | 1034 | (defun newsticker-toggle-auto-narrow-to-feed () |
diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 623a6666627..7d770e61639 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el | |||
| @@ -561,7 +561,7 @@ Many aspects this mode can be customized using | |||
| 561 | (widen) | 561 | (widen) |
| 562 | (with-silent-modifications | 562 | (with-silent-modifications |
| 563 | (nxml-with-invisible-motion | 563 | (nxml-with-invisible-motion |
| 564 | (remove-text-properties (point-min) (point-max) '(face))))) | 564 | (remove-text-properties (point-min) (point-max) '(face nil))))) |
| 565 | (remove-hook 'change-major-mode-hook #'nxml-cleanup t)) | 565 | (remove-hook 'change-major-mode-hook #'nxml-cleanup t)) |
| 566 | 566 | ||
| 567 | (defun nxml-degrade (context err) | 567 | (defun nxml-degrade (context err) |
diff --git a/lisp/obsolete/longlines.el b/lisp/obsolete/longlines.el index 30c6f35e7b1..5ad7f668997 100644 --- a/lisp/obsolete/longlines.el +++ b/lisp/obsolete/longlines.el | |||
| @@ -248,7 +248,7 @@ With optional argument ARG, make the hard newlines invisible again." | |||
| 248 | (inhibit-modification-hooks t) | 248 | (inhibit-modification-hooks t) |
| 249 | buffer-file-name buffer-file-truename) | 249 | buffer-file-name buffer-file-truename) |
| 250 | (while pos | 250 | (while pos |
| 251 | (remove-text-properties pos (1+ pos) '(display)) | 251 | (remove-text-properties pos (1+ pos) '(display nil)) |
| 252 | (setq pos (text-property-not-all (1+ pos) (point-max) 'hard nil))) | 252 | (setq pos (text-property-not-all (1+ pos) (point-max) 'hard nil))) |
| 253 | (restore-buffer-modified-p mod))) | 253 | (restore-buffer-modified-p mod))) |
| 254 | 254 | ||
| @@ -387,7 +387,7 @@ compatibility with `format-alist', and is ignored." | |||
| 387 | (goto-char (1+ pos)) | 387 | (goto-char (1+ pos)) |
| 388 | (insert-and-inherit " ") | 388 | (insert-and-inherit " ") |
| 389 | (delete-region pos (1+ pos)) | 389 | (delete-region pos (1+ pos)) |
| 390 | (remove-text-properties pos (1+ pos) 'hard)))) | 390 | (remove-text-properties pos (1+ pos) '(hard nil))))) |
| 391 | (set-buffer-modified-p mod) | 391 | (set-buffer-modified-p mod) |
| 392 | end))) | 392 | end))) |
| 393 | 393 | ||
diff --git a/lisp/org/ob-exp.el b/lisp/org/ob-exp.el index bf5796405fe..4a5bff82aef 100644 --- a/lisp/org/ob-exp.el +++ b/lisp/org/ob-exp.el | |||
| @@ -282,7 +282,8 @@ this template." | |||
| 282 | (set-marker begin nil) | 282 | (set-marker begin nil) |
| 283 | (set-marker end nil))))) | 283 | (set-marker end nil))))) |
| 284 | (kill-buffer org-babel-exp-reference-buffer) | 284 | (kill-buffer org-babel-exp-reference-buffer) |
| 285 | (remove-text-properties (point-min) (point-max) '(org-reference))))))) | 285 | (remove-text-properties (point-min) (point-max) |
| 286 | '(org-reference nil))))))) | ||
| 286 | 287 | ||
| 287 | (defun org-babel-exp-do-export (info type &optional hash) | 288 | (defun org-babel-exp-do-export (info type &optional hash) |
| 288 | "Return a string with the exported content of a code block. | 289 | "Return a string with the exported content of a code block. |
diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el index 23ee8d71e66..a6195cfb2a5 100644 --- a/lisp/org/org-agenda.el +++ b/lisp/org/org-agenda.el | |||
| @@ -9230,7 +9230,7 @@ Called with a universal prefix arg, show the priority instead of setting it." | |||
| 9230 | (goto-char (point-max)) | 9230 | (goto-char (point-max)) |
| 9231 | (while (not (bobp)) | 9231 | (while (not (bobp)) |
| 9232 | (when (equal marker (org-get-at-bol 'org-marker)) | 9232 | (when (equal marker (org-get-at-bol 'org-marker)) |
| 9233 | (remove-text-properties (point-at-bol) (point-at-eol) '(display)) | 9233 | (remove-text-properties (point-at-bol) (point-at-eol) '(display nil)) |
| 9234 | (org-move-to-column (- (window-width) (length stamp)) t) | 9234 | (org-move-to-column (- (window-width) (length stamp)) t) |
| 9235 | (add-text-properties | 9235 | (add-text-properties |
| 9236 | (1- (point)) (point-at-eol) | 9236 | (1- (point)) (point-at-eol) |
diff --git a/lisp/progmodes/cc-defs.el b/lisp/progmodes/cc-defs.el index ab3e25b226f..34f47debb16 100644 --- a/lisp/progmodes/cc-defs.el +++ b/lisp/progmodes/cc-defs.el | |||
| @@ -1291,7 +1291,7 @@ been put there by c-put-char-property. POINT remains unchanged." | |||
| 1291 | (when (and (fboundp 'syntax-ppss) (eq property 'syntax-table)) | 1291 | (when (and (fboundp 'syntax-ppss) (eq property 'syntax-table)) |
| 1292 | (setq c-syntax-table-hwm (min c-syntax-table-hwm place))) | 1292 | (setq c-syntax-table-hwm (min c-syntax-table-hwm place))) |
| 1293 | (setq end-place (c-next-single-property-change place property nil to)) | 1293 | (setq end-place (c-next-single-property-change place property nil to)) |
| 1294 | (remove-text-properties place end-place (cons property nil)) | 1294 | (remove-text-properties place end-place (list property nil)) |
| 1295 | ;; Do we have to do anything with stickiness here? | 1295 | ;; Do we have to do anything with stickiness here? |
| 1296 | (setq place end-place)))) | 1296 | (setq place end-place)))) |
| 1297 | 1297 | ||
| @@ -1375,7 +1375,7 @@ property, or nil." | |||
| 1375 | (setq place (c-next-single-property-change place property nil to))) | 1375 | (setq place (c-next-single-property-change place property nil to))) |
| 1376 | (< place to)) | 1376 | (< place to)) |
| 1377 | (when (eq (char-after place) char) | 1377 | (when (eq (char-after place) char) |
| 1378 | (remove-text-properties place (1+ place) (cons property nil)) | 1378 | (remove-text-properties place (1+ place) (list property nil)) |
| 1379 | (or first | 1379 | (or first |
| 1380 | (progn (setq first place) | 1380 | (progn (setq first place) |
| 1381 | (when (eq property 'syntax-table) | 1381 | (when (eq property 'syntax-table) |
diff --git a/lisp/progmodes/ebrowse.el b/lisp/progmodes/ebrowse.el index 3faec4959bc..733e3735821 100644 --- a/lisp/progmodes/ebrowse.el +++ b/lisp/progmodes/ebrowse.el | |||
| @@ -1383,7 +1383,7 @@ Pop to member buffer if no prefix ARG, to tree buffer otherwise." | |||
| 1383 | 1383 | ||
| 1384 | (defun ebrowse--unhide (start end) | 1384 | (defun ebrowse--unhide (start end) |
| 1385 | ;; FIXME: This also removes other invisible properties! | 1385 | ;; FIXME: This also removes other invisible properties! |
| 1386 | (remove-text-properties start end '(invisible))) | 1386 | (remove-text-properties start end '(invisible nil))) |
| 1387 | 1387 | ||
| 1388 | ;;; Misc tree buffer commands | 1388 | ;;; Misc tree buffer commands |
| 1389 | 1389 | ||
diff --git a/lisp/progmodes/gdb-mi.el b/lisp/progmodes/gdb-mi.el index 15d47575c78..439e0dfc620 100644 --- a/lisp/progmodes/gdb-mi.el +++ b/lisp/progmodes/gdb-mi.el | |||
| @@ -1794,7 +1794,7 @@ commands to be prefixed by \"-interpreter-exec console\".") | |||
| 1794 | "A comint send filter for gdb." | 1794 | "A comint send filter for gdb." |
| 1795 | (with-current-buffer gud-comint-buffer | 1795 | (with-current-buffer gud-comint-buffer |
| 1796 | (let ((inhibit-read-only t)) | 1796 | (let ((inhibit-read-only t)) |
| 1797 | (remove-text-properties (point-min) (point-max) '(face)))) | 1797 | (remove-text-properties (point-min) (point-max) '(face nil)))) |
| 1798 | ;; mimic <RET> key to repeat previous command in GDB | 1798 | ;; mimic <RET> key to repeat previous command in GDB |
| 1799 | (when (= gdb-control-level 0) | 1799 | (when (= gdb-control-level 0) |
| 1800 | (if (not (string= "" string)) | 1800 | (if (not (string= "" string)) |
diff --git a/lisp/progmodes/idlw-shell.el b/lisp/progmodes/idlw-shell.el index 3bd99620d04..188ec012cf7 100644 --- a/lisp/progmodes/idlw-shell.el +++ b/lisp/progmodes/idlw-shell.el | |||
| @@ -3120,7 +3120,7 @@ versions of IDL." | |||
| 3120 | fetch-start start) | 3120 | fetch-start start) |
| 3121 | (setq fetch-end (next-single-property-change fetch-start 'fetch expr))) | 3121 | (setq fetch-end (next-single-property-change fetch-start 'fetch expr))) |
| 3122 | (unless fetch-end (setq fetch-end (length expr))) | 3122 | (unless fetch-end (setq fetch-end (length expr))) |
| 3123 | (remove-text-properties fetch-start fetch-end '(fetch) expr) | 3123 | (remove-text-properties fetch-start fetch-end '(fetch nil) expr) |
| 3124 | (setq expr (concat (substring expr 0 fetch-start) | 3124 | (setq expr (concat (substring expr 0 fetch-start) |
| 3125 | (format "(routine_names('%s',fetch=%d))" | 3125 | (format "(routine_names('%s',fetch=%d))" |
| 3126 | (substring expr fetch-start fetch-end) | 3126 | (substring expr fetch-start fetch-end) |
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index cffb749c3e8..54292b5d393 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -1313,7 +1313,7 @@ Fill comments, backslashed lines, and variable definitions specially." | |||
| 1313 | ;; which back-to-indentation (called via fill-newline -> | 1313 | ;; which back-to-indentation (called via fill-newline -> |
| 1314 | ;; fill-indent-to-left-margin -> indent-line-to) thinks are real code | 1314 | ;; fill-indent-to-left-margin -> indent-line-to) thinks are real code |
| 1315 | ;; (bug#13179). | 1315 | ;; (bug#13179). |
| 1316 | (remove-text-properties (point-min) (point-max) '(syntax-table)) | 1316 | (remove-text-properties (point-min) (point-max) '(syntax-table nil)) |
| 1317 | (let ((fill-paragraph-function nil) | 1317 | (let ((fill-paragraph-function nil) |
| 1318 | ;; Adjust fill-column to allow space for the backslash. | 1318 | ;; Adjust fill-column to allow space for the backslash. |
| 1319 | (fill-column (- fill-column 1))) | 1319 | (fill-column (- fill-column 1))) |
diff --git a/lisp/progmodes/prog-mode.el b/lisp/progmodes/prog-mode.el index 79fe56aebbf..cb39e62265d 100644 --- a/lisp/progmodes/prog-mode.el +++ b/lisp/progmodes/prog-mode.el | |||
| @@ -138,9 +138,10 @@ Regexp match data 0 specifies the characters to be composed." | |||
| 138 | ;; No composition for you. Let's actually remove any | 138 | ;; No composition for you. Let's actually remove any |
| 139 | ;; composition we may have added earlier and which is now | 139 | ;; composition we may have added earlier and which is now |
| 140 | ;; incorrect. | 140 | ;; incorrect. |
| 141 | (remove-text-properties start end '(composition | 141 | (remove-list-of-text-properties start end |
| 142 | prettify-symbols-start | 142 | '(composition |
| 143 | prettify-symbols-end)))) | 143 | prettify-symbols-start |
| 144 | prettify-symbols-end)))) | ||
| 144 | ;; Return nil because we're not adding any face property. | 145 | ;; Return nil because we're not adding any face property. |
| 145 | nil) | 146 | nil) |
| 146 | 147 | ||
| @@ -191,7 +192,7 @@ on the symbol." | |||
| 191 | (e (apply #'max e))) | 192 | (e (apply #'max e))) |
| 192 | (with-silent-modifications | 193 | (with-silent-modifications |
| 193 | (setq prettify-symbols--current-symbol-bounds (list s e)) | 194 | (setq prettify-symbols--current-symbol-bounds (list s e)) |
| 194 | (remove-text-properties s e '(composition)))))) | 195 | (remove-text-properties s e '(composition nil)))))) |
| 195 | 196 | ||
| 196 | ;;;###autoload | 197 | ;;;###autoload |
| 197 | (define-minor-mode prettify-symbols-mode | 198 | (define-minor-mode prettify-symbols-mode |
diff --git a/lisp/progmodes/ruby-mode.el b/lisp/progmodes/ruby-mode.el index 340c689f02e..69acc7a3944 100644 --- a/lisp/progmodes/ruby-mode.el +++ b/lisp/progmodes/ruby-mode.el | |||
| @@ -1858,7 +1858,7 @@ It will be properly highlighted even when the call omits parens.") | |||
| 1858 | "Syntactic keywords for Ruby mode. See `syntax-propertize-function'." | 1858 | "Syntactic keywords for Ruby mode. See `syntax-propertize-function'." |
| 1859 | (let (case-fold-search) | 1859 | (let (case-fold-search) |
| 1860 | (goto-char start) | 1860 | (goto-char start) |
| 1861 | (remove-text-properties start end '(ruby-expansion-match-data)) | 1861 | (remove-text-properties start end '(ruby-expansion-match-data nil)) |
| 1862 | (ruby-syntax-propertize-heredoc end) | 1862 | (ruby-syntax-propertize-heredoc end) |
| 1863 | (ruby-syntax-enclosing-percent-literal end) | 1863 | (ruby-syntax-enclosing-percent-literal end) |
| 1864 | (funcall | 1864 | (funcall |
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 91c580adec4..f277defecfd 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -729,7 +729,7 @@ automatically inserts its partner." | |||
| 729 | (condition-case err | 729 | (condition-case err |
| 730 | (with-silent-modifications | 730 | (with-silent-modifications |
| 731 | ;; Remove properties even if don't find a pair. | 731 | ;; Remove properties even if don't find a pair. |
| 732 | (remove-text-properties | 732 | (remove-list-of-text-properties |
| 733 | (previous-single-property-change (1+ start) 'latex-env-pair) | 733 | (previous-single-property-change (1+ start) 'latex-env-pair) |
| 734 | (next-single-property-change start 'latex-env-pair) | 734 | (next-single-property-change start 'latex-env-pair) |
| 735 | '(latex-env-pair)) | 735 | '(latex-env-pair)) |
diff --git a/lisp/tmm.el b/lisp/tmm.el index 44f04eab87b..bf76652f401 100644 --- a/lisp/tmm.el +++ b/lisp/tmm.el | |||
| @@ -378,7 +378,7 @@ Stores a list of all the shortcuts in the free variable `tmm-short-cuts'." | |||
| 378 | (while (not (eobp)) | 378 | (while (not (eobp)) |
| 379 | (setq next (next-single-char-property-change (point) 'mouse-face)) | 379 | (setq next (next-single-char-property-change (point) 'mouse-face)) |
| 380 | (when (looking-at inactive-string) | 380 | (when (looking-at inactive-string) |
| 381 | (remove-text-properties (point) next '(mouse-face)) | 381 | (remove-text-properties (point) next '(mouse-face nil)) |
| 382 | (add-text-properties (point) next '(face tmm-inactive))) | 382 | (add-text-properties (point) next '(face tmm-inactive))) |
| 383 | (goto-char next))) | 383 | (goto-char next))) |
| 384 | (set-buffer-modified-p nil))) | 384 | (set-buffer-modified-p nil))) |
diff --git a/test/src/undo-tests.el b/test/src/undo-tests.el index b84f5a58471..8395ba99099 100644 --- a/test/src/undo-tests.el +++ b/test/src/undo-tests.el | |||
| @@ -72,7 +72,7 @@ | |||
| 72 | (undo-boundary) | 72 | (undo-boundary) |
| 73 | (put-text-property (point-min) (point-max) 'face 'bold) | 73 | (put-text-property (point-min) (point-max) 'face 'bold) |
| 74 | (undo-boundary) | 74 | (undo-boundary) |
| 75 | (remove-text-properties (point-min) (point-max) '(face default)) | 75 | (remove-list-of-text-properties (point-min) (point-max) '(face)) |
| 76 | (undo-boundary) | 76 | (undo-boundary) |
| 77 | (set-buffer-multibyte (not enable-multibyte-characters)) | 77 | (set-buffer-multibyte (not enable-multibyte-characters)) |
| 78 | (undo-boundary) | 78 | (undo-boundary) |