Tk Source Code

View Ticket
Login
Ticket UUID: 3564189
Title: configure gives inconsistent result for aliased option
Type: Bug Version: 8.5.12, 8.6.18, 9.0.5, 9.1b1
Submitter: wtschueller Created on: 2012-09-02 18:29:22
Subsystem: 23. Option Parsing Assigned To: hobbs
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2026-10-23 12:21:30
Resolution: Fixed Closed By: serhiy.storchaka
    Closed on: 2026-10-23 12:21:30
Description:
Example:
1 % info patchlevel
8.5.12
2 % canvas .c
.c
3 % join [.c configure] \n
-background background Background SystemButtonFace SystemButtonFace
-bd borderWidth
-bg background
-borderwidth borderWidth BorderWidth 0 0
...
% frame .f
.f
5 % join [.f configure] \n
-bd -borderwidth
-borderwidth borderWidth BorderWidth 0 0
...
-background background Background SystemButtonFace SystemButtonFace
-bg -background
...
Expected:
dbName without dash in all cases. This is what the manual says for Tk_ConfigureInfo.
User Comments: serhiy.storchaka added on 2026-10-23 12:21:30:

Merged into main [b954105728], 9.0 [ec72c82cc2] and 8.6 [b6833fc2a5].


serhiy.storchaka added on 2026-09-22 11:11:54:

The inconsistency is real, but it can be resolved the other way round: on branch oldconfig-synonym-info ([03d1a43c33], for [707778]) the canvas and the scrollbar, the only widgets which still use Tk_ConfigureInfo(), report the name of the option the synonym refers to ("-bd -borderwidth"), like all widgets which use the new option system and like the documentation of Tk_GetOptionInfo(). The documentation of TK_CONFIG_SYNONYM, which described the dbName field incorrectly, is corrected there as well.


wtschueller added on 2012-09-03 01:35:29:
comp.lang.tcl:
https://groups.google.com/d/msg/comp.lang.tcl/MRwQ5LKEH60/IvAA2si7FYwJ