\documentclass[]{article}
\usepackage{amsmath,graphicx,supertabular,hyperref,tabularx,ifthen}
\title{TIP \#149: Allow "enabled" as Synonym for "normal" in -state Option}
\date{August 13, 2003}
\author{Michael A. Cleverly}
\urlstyle{sf}
\setlength{\parskip}{1ex}
\setlength{\parindent}{0pt}
\def\tipversion$#1${\texttt{\$#1\$}}
\def\tiplangle#1{\ensuremath{<}}
\def\tiprangle#1{\ensuremath{>}}
\def\tipbar#1{\ensuremath{|}}
\def\tipmail#1#2{\(\langle\){\small\expandafter\url{#1@#2}}\(\rangle\)}
\ifx\pdfoutput\undefined
\newcommand{\tipimage}[2]{\typeout{Make sure you download #1.eps}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.eps}}{\includegraphics[width=0.8\textwidth]{#1.eps}}}
\newcommand{\tipxref}[1]{}
\newcommand{\tipxrefend}{}
\else
\newcommand{\tipimage}[2]{\typeout{Make sure you create #1.pdf}\ifthenelse{\lengthtest{0.8\textwidth>#2}\and\lengthtest{0pt<#2}}{\includegraphics{#1.pdf}}{\includegraphics[width=0.8\textwidth]{#1.pdf}}}
\pdfcatalog{/PageMode /UseOutlines}
\newcommand{\tipxref}[1]{\pdfannotlink attr {/C [0.5 0.5 1.0] /Border [0 0 1]} goto name {#1}}
\newcommand{\tipxrefend}{\pdfendlink}
\fi
\newenvironment{tipabstract}{\begin{abstract}}{\end{abstract}}
\begin{document}\maketitle
\begin{center}\begin{tabularx}{\linewidth}{|r@{: }X|}\hline
\textbf{TIP \#149}&\textbf{Allow "enabled" as Synonym for "normal" in -state Option}\\\hline
Author&

Michael A. Cleverly \tipmail{michael}{cleverly.com}
\\
Created&Wednesday, \(\text{13}^{\text{th}}\) August 2003\\
Type&Project\\
Tcl Version&\(8.5\)\\
State&Withdrawn\\
Vote&Pending\\
Version&\tipversion$Revision: 1.2 $\\
Post History&\\
\hline\end{tabularx}\end{center}
\thispagestyle{empty}\pagestyle{empty}
\begin{tipabstract}

This TIP allows Tk widgets which have a configurable \textit{-state} option to accept \textit{enabled} as a synonym for \textit{normal}.
\end{tipabstract}
\tableofcontents\setcounter{page}{0}\clearpage\pagestyle{plain}

\section{Rationale}

Tk widgets which have a configurable \textit{-state} option have (at a minimum) \textit{normal} and \textit{disabled} states. In common usage, however, the antonym of \textit{disabled} is \textit{enabled}, not \textit{normal}.

Even experienced Tcl/Tk programmers sometimes forget, though they usually won't come out and admit it explicitly. (Cf. \url{http://groups.google.com/groups?th=66e286d7efc3bbb6})

\section{Proposed Changes}

Modify all Tk widgets which have a configurable \textit{-state} option to accept \textit{enabled} as a synonym for \textit{normal}. The value returned by a widget's \textit{cget} method would continue to be \textit{normal}. The appropriate man pages and test suite will be updated to document and test the use of \textit{enabled} as a synonym.
\begingroup\small\begin{verbatim}
% $w configure -state enabled
% puts [$w cget -state]
normal
\end{verbatim}
\endgroup

\section{Implementation}

A reference implementation will be provided shortly.

\section{Copyright}

This document is placed in the public domain.

\section{Colophon}

\textit{TIP AutoGenerator --- written by Donal K. Fellows}
\end{document}
