Changeset d36f2cb for commands.c


Ignore:
Timestamp:
Jun 29, 2002, 7:42:37 PM (22 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
8ee73f8d
Parents:
7360fab
Message:
	Added variables edit:maxfillcols and edit:maxwrapcols which
	        will limit how wide editing paragraphs may get before
		they get wrapped.  Default is 70 columns each.
	Added smartzpunt command with key binding of "C-x k".
	        This starts a zpunt command filled in with
		the proposed zpunt.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    r7360fab rd36f2cb  
    148148              "getsubs retrieves the current subscriptions from the server\n"
    149149              "and displays them.\n"),
     150
     151  OWLCMD_ARGS("smartzpunt", owl_command_smartzpunt, OWL_CTX_INTERACTIVE,
     152              "creates a zpunt based on the current message",
     153              "smartnarrow [-i | --instance]",
     154              "Starts a zpunt command based on the current message's class\n"
     155              "(and instance if -i is specified).\n"),
    150156
    151157  OWLCMD_ARGS("zpunt", owl_command_zpunt, OWL_CTX_ANY,
     
    13861392}
    13871393
     1394char *owl_command_smartzpunt(int argc, char **argv, char *buff) {
     1395  if (argc == 1) {
     1396    owl_function_smartzpunt(0);
     1397  } else if (argc == 2 && (!strcmp(argv[1], "-i") || !strcmp(argv[1], "--instance"))) {
     1398    owl_function_smartzpunt(1);
     1399  } else {
     1400    owl_function_makemsg("Wrong number of arguments for %s", argv[0]);   
     1401  }
     1402  return NULL;
     1403}
     1404
     1405
    13881406
    13891407/*********************************************************************/
Note: See TracChangeset for help on using the changeset viewer.