Bug 14372 - xkbcomp needs :all syntax for rules
xkbcomp needs :all syntax for rules
Status: NEW
Product: xorg
Classification: Unclassified
Component: Server/Input/XKB
unspecified
Other All
: medium enhancement
Assigned To: Daniel Stone
Xorg Project Team
:
Depends on:
Blocks: 14074
  Show dependency treegraph
 
Reported: 2008-02-04 13:45 UTC by Sergey V. Udaltsov
Modified: 2010-04-07 23:39 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey V. Udaltsov 2008-02-04 13:45:00 UTC
As it was discussed on IRC, the following functionality is needed in xkbcomp

If some XKB option is using some symbols in group 1, they should be propagated to all groups present in the configuration. Something like

! option = symbols
og:abc = symfile(v):all
// equal to og:abc = symfile(v):1 + symfile(v):2 + ... till the last group
Comment 1 Peter Hutterer 2010-04-05 14:48:13 UTC
Sergey - can you paste the IRC log here for a bit more context? I was on vacation last week and can't find the discussion. Thanks.
Comment 2 Ben Aceler 2010-04-06 10:02:46 UTC
Well, what exactly the log do you need? If you talking about a conversation between me and Sergey — it's in russian. If you talking about my speech — it is nothing more than a point to a bug.
Comment 3 Peter Hutterer 2010-04-06 21:39:31 UTC
hmm, a Russian log would be of limited use to me :)

just summarizing so I understand this correctly, you want something like this. Example is the terminate server option (though that one doesn't exactly work like below, but it'll do as an example):

right now, specifying -layout a,b -option o results in this:

    key <BKSP> {
        symbols[Group1]= [       BackSpace, Terminate_Server ]
        symbols[Group2]= [       BackSpace ]
    };

but you want that if option o is defined as :all, an endresult of:

    key <BKSP> {
        symbols[Group1]= [       BackSpace, Terminate_Server ]
        symbols[Group2]= [       BackSpace, Terminate_Server ]
    };

do I understand this correct?
Comment 4 Sergey V. Udaltsov 2010-04-07 14:44:26 UTC
Peter, yes you understand that correct. 
There is one important moment. The syntax :all should be used within rules rather that within setxkbmap command line. That way people who already use some "group 1" options would automatically have their issues fixed - group 1 propagated. By "some" I mean that existing options will be reviewed (by myself) and some rules are fixed to use :all syntax.
Does that make sense?
Comment 5 Peter Hutterer 2010-04-07 23:39:38 UTC
as discussed on IRC this is how I understood it anyway so ACK from me to the principle. I don't think I'll find the time in the new future to implement this, so please help me there if you need this feature sooner than later.