Skip to content

Commit

Permalink
Fix documentation on tcl_wordchars/tcl_nonwordchars
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.nijtmans committed Oct 23, 2024
2 parents 378f3e8 + 22daa38 commit e5d1b8b
Showing 1 changed file with 8 additions and 14 deletions.
22 changes: 8 additions & 14 deletions doc/tclvars.n
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ The following elements of \fBenv\fR are special to Tcl:
\fBenv(HOME)\fR
.
This environment variable, if set, gives the location of the directory
considered to be the current user's home directory, and to which a
call of \fBcd\fR without arguments or with just
.QW ~
as an argument will change into. Most platforms set this correctly by
default; it does not normally need to be set by user code.
considered to be the current user's home directory. The value of this variable
is returned by the \fBfile home\fR command. Most platforms set this correctly by
default; it does not normally need to be set by user code. On Windows, if not
already set, it is set to the value of the \fBUSERPROFILE\fR environment
variable.
.TP
\fBenv(TCL_LIBRARY)\fR
.
Expand Down Expand Up @@ -458,22 +458,16 @@ This variable and functionality only exist if
The value of this variable is a regular expression that can be set to
control what are considered
.QW word
characters, for instances like
selecting a word by double-clicking in text in Tk. It is platform
dependent. On Windows, it defaults to \fB\eS\fR, meaning anything
but a Unicode space character. Otherwise it defaults to \fB\ew\fR,
which is any Unicode word character (number, letter, or underscore).
characters. It defaults to \fB\ew\fR, which is any Unicode
word character (number, letter, or underscore).
.\" VARIABLE: tcl_nonwordchars
.TP
\fBtcl_nonwordchars\fR
.
The value of this variable is a regular expression that can be set to
control what are considered
.QW non-word
characters, for instances like
selecting a word by double-clicking in text in Tk. It is platform
dependent. On Windows, it defaults to \fB\es\fR, meaning any Unicode space
character. Otherwise it defaults to \fB\eW\fR, which is anything but a
characters. It defaults to \fB\eW\fR, which is anything but a
Unicode word character (number, letter, or underscore).
.\" VARIABLE: tcl_version
.TP
Expand Down

0 comments on commit e5d1b8b

Please sign in to comment.