Function: field-at-pos

field-at-pos is a byte-compiled function defined in subr.el.gz.

Signature

(field-at-pos POS)

Documentation

Return the field at position POS, taking stickiness etc into account.

Source Code

;; Defined in /usr/src/emacs/lisp/subr.el.gz
(defun field-at-pos (pos)
  "Return the field at position POS, taking stickiness etc into account."
  (declare (important-return-value t))
  (let ((raw-field (get-char-property (field-beginning pos) 'field)))
    (if (eq raw-field 'boundary)
	(get-char-property (1- (field-end pos)) 'field)
      raw-field)))