Function: allout-setup-text-properties
allout-setup-text-properties is a byte-compiled function defined in
allout-widgets.el.gz.
Signature
(allout-setup-text-properties)
Documentation
Configure category and literal text properties.
Source Code
;; Defined in /usr/src/emacs/lisp/allout-widgets.el.gz
;;;_ > allout-setup-text-properties ()
(defun allout-setup-text-properties ()
"Configure category and literal text properties."
;; XXX body - before-change, entry, keymap
(setplist 'allout-guides-span-category nil)
(put 'allout-guides-span-category
'modification-hooks '(allout-graphics-modification-handler))
(put 'allout-guides-span-category 'local-map allout-item-icon-keymap)
(put 'allout-guides-span-category 'mouse-face widget-button-face)
(put 'allout-guides-span-category 'field 'structure)
;; (put 'allout-guides-span-category 'face 'widget-button)
(setplist 'allout-icon-span-category
(allout-widgets-copy-list (symbol-plist
'allout-guides-span-category)))
(put 'allout-icon-span-category 'field 'structure)
;; XXX for body text we're instead going to use the buffer-wide
;; resources, like before/after-change-functions hooks and the
;; buffer's key map. that way we won't have to do painful provisions
;; to fixup things after edits, catch outlier interstitial
;; characters, like newline and empty lines after hidden subitems,
;; etc.
(setplist 'allout-body-span-category nil)
(put 'allout-body-span-category 'evaporate t)
(put 'allout-body-span-category 'local-map allout-item-body-keymap)
;;(put 'allout-body-span-category
;; 'modification-hooks '(allout-body-modification-handler))
;;(put 'allout-body-span-category 'field 'body)
(setplist 'allout-cue-span-category nil)
(put 'allout-cue-span-category 'evaporate t)
(put 'allout-cue-span-category
'modification-hooks '(allout-graphics-modification-handler))
(put 'allout-cue-span-category 'local-map allout-cue-span-keymap)
(put 'allout-cue-span-category 'mouse-face widget-button-face)
(put 'allout-cue-span-category 'pointer 'arrow)
(put 'allout-cue-span-category 'field 'structure)
(setplist 'allout-trailing-category nil)
(put 'allout-trailing-category 'evaporate t)
(put 'allout-trailing-category 'local-map allout-item-body-keymap)
(setplist 'allout-escapes-category nil)
(put 'allout-escapes-category 'invisible 'allout-escapes)
(put 'allout-escapes-category 'evaporate t))