Lines Matching defs:ed

82 #define putchar(ed,c)	ed_putchar(ed,c)
121 Edit_t *ed; /* pointer to edit data */
124 #define editb (*ep->ed)
180 Edit_t *ed = (Edit_t*)context;
185 register Emacs_t *ep = ed->e_emacs;
193 ep = ed->e_emacs = newof(0,Emacs_t,1,0);
194 ep->ed = ed;
208 ed_setup(ep->ed,fd,reedit);
238 if(ep->ed->e_multiline)
242 ed_flush(ep->ed);
262 ed_ungetchar(ep->ed,cntl('N'));
273 ed_ungetchar(ep->ed,cntl('Y'));
278 while ((c = ed_getchar(ep->ed,0)) != (-1))
322 c = ed_getchar(ep->ed,2);
334 ed_flush(ep->ed);
343 if(cur>0 && ep->ed->sh->nextprompt)
345 if(ep->ed->e_tabcount==0)
347 ep->ed->e_tabcount=1;
348 ed_ungetchar(ep->ed,ESC);
351 else if(ep->ed->e_tabcount==1)
353 ed_ungetchar(ep->ed,'=');
356 ep->ed->e_tabcount = 0;
363 ed_ungetchar(ep->ed,c); /* save character for next line */
437 ed_ungetchar(ep->ed,cntl('D'));
441 ed_ungetchar(ep->ed,usrerase);
492 c = ed_getchar(ep->ed,1);
560 ed_ungetchar(ep->ed,cntl('W'));
581 putchar(ep->ed,'\n');
584 c = ed_getchar(ep->ed,0);
587 ed_ungetchar(ep->ed,c);
595 putchar(ep->ed,'\n');
601 if(!ep->ed->e_nocrnl)
602 ed_crlf(ep->ed);
604 ep->ed->e_nocrnl = 0;
689 if(ed->e_nlist)
691 ed->e_nlist = 0;
692 stakset(ed->e_stkptr,ed->e_stkoff);
698 ed_crlf(ep->ed);
725 c = ed_getchar(ep->ed,0);
727 ed_ungetchar(ep->ed,c);
738 putchar(ep->ed,c);
748 while ((i=ed_getchar(ep->ed,0)),isdigit(i))
756 ed_ungetchar(ep->ed,i) ;
781 ed_ungetchar(ep->ed,cntl('Y'));
782 ed_ungetchar(ep->ed,cntl('W'));
826 ed_ungetchar(ep->ed,cntl('C'));
833 ed_ungetchar(ep->ed,cntl('D'));
863 ed_ungetchar(ep->ed,usrerase);
872 ed_ungetchar(ep->ed,cntl('N'));
891 ed_ungetchar(ep->ed,cntl('P'));
902 ed_ungetchar(ep->ed,'\n');
903 ed_ungetchar(ep->ed,(out[0]=='#')?cntl('D'):'#');
904 ed_ungetchar(ep->ed,cntl('A'));
942 if(ed_expand(ep->ed,(char*)out,&cur,&eol,i,count) < 0)
944 if(ep->ed->e_tabcount==1)
946 ep->ed->e_tabcount=2;
947 ed_ungetchar(ep->ed,cntl('\t'));
956 ep->ed->e_tabcount=0;
959 i=ed_getchar(ep->ed,0);
960 ed_ungetchar(ep->ed,i);
962 ed_ungetchar(ep->ed,ESC);
968 ep->ed->e_tabcount=0;
976 int c = ed_getchar(ep->ed,1);
1012 switch(i=ed_getchar(ep->ed,1))
1029 ed_ungetchar(ep->ed,'\r');
1030 ed_ungetchar(ep->ed,cntl('R'));
1035 ed_ungetchar(ep->ed,cntl('P'));
1038 ed_ungetchar(ep->ed,cntl('N'));
1041 ed_ungetchar(ep->ed,cntl('F'));
1044 ed_ungetchar(ep->ed,cntl('B'));
1047 ed_ungetchar(ep->ed,cntl('A'));
1050 ed_ungetchar(ep->ed,cntl('E'));
1053 ed_ungetchar(ep->ed,i);
1059 if(ed_macro(ep->ed,i))
1086 register int i = ed_getchar(ep->ed,0);
1102 if(ed_fulledit(ep->ed)==-1)
1109 ed_ungetchar(ep->ed,'\n');
1190 while ((i = ed_getchar(ep->ed,1))&&(i != '\r')&&(i != '\n'))
1215 i = ed_getchar(ep->ed,1);
1344 putchar(ep->ed,i);
1351 ncursor = nptr + ed_virt_to_phys(ep->ed,sptr,nptr,cur,0,0);
1416 if(ep->ed->e_multiline && option == REFRESH && ep->ed->e_nocrnl==0)
1417 ed_setcursor(ep->ed, ep->screen, ep->cursor-ep->screen, ep->ed->e_peol, -1);
1448 if(option==FINAL && ep->ed->e_multiline)
1463 newp = ed_setcursor(ep->ed, ep->screen, oldp, newp, 0);
1466 putchar(ep->ed,c);