#55 Plain mode menu items

open
nobody
None
5
2002-05-23
2002-05-23
Tom Heathcote
No

This patch allows you to to define Shell and Macro
menu items that will only appear in Plain mode.

You just add "@Plain" to the end of the menu item
name just like you would for other language modes.

Discussion

  • Tom Heathcote
    Tom Heathcote
    2002-05-23

    Logged In: YES
    user_id=523342

    This patch is for 5.3

     
  • Tom Heathcote
    Tom Heathcote
    2002-05-23

    • labels: 376535 -->
     
  • Tom Heathcote
    Tom Heathcote
    2002-05-23

     
    Attachments
  • Tom Heathcote
    Tom Heathcote
    2003-12-11

    Logged In: YES
    user_id=523342

    This patch applies cleanly to the 5.4 source.

     
  • Logged In: NO

    For 5.5, this might look as follows:

    *** source/userCmds.c.ORI Thu Sep 2 10:50:38 2004
    --- source/userCmds.c Wed Oct 20 09:37:43 2004
    ***************
    *** 3198,3204 ****
    {
    char *atPtr, *firstAtPtr, *endPtr;
    char c;
    - int languageMode;
    int langModes[MAX_LANGUAGE_MODES];
    int nbrLM = 0;
    int size;
    --- 3198,3203 ----
    ***************
    *** 3224,3235 ****
    "@" is unknown (i.e. not defined) */
    c = *endPtr;
    *endPtr = '\0';
    ! languageMode = FindLanguageMode(atPtr+1);
    ! if (languageMode == PLAIN_LANGUAGE_MODE) {
    ! langModes[nbrLM] = UNKNOWN_LANGUAGE_MODE;
    ! } else {
    ! langModes[nbrLM] = languageMode;
    ! }
    nbrLM ++;
    *endPtr = c;

    --- 3223,3229 ----
    "@" is unknown (i.e. not defined) */
    c = *endPtr;
    *endPtr = '\0';
    ! langModes[nbrLM] = FindLanguageMode(atPtr+1);
    nbrLM ++;
    *endPtr = c;