text-properties-at
returns a list of various text properties.
I want to remove: display (image :type xpm :file /Users/HOME/.0.data/.0.emacs/.0.images/ezimage/box-plus.xpm :scale 1.1070588235294117 :ascent center)
. The image may change, so I'd like a general approach that targets the display
property and any value that may exist in relation thereto.
I thought I was dealing with a plist
and I read about remprop
, but it strips everything in the entire list -- i.e., it makes the whole list nil
.
(let ((props (text-properties-at 0 OBJECT)))
(setq props (remprop 'props 'display)))
remprop
deals with a symbol's property list - a concept very rarely used in Emacs Lisp (plausible uses for it are debugging of ELisp code, saving extra information with special variables).(setf (car ...) ...)
or similar.(remove-text-properties START END '(display nil) OBJECT)
work for you? though I am not sure about what you want.remove-text-properties
to remove any given properties altogether. If you want to modify one or more properties, seeset-text-properties
.org-plist-delete
to remove the pair of PROPERTY / VALUE from the PLIST. The inspiration for this project was to fix a bug inorg-agenda-highlight-todo
which takes text properties found at the beginning of a string and creates a new" "
space between theorg-mode
todo-keyword and the priority. I am using icons set withorg-agenda-category-icon-alist
and my particularorg-agenda-prefix-format
leaves the icon right whereorg-agenda-highlight-todo
can find it -- i.e., FIXME :)