Function: eca-chat--drop-inherited-item-face

eca-chat--drop-inherited-item-face is a natively compiled function defined in eca-chat-context.el.

Signature

(eca-chat--drop-inherited-item-face)

Documentation

Drop the item face a char typed right after an item inherited.

Item properties don't stick to typed text, see eca-chat--setup-item-stickiness, but faces do, since the query typed after the context line @ takes its face.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-context.el
(defun eca-chat--drop-inherited-item-face ()
  "Drop the item face a char typed right after an item inherited.
Item properties don't stick to typed text, see
`eca-chat--setup-item-stickiness', but faces do, since the query
typed after the context line `@' takes its face."
  (let ((pos (1- (point))))
    (when (and (> pos (point-min))
               (get-text-property (1- pos) 'eca-chat-item-type)
               (not (get-text-property pos 'eca-chat-item-type)))
      (with-silent-modifications
        (remove-text-properties pos (point) '(font-lock-face nil))))))