Subject: Patch for Printer setup screen

From: Jos Vos <[email-masked]>
Date: Thu, 21 Oct 93 17:32:42 MET

In the file other.c and pine.c two functionally equivalent (static)
functions redraw_printer_select() exist.
The text included in other.c was more generic (it contained also references
to "lp" and "LPDEST", thus being more appropriate for System V systems).

So I made the following patch to make the text in pine.c equal to
that in other.c.

Please include this patch in the next official release.

------CUT HERE-----
*** pine/pine.c.orig	Tue Oct 12 16:48:52 1993
--- pine/pine.c	Wed Oct 20 10:26:50 1993
***************
*** 1430,1437 ****
              rc = set_variable(V_PERSONAL_PRINT_COMMAND, custom_command);
          }
          if(rc == 0)
!           q_status_message1(0,1,3, "Printer set to \"%s\"; configuration saved",
!                             ps_global->VAR_PRINTER);
      }
  }
  
--- 1430,1438 ----
              rc = set_variable(V_PERSONAL_PRINT_COMMAND, custom_command);
          }
          if(rc == 0)
!           q_status_message1(0, 1, 3,
! 				  "Printer set to \"%s\"; configuration saved",
! 				  ps_global->VAR_PRINTER);
      }
  }
  
***************
*** 1468,1475 ****
      l++;
      PutLine0(l++, 3, "2. Standard UNIX print command");
      PutLine0(l++,6,
!         "Using this option may require setting your \"PRINTER\" environment");
!     PutLine0(l++, 6,    "variable using the standard UNIX utilities.");
      PutLine0(l, 10 , "Command: ");
      if(ps_global->VAR_STANDARD_PRINTER != NULL &&
         strcmp(ps_global->VAR_PRINTER, ps_global->VAR_STANDARD_PRINTER) == 0) {
--- 1469,1477 ----
      l++;
      PutLine0(l++, 3, "2. Standard UNIX print command");
      PutLine0(l++,6,
!        "Using this option may require setting your \"PRINTER\" or \"LPDEST\"");
!     PutLine0(l++, 6,    
!        "environment variable using the standard UNIX utilities.");
      PutLine0(l, 10 , "Command: ");
      if(ps_global->VAR_STANDARD_PRINTER != NULL &&
         strcmp(ps_global->VAR_PRINTER, ps_global->VAR_STANDARD_PRINTER) == 0) {
***************
*** 1488,1498 ****
      PutLine0(l++, 6,
        "The text to be printed will be piped into the command given here. Some");
      PutLine0(l++, 6,
!       "examples are: \"prt\", \"lpr\", or \"enscript\". The command may be given");
      PutLine0(l++, 6,
        "with options, for example \"enscript -2 -r\" or \"lpr -Plpacc170\". The");
      PutLine0(l++, 6,
!       "commands and options on your system may be different these examples.");
      PutLine0(l, 10,  "Command: ");
      if(!matched_printer)  
        StartInverse();
--- 1490,1500 ----
      PutLine0(l++, 6,
        "The text to be printed will be piped into the command given here. Some");
      PutLine0(l++, 6,
!       "examples are: \"prt\", \"lpr\", \"lp\", or \"enscript\". The command may be given");
      PutLine0(l++, 6,
        "with options, for example \"enscript -2 -r\" or \"lpr -Plpacc170\". The");
      PutLine0(l++, 6,
!       "commands and options on your system may be different from these examples.");
      PutLine0(l, 10,  "Command: ");
      if(!matched_printer)  
        StartInverse();
------CUT HERE-----

-- 
--    Jos Vos <[email-masked]>   (UUCP: ...!{uunet,mcsun,sun4nl}!nlbull!jos)
--    Bull Netherlands, Professional Services, Amsterdam, The Netherlands