home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / mail / elm / 1974 < prev    next >
Encoding:
Text File  |  1992-07-23  |  3.8 KB  |  118 lines

  1. Path: sparky!uunet!munnari.oz.au!metro!grivel!alsvid!mark
  2. From: mark@alsvid.une.edu.au (Mark Garrett Internet: mark@arvak.une.edu.au Phone: +61 66 20 3859)
  3. Newsgroups: comp.mail.elm
  4. Subject: Re: how to use `ispell' with elm?
  5. Message-ID: <BruB7E.1u0@alsvid.une.edu.au>
  6. Date: 23 Jul 92 11:42:50 GMT
  7. References: <stillson.711827803@tsfsrv>
  8. Organization: University of New England - Northern Rivers (Lismore)
  9. Lines: 107
  10.  
  11. From article <stillson.711827803@tsfsrv>, by stillson@mitre.org (Ken Stillson):
  12. > Well, I've already posted this (unofficial, unsupported, un-everything
  13. > else) patch several times, but what the heck-- here it comes again...
  14. > This will add the option I)spell on the "what now?" menu that comes up
  15. > right after you've finished editing your message.  Use the unix patch
  16. > command to effect the changes...
  17.  
  18. Hi Ken and other netters,
  19.  
  20.     I have been using you ispell patch for quite a while (since
  21. you last posted it I guess). I found that I had to make changes as follows
  22.  
  23.   case 'i': need_redraw = 1;                         /* KEN */
  24. -                 { int oldraw = RawState();
  25. -                         sprintf (kens_temp, "ispell %s", filename); /* KEN */
  26. -                         system_call (kens_temp, SH, TRUE, FALSE); /* KEN */
  27. -                         if (oldraw == ON) {
  28. -                                 Raw(OFF);
  29. -                                 Raw(ON);
  30. -                         }
  31. -                 }
  32.  
  33. The new bit is the if (oldraw == ON). It seemed that it was loosing raw
  34. mode operation on our ultrix4.2
  35.  
  36. Here is a diff against the elm2.4d"@(#)$Id: mailmsg2.c,v 4.11 91/02/28 20:12:37 syd Exp
  37.  
  38. :------------------------------------------------------------------------------:
  39. *** mailmsg2.c    Sun Jul  5 17:43:27 1992
  40. --- mailmsg2.c-DIST    Sun Jul  5 16:33:02 1992
  41. ***************
  42. *** 125,131 ****
  43.       char *whole_msg_file, *tempnam();
  44.       char filename[SLEN], fname[SLEN], copy_file[SLEN],
  45.                very_long_buffer[VERY_LONG_STRING], mailerflags[NLEN];
  46. -     char kens_temp[100];                    /* KEN */
  47.       int ch, sys_status;
  48.       register int retransmit = FALSE; 
  49.       int      already_has_text = FALSE;        /* we need an ADDRESS */
  50. --- 125,130 ----
  51. ***************
  52. *** 248,267 ****
  53.               }
  54.               break;
  55.   
  56. - /* added 11/14/91 by KEN Stillson, support for spelling check: */
  57. -               case 'i': need_redraw = 1;                         /* KEN */
  58. -                 { int oldraw = RawState();
  59. -                         sprintf (kens_temp, "ispell %s", filename); /* KEN */
  60. -                         system_call (kens_temp, SH, TRUE, FALSE); /* KEN */
  61. -                         if (oldraw == ON) {
  62. -                                 Raw(OFF);
  63. -                                 Raw(ON);
  64. -                         }
  65. -                 }
  66. -                         break;                                   /* KEN */
  67.             case 'c': if (name_copy_file(copy_file))
  68.                 need_redraw = 1;
  69.               break;
  70. --- 247,252 ----
  71. ***************
  72. *** 596,604 ****
  73.   #ifdef ALLOW_SUBSHELL
  74.           strcat(buffer, "!)shell, ");
  75.   #endif
  76. !             strcat(buffer, "h)eaders, c)opy file, i)spell, s)end, f)orget.");
  77. ! /* KEN */
  78. !   
  79.           Centerline(LINES-1, buffer);
  80.         }
  81.   
  82. --- 581,587 ----
  83.   #ifdef ALLOW_SUBSHELL
  84.           strcat(buffer, "!)shell, ");
  85.   #endif
  86. !         strcat(buffer, "h)eaders, c)opy file, s)end, or f)orget.");
  87.           Centerline(LINES-1, buffer);
  88.         }
  89.   
  90. ***************
  91. *** 677,687 ****
  92.                       continue;
  93.                        }
  94.                break;
  95. -             case 'i'  : Write_to_screen("Ispell",0);            /* KEN */
  96. -                          break;
  97.   
  98.            case 'h'  : Write_to_screen("Headers",0);
  99.                break;
  100. --- 660,665 ----
  101.  
  102.  
  103.     Thanks for your patches, Ken
  104.         I have found them most useful
  105.  
  106.         Cheers
  107.             Mark :)
  108. -- 
  109. Mark Garrett    Internet:  mark@arvak.une.edu.au    Phone:     +61 66 20 3859
  110.    University of New England, Northern Rivers, Lismore NSW Australia.
  111.