Variable: idlwave-completion-case

idlwave-completion-case is a customizable variable defined in idlwave.el.gz.

Value

((routine . upcase) (keyword . upcase) (class . preserve)
 (method . preserve))

Documentation

Association list setting the case of completed words.

This variable determines the case (UPPER/lower/Capitalized...) of words inserted into the buffer by completion. The preferred case can be specified separately for routine names, keywords, classes and methods. This alist should therefore have entries for routine (normal functions and procedures, i.e. non-methods), keyword, class, and method. Plausible values are

upcase upcase whole word, like BOX_CURSOR
downcase downcase whole word, like read_ppm
capitalize capitalize each part, like Widget_Control
preserve preserve case as is, like IDLgrView

The value can also be any Emacs Lisp function which transforms the case of characters in a string.

A value of preserve means that the case of the completed word is identical to the way it was written in the definition statement of the routine. This was implemented to allow for mixed-case completion, in particular of object classes and methods. If a completable word is defined in multiple locations, the meaning of preserve is not unique since the different definitions might be cased differently. Therefore IDLWAVE always takes the case of the
*first* definition it encounters during routine info collection and
uses the case derived from it consistently.

Note that a lowercase-only string in the buffer will always be completed in lower case (but see the variable idlwave-completion-force-default-case).

After changing this variable, you need to either restart Emacs or press C-u C-c C-i to update the internal lists.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/idlwave.el.gz
(defcustom idlwave-completion-case '((routine . upcase)
				     (keyword . upcase)
				     (class   . preserve)
				     (method  . preserve))
  "Association list setting the case of completed words.

This variable determines the case (UPPER/lower/Capitalized...) of
words inserted into the buffer by completion.  The preferred case can
be specified separately for routine names, keywords, classes and
methods.
This alist should therefore have entries for `routine' (normal
functions and procedures, i.e. non-methods), `keyword', `class', and
`method'.  Plausible values are

upcase      upcase whole word, like `BOX_CURSOR'
downcase    downcase whole word, like `read_ppm'
capitalize  capitalize each part, like `Widget_Control'
preserve    preserve case as is, like `IDLgrView'

The value can also be any Emacs Lisp function which transforms the
case of characters in a string.

A value of `preserve' means that the case of the completed word is
identical to the way it was written in the definition statement of the
routine.  This was implemented to allow for mixed-case completion, in
particular of object classes and methods.
If a completable word is defined in multiple locations, the meaning of
`preserve' is not unique since the different definitions might be
cased differently.  Therefore IDLWAVE always takes the case of the
*first* definition it encounters during routine info collection and
uses the case derived from it consistently.

Note that a lowercase-only string in the buffer will always be completed in
lower case (but see the variable `idlwave-completion-force-default-case').

After changing this variable, you need to either restart Emacs or press
`C-u C-c C-i' to update the internal lists."
  :group 'idlwave-completion
  :type `(repeat
	  (cons (symbol :tag "Derive completion case for")
		,idlwave-tmp)))