Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • variable.c

    r66e409c rd544237  
    110110
    111111  OWLVAR_ENUM( "loggingdirection" /* %OwlVarStub */, OWL_LOGGING_DIRECTION_BOTH,
    112                "specifices which kind of messages should be logged",
     112               "specifies which kind of messages should be logged",
    113113               "Can be one of 'both', 'in', or 'out'.  If 'in' is\n"
    114114               "selected, only incoming messages are logged, if 'out'\n"
     
    138138                    "location of users in your .anyone file.  If a user is present\n"
    139139                    "but sent no login message, or a user is not present that sent no\n"
    140                     "logout message, a pseudo login or logout message wil be created\n",
     140                    "logout message, a pseudo login or logout message will be created\n",
    141141                    NULL, owl_variable_pseudologins_set, NULL),
    142142
     
    151151
    152152                 "If non empty, any messages matching the given filter will be logged.\n"
    153                  "This is a completely separate mechanisim from the other logging\n"
     153                 "This is a completely separate mechanism from the other logging\n"
    154154                 "variables like logging, classlogging, loglogins, loggingdirection,\n"
    155155                 "etc.  If you want this variable to control all logging, make sure\n"
     
    198198  OWLVAR_PATH( "newmsgproc" /* %OwlVarStub:newmsgproc */, NULL,
    199199               "name of a program to run when new messages are present",
    200                "The named program will be run when owl recevies new.\n"
     200               "The named program will be run when owl receives new\n"
    201201               "messages.  It will not be run again until the first\n"
    202202               "instance exits"),
     
    213213                 "Called every time you start a zephyrgram without an\n"
    214214                 "explicit zsig.  The default setting implements the policy\n"
    215                  "descripted in the documentation for the 'zsig' variable.\n"),
     215                 "described in the documentation for the 'zsig' variable.\n"),
    216216
    217217  OWLVAR_STRING( "zsig" /* %OwlVarStub */, "",
     
    280280
    281281  OWLVAR_INT(    "edit:maxfillcols" /* %OwlVarStub:edit_maxfillcols */, 70,
    282                  "maximum number of columns for M-q to fill text to",
    283                  "This specifies the maximum number of columns for M-q\n"
    284                  "to fill text to.  If set to 0, ther will be no maximum\n"
    285                  "limit.  In all cases, the current width of the screen\n"
    286                  "will also be taken into account.  It will be used instead\n"
    287                  "if it is narrower than the maximum, or if this\n"
    288                  "is set to 0.\n" ),
    289 
    290   OWLVAR_INT(    "edit:maxwrapcols" /* %OwlVarStub:edit_maxwrapcols */, 0,
     282                 "maximum number of columns for M-q (edit:fill-paragraph) to fill text to",
     283                 "This specifies the maximum number of columns for M-q to fill text\n"
     284                 "to.  If set to 0, M-q will wrap to the width of the window, and\n"
     285                 "values less than 0 disable M-q entirely.\n"),
     286
     287  OWLVAR_INT(    "edit:maxwrapcols" /* %OwlVarStub:edit_maxwrapcols */, 70,
    291288                 "maximum number of columns for line-wrapping",
    292                  "This specifies the maximum number of columns for\n"
    293                  "auto-line-wrapping.  If set to 0, ther will be no maximum\n"
    294                  "limit.  In all cases, the current width of the screen\n"
    295                  "will also be taken into account.  It will be used instead\n"
    296                  "if it is narrower than the maximum, or if this\n"
    297                  "is set to 0.\n\n"
    298                  "It is recommended that outgoing messages be no wider\n"
    299                  "than 60 columns, as a courtesy to recipients.\n"),
     289                 "This specifies the maximum number of columns for\n"
     290                 "auto-line-wrapping.  If set to 0, text will be wrapped at the\n"
     291                 "window width. Values less than 0 disable automatic wrapping.\n"
     292                 "\n"
     293                 "As a courtesy to recipients, it is recommended that outgoing\n"
     294                 "Zephyr messages be no wider than 70 columns.\n"),
    300295
    301296  OWLVAR_INT( "aim_ignorelogin_timer" /* %OwlVarStub */, 15,
    302297              "number of seconds after AIM login to ignore login messages",
    303298              "This specifies the number of seconds to wait after an\n"
    304               "AIM login before allowing the recipt of AIM login notifications.\n"
     299              "AIM login before allowing the receipt of AIM login notifications.\n"
    305300              "By default this is set to 15.  If you would like to view login\n"
    306301              "notifications of buddies as soon as you login, set it to 0 instead."),
     
    405400  int rv;
    406401  rv = owl_variable_int_set_default(v, newval);
    407   if (0 == rv) owl_function_resize();
     402  if (0 == rv) owl_global_set_relayout_pending(&g);
    408403  return(rv);
    409404}
     
    433428int owl_variable_pseudologins_set(owl_variable *v, const void *newval)
    434429{
     430  static owl_timer *timer = NULL;
    435431  if (newval) {
    436432    if (*(const int*)newval == 1) {
    437433      owl_function_zephyr_buddy_check(0);
     434      if (timer == NULL) {
     435        timer = owl_select_add_timer(180, 180, owl_zephyr_buddycheck_timer, NULL, NULL);
     436      }
     437    } else {
     438      if (timer != NULL) {
     439        owl_select_remove_timer(timer);
     440        timer = NULL;
     441      }
    438442    }
    439443  }
Note: See TracChangeset for help on using the changeset viewer.