Function: dictionary-pre-buffer
dictionary-pre-buffer is a byte-compiled function defined in
dictionary.el.gz.
Signature
(dictionary-pre-buffer)
Documentation
These commands are executed at the begin of a new buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/net/dictionary.el.gz
(defun dictionary-pre-buffer ()
"These commands are executed at the begin of a new buffer."
(setq buffer-read-only nil)
(erase-buffer)
(if dictionary-create-buttons
(progn
(insert-button "[Back]" :type 'dictionary-button
'callback 'dictionary-restore-state
'help-echo "Mouse-2 to go backwards in history")
(insert " ")
(insert-button "[Search definition]" :type 'dictionary-button
'callback 'dictionary-search
'help-echo "Mouse-2 to look up a new word")
(insert " ")
(insert-button "[Matching words]" :type 'dictionary-button
'callback 'dictionary-match-words
'help-echo "Mouse-2 to find matches for a pattern")
(insert " ")
(insert-button "[Quit]" :type 'dictionary-button
'callback 'dictionary-close
'help-echo "Mouse-2 to close this window")
(insert "\n ")
(insert-button "[Select dictionary]" :type 'dictionary-button
'callback 'dictionary-select-dictionary
'help-echo "Mouse-2 to select dictionary for future searches")
(insert " ")
(insert-button "[Select match strategy]" :type 'dictionary-button
'callback 'dictionary-select-strategy
'help-echo "Mouse-2 to select matching algorithm")
(insert "\n\n")))
(setq dictionary-marker (point-marker)))