Function: dictionary-mark-reference
dictionary-mark-reference is a byte-compiled function defined in
dictionary.el.gz.
Signature
(dictionary-mark-reference START END CALL DISPLAYED-WORD DICTIONARY)
Documentation
Format the area from START to END as link calling CALL.
The word is taken from the buffer, the DICTIONARY is given as argument.
Source Code
;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
(defun dictionary-mark-reference (start end call displayed-word dictionary)
"Format the area from START to END as link calling CALL.
The word is taken from the buffer, the DICTIONARY is given as argument."
(let ((word (buffer-substring-no-properties start end)))
(while (string-match "\n\\s-*" word)
(setq word (replace-match " " t t word)))
(while (string-match "[*\"]" word)
(setq word (replace-match "" t t word)))
(when dictionary-link-dictionary
(setq dictionary dictionary-link-dictionary))
(unless (equal word displayed-word)
(make-button start end :type 'dictionary-link
'callback call
'data (cons word dictionary)
'help-echo (concat "Press Mouse-2 to lookup \""
word "\" in \"" dictionary "\"")))))