Lines Matching defs:expansion
1584 * The following code implements `dynamic abbreviation' expansion a la
1661 char *expansion;
1702 if ((expansion = dabbrev_prev_word(xw, &cell, &ld)) == NULL) {
1711 if (!strncmp(dabbrev_hint, expansion, hint_len) && /* empty hint matches everything */
1712 strlen(expansion) > hint_len && /* trivial expansion disallowed */
1713 strcmp(expansion, lastexpansion)) /* different from previous */
1717 if (expansion != NULL) {
1720 size_t buf_cnt = del_cnt + strlen(expansion) - hint_len;
1723 /* delete previous expansion */
1726 expansion + hint_len,
1727 strlen(expansion) - hint_len);
1735 if ((lastexpansion = strdup(expansion)) != NULL) {