Function: info-lookup-guess-custom-symbol
info-lookup-guess-custom-symbol is a byte-compiled function defined in
info-look.el.gz.
This function is obsolete since 28.1.
Signature
(info-lookup-guess-custom-symbol)
Documentation
Get symbol at point in custom buffers.
Source Code
;; Defined in /usr/src/emacs/lisp/info-look.el.gz
(defun info-lookup-guess-custom-symbol ()
"Get symbol at point in custom buffers."
(declare (obsolete nil "28.1"))
(condition-case nil
(save-excursion
(let ((case-fold-search t)
(ignored-chars "][()`'‘’,:.\" \t\n")
(significant-chars "^][()`'‘’,:.\" \t\n")
beg end)
(cond
((and (memq (get-char-property (point) 'face)
'(custom-variable-tag custom-variable-obsolete
custom-variable-tag-face))
(setq beg (previous-single-char-property-change
(point) 'face nil (line-beginning-position)))
(setq end (next-single-char-property-change
(point) 'face nil (line-end-position)))
(> end beg))
(subst-char-in-string
?\s ?\- (buffer-substring-no-properties beg end)))
((or (and (looking-at (concat "[" significant-chars "]"))
(save-excursion
(skip-chars-backward significant-chars)
(setq beg (point)))
(skip-chars-forward significant-chars)
(setq end (point))
(> end beg))
(and (looking-at "[ \t\n]")
(looking-back (concat "[" significant-chars "]")
(1- (point)))
(setq end (point))
(skip-chars-backward significant-chars)
(setq beg (point))
(> end beg))
(and (skip-chars-forward ignored-chars)
(setq beg (point))
(skip-chars-forward significant-chars)
(setq end (point))
(> end beg)))
(buffer-substring-no-properties beg end)))))
(error nil)))