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

  1. Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!mips!sdd.hp.com!uakari.primate.wisc.edu!ames!agate!linus!linus.mitre.org!stillson
  2. From: stillson@mitre.org (Ken Stillson)
  3. Newsgroups: comp.mail.elm
  4. Subject: Re: how to use `ispell' with elm?
  5. Message-ID: <stillson.711827803@tsfsrv>
  6. Date: 22 Jul 92 17:56:43 GMT
  7. References: <1992Jul22.021346.14340@augean.eleceng.adelaide.edu.AU> <1992Jul22.125628.2576@cbfsb.cb.att.com>
  8. Sender: news@linus.mitre.org (News Service)
  9. Organization: The MITRE Corporation
  10. Lines: 68
  11. Nntp-Posting-Host: tsfsrv.mitre.org
  12.  
  13. Well, I've already posted this (unofficial, unsupported, un-everything
  14. else) patch several times, but what the heck-- here it comes again...
  15.  
  16. This will add the option I)spell on the "what now?" menu that comes up
  17. right after you've finished editing your message.  Use the unix patch
  18. command to effect the changes...
  19.  
  20. --- cut here ---
  21. *** mailmsg2.c.old    Thu Mar 19 11:04:06 1992
  22. --- mailmsg2.c    Thu Mar 19 11:04:42 1992
  23. ***************
  24. *** 114,119 ****
  25. --- 114,120 ----
  26.       char *whole_msg_file, *tempnam();
  27.       char filename[SLEN], fname[SLEN], copy_file[SLEN],
  28.                very_long_buffer[VERY_LONG_STRING], mailerflags[NLEN];
  29. +     char kens_temp[100];                     /* KEN */
  30.       int ch, sys_status;
  31.       register int retransmit = FALSE; 
  32.       int      already_has_text = FALSE;        /* we need an ADDRESS */
  33. ***************
  34. *** 236,241 ****
  35. --- 237,248 ----
  36.               }
  37.               break;
  38.   
  39. + /* added 11/14/91 by KEN Stillson, support for spelling check: */
  40. +           case 'i': need_redraw = 1;             /* KEN */
  41. +                 sprintf (kens_temp, "ispell %s", filename); /* KEN */
  42. +                 system_call (kens_temp, SH, TRUE, FALSE); /* KEN */
  43. +                 break;                                  /* KEN */
  44.             case 'c': if (name_copy_file(copy_file))
  45.                 need_redraw = 1;
  46.               break;
  47. ***************
  48. *** 570,576 ****
  49.   #ifdef ALLOW_SUBSHELL
  50.           strcat(buffer, "!)shell, ");
  51.   #endif
  52. !         strcat(buffer, "h)eaders, c)opy file, s)end, or f)orget.");
  53.           Centerline(LINES-1, buffer);
  54.         }
  55.   
  56. --- 577,583 ----
  57.   #ifdef ALLOW_SUBSHELL
  58.           strcat(buffer, "!)shell, ");
  59.   #endif
  60. !         strcat(buffer, "h)eaders, c)opy file, i)spell, s)end, f)orget.");    /* KEN */
  61.           Centerline(LINES-1, buffer);
  62.         }
  63.   
  64. ***************
  65. *** 649,654 ****
  66. --- 656,664 ----
  67.                       continue;
  68.                        }
  69.                break;
  70. +          case 'i'  : Write_to_screen("Ispell",0);         /* KEN */
  71. +                      break;
  72.   
  73.            case 'h'  : Write_to_screen("Headers",0);
  74.                break;
  75. --
  76.  
  77. panic: cannot read .signature file for stillson@mitre.org
  78. Abort, Retry, Ignore, Explode? 
  79.