Commit 2828d78
committed
Track loaded modules qualified for refresh eval
Track loaded modules that are qualified for a refresh evaluation.
Refresh evaluation is only useful if module defines volatile environment
changes: shell completion, alias or function.
An internal state, named refresh_qualified, marks loading modules
defining such volatile environment changes. Such modules are then added
to the __MODULES_LMREFRESH environment variable to track this property
once module is loaded.
Code is also added to remove module from __MODULES_LMREFRESH when it is
unloaded.1 parent 3b1faeb commit 2828d78
4 files changed
+39
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1612 | 1612 | | |
1613 | 1613 | | |
1614 | 1614 | | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
1615 | 1618 | | |
1616 | 1619 | | |
1617 | 1620 | | |
| |||
1631 | 1634 | | |
1632 | 1635 | | |
1633 | 1636 | | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
1634 | 1640 | | |
1635 | 1641 | | |
1636 | 1642 | | |
| |||
2677 | 2683 | | |
2678 | 2684 | | |
2679 | 2685 | | |
| 2686 | + | |
| 2687 | + | |
| 2688 | + | |
2680 | 2689 | | |
2681 | 2690 | | |
2682 | 2691 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
537 | 537 | | |
538 | 538 | | |
539 | 539 | | |
540 | | - | |
| 540 | + | |
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| |||
580 | 580 | | |
581 | 581 | | |
582 | 582 | | |
583 | | - | |
| 583 | + | |
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
439 | 439 | | |
440 | 440 | | |
441 | 441 | | |
| |||
1141 | 1141 | | |
1142 | 1142 | | |
1143 | 1143 | | |
1144 | | - | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
1145 | 1149 | | |
1146 | 1150 | | |
1147 | 1151 | | |
| |||
1154 | 1158 | | |
1155 | 1159 | | |
1156 | 1160 | | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
1157 | 1164 | | |
1158 | 1165 | | |
1159 | 1166 | | |
| |||
1167 | 1174 | | |
1168 | 1175 | | |
1169 | 1176 | | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
1170 | 1180 | | |
1171 | 1181 | | |
1172 | 1182 | | |
| |||
1991 | 2001 | | |
1992 | 2002 | | |
1993 | 2003 | | |
| 2004 | + | |
1994 | 2005 | | |
1995 | 2006 | | |
1996 | 2007 | | |
| |||
2060 | 2071 | | |
2061 | 2072 | | |
2062 | 2073 | | |
2063 | | - | |
| 2074 | + | |
| 2075 | + | |
2064 | 2076 | | |
2065 | 2077 | | |
2066 | 2078 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1151 | 1151 | | |
1152 | 1152 | | |
1153 | 1153 | | |
1154 | | - | |
| 1154 | + | |
| 1155 | + | |
1155 | 1156 | | |
1156 | 1157 | | |
1157 | 1158 | | |
| |||
1186 | 1187 | | |
1187 | 1188 | | |
1188 | 1189 | | |
| 1190 | + | |
| 1191 | + | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
1189 | 1195 | | |
1190 | 1196 | | |
1191 | 1197 | | |
| |||
1479 | 1485 | | |
1480 | 1486 | | |
1481 | 1487 | | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
1482 | 1493 | | |
1483 | 1494 | | |
1484 | 1495 | | |
| |||
0 commit comments