;; XXX we strip the prior properties without even checking if
;; the prior bullet was distinctive, because the widget
;; provisions to convey that info is disappearing, sigh.
- (remove-text-properties icon-end (1+ icon-end) '(display))
+ (remove-text-properties icon-end (1+ icon-end) '(display nil))
(setq distinctive-start icon-end distinctive-end icon-end)
(widget-put item-widget :distinctive-start distinctive-start)
(widget-put item-widget :distinctive-end distinctive-end))
;; approximate ("anywhere on the line is fine").
;; FIXME: This also removes other invisible properties!
(save-excursion
- (remove-text-properties
+ (remove-list-of-text-properties
(progn (goto-char start) (line-end-position))
(progn (goto-char end) (line-end-position))
'(invisible))))
(or (= (move-to-column x) x)
(let ((p (point)))
(indent-to x)
- (remove-text-properties p (point) '(face))))))
+ (remove-text-properties p (point) '(face nil))))))
(defun chart-zap-chars (n)
"Zap up to N chars without deleting EOLs."
(if facemenu-remove-face-function
(funcall facemenu-remove-face-function start end)
(if (and start (< start end))
- (remove-text-properties start end '(face default))
+ (remove-list-of-text-properties start end '(face))
(facemenu-set-self-insert-face 'default))))
(facemenu-add-face-function
(save-excursion
'(front-sticky (read-only cursor-intangible)))))
;; Prevent insertion after the last text.
(remove-text-properties (1- (point)) (point)
- '(rear-nonsticky)))
+ '(rear-nonsticky nil)))
(setq forms--iif-start nil))
`(lambda (arg)
,@(apply 'append
;; '(front-sticky (read-only))))))
;; ;; Prevent insertion after the last text.
;; (remove-text-properties (1- (point)) (point)
- ;; '(rear-nonsticky)))
+ ;; '(rear-nonsticky nil)))
;;
;; ;; wrap up
;; (setq forms--iif-start nil)
(when show-trailing-whitespace
(hfy-save-buffer-state nil
(remove-text-properties (point-min) (point-max)
- '(hfy-show-trailing-whitespace)))))
+ '(hfy-show-trailing-whitespace nil)))))
(defun hfy-begin-span (style text-block text-id text-begins-block-p)
"Default handler to begin a span of text.
(copy-to-buffer html-buffer (point-min) (point-max))
(set-buffer html-buffer)
;; rip out props that could interfere with our htmlization of the buffer:
- (remove-text-properties (point-min) (point-max) hfy-ignored-properties)
+ (remove-list-of-text-properties (point-min) (point-max)
+ hfy-ignored-properties)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; at this point, html-buffer retains the fontification of the parent:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
keymap ,image-map
modification-hooks
(iimage-modification-hook)))
- (remove-text-properties (match-beginning 0) (match-end 0)
- '(display modification-hooks))))))))))
+ (remove-list-of-text-properties
+ (match-beginning 0) (match-end 0)
+ '(display modification-hooks))))))))))
;;;###autoload
(define-minor-mode iimage-mode nil
"Yank handler for inserting an image into a buffer."
(let ((len (length string))
(image (get-text-property 0 'display string)))
- (remove-text-properties 0 len yank-excluded-properties string)
+ (remove-list-of-text-properties 0 len yank-excluded-properties string)
(if (consp image)
(add-text-properties 0
(or (next-single-property-change 0 'image-counter string)
;; toggle
(add-text-properties pos1 pos2
(list 'invisible org-inv-prop))
- (remove-text-properties pos1 pos2 '(org-invisible))))))
+ (remove-text-properties pos1 pos2 '(org-invisible nil))))))
(newsticker--buffer-redraw))
(defun newsticker-show-entry ()
;; toggle
(add-text-properties pos1 pos2
(list 'invisible org-inv-prop))
- (remove-text-properties pos1 pos2 '(org-invisible))))))
+ (remove-text-properties pos1 pos2 '(org-invisible nil))))))
(newsticker--buffer-redraw))
(defun newsticker-toggle-auto-narrow-to-feed ()
(widen)
(with-silent-modifications
(nxml-with-invisible-motion
- (remove-text-properties (point-min) (point-max) '(face)))))
+ (remove-text-properties (point-min) (point-max) '(face nil)))))
(remove-hook 'change-major-mode-hook #'nxml-cleanup t))
(defun nxml-degrade (context err)
(inhibit-modification-hooks t)
buffer-file-name buffer-file-truename)
(while pos
- (remove-text-properties pos (1+ pos) '(display))
+ (remove-text-properties pos (1+ pos) '(display nil))
(setq pos (text-property-not-all (1+ pos) (point-max) 'hard nil)))
(restore-buffer-modified-p mod)))
(goto-char (1+ pos))
(insert-and-inherit " ")
(delete-region pos (1+ pos))
- (remove-text-properties pos (1+ pos) 'hard))))
+ (remove-text-properties pos (1+ pos) '(hard nil)))))
(set-buffer-modified-p mod)
end)))
(set-marker begin nil)
(set-marker end nil)))))
(kill-buffer org-babel-exp-reference-buffer)
- (remove-text-properties (point-min) (point-max) '(org-reference)))))))
+ (remove-text-properties (point-min) (point-max)
+ '(org-reference nil)))))))
(defun org-babel-exp-do-export (info type &optional hash)
"Return a string with the exported content of a code block.
(goto-char (point-max))
(while (not (bobp))
(when (equal marker (org-get-at-bol 'org-marker))
- (remove-text-properties (point-at-bol) (point-at-eol) '(display))
+ (remove-text-properties (point-at-bol) (point-at-eol) '(display nil))
(org-move-to-column (- (window-width) (length stamp)) t)
(add-text-properties
(1- (point)) (point-at-eol)
(when (and (fboundp 'syntax-ppss) (eq property 'syntax-table))
(setq c-syntax-table-hwm (min c-syntax-table-hwm place)))
(setq end-place (c-next-single-property-change place property nil to))
- (remove-text-properties place end-place (cons property nil))
+ (remove-text-properties place end-place (list property nil))
;; Do we have to do anything with stickiness here?
(setq place end-place))))
(setq place (c-next-single-property-change place property nil to)))
(< place to))
(when (eq (char-after place) char)
- (remove-text-properties place (1+ place) (cons property nil))
+ (remove-text-properties place (1+ place) (list property nil))
(or first
(progn (setq first place)
(when (eq property 'syntax-table)
(defun ebrowse--unhide (start end)
;; FIXME: This also removes other invisible properties!
- (remove-text-properties start end '(invisible)))
+ (remove-text-properties start end '(invisible nil)))
;;; Misc tree buffer commands
"A comint send filter for gdb."
(with-current-buffer gud-comint-buffer
(let ((inhibit-read-only t))
- (remove-text-properties (point-min) (point-max) '(face))))
+ (remove-text-properties (point-min) (point-max) '(face nil))))
;; mimic <RET> key to repeat previous command in GDB
(when (= gdb-control-level 0)
(if (not (string= "" string))
fetch-start start)
(setq fetch-end (next-single-property-change fetch-start 'fetch expr)))
(unless fetch-end (setq fetch-end (length expr)))
- (remove-text-properties fetch-start fetch-end '(fetch) expr)
+ (remove-text-properties fetch-start fetch-end '(fetch nil) expr)
(setq expr (concat (substring expr 0 fetch-start)
(format "(routine_names('%s',fetch=%d))"
(substring expr fetch-start fetch-end)
;; which back-to-indentation (called via fill-newline ->
;; fill-indent-to-left-margin -> indent-line-to) thinks are real code
;; (bug#13179).
- (remove-text-properties (point-min) (point-max) '(syntax-table))
+ (remove-text-properties (point-min) (point-max) '(syntax-table nil))
(let ((fill-paragraph-function nil)
;; Adjust fill-column to allow space for the backslash.
(fill-column (- fill-column 1)))
;; No composition for you. Let's actually remove any
;; composition we may have added earlier and which is now
;; incorrect.
- (remove-text-properties start end '(composition
- prettify-symbols-start
- prettify-symbols-end))))
+ (remove-list-of-text-properties start end
+ '(composition
+ prettify-symbols-start
+ prettify-symbols-end))))
;; Return nil because we're not adding any face property.
nil)
(e (apply #'max e)))
(with-silent-modifications
(setq prettify-symbols--current-symbol-bounds (list s e))
- (remove-text-properties s e '(composition))))))
+ (remove-text-properties s e '(composition nil))))))
;;;###autoload
(define-minor-mode prettify-symbols-mode
"Syntactic keywords for Ruby mode. See `syntax-propertize-function'."
(let (case-fold-search)
(goto-char start)
- (remove-text-properties start end '(ruby-expansion-match-data))
+ (remove-text-properties start end '(ruby-expansion-match-data nil))
(ruby-syntax-propertize-heredoc end)
(ruby-syntax-enclosing-percent-literal end)
(funcall
(condition-case err
(with-silent-modifications
;; Remove properties even if don't find a pair.
- (remove-text-properties
+ (remove-list-of-text-properties
(previous-single-property-change (1+ start) 'latex-env-pair)
(next-single-property-change start 'latex-env-pair)
'(latex-env-pair))
(while (not (eobp))
(setq next (next-single-char-property-change (point) 'mouse-face))
(when (looking-at inactive-string)
- (remove-text-properties (point) next '(mouse-face))
+ (remove-text-properties (point) next '(mouse-face nil))
(add-text-properties (point) next '(face tmm-inactive)))
(goto-char next)))
(set-buffer-modified-p nil)))
(undo-boundary)
(put-text-property (point-min) (point-max) 'face 'bold)
(undo-boundary)
- (remove-text-properties (point-min) (point-max) '(face default))
+ (remove-list-of-text-properties (point-min) (point-max) '(face))
(undo-boundary)
(set-buffer-multibyte (not enable-multibyte-characters))
(undo-boundary)