Commit 4080938
committed
org-agenda-prepare-buffers: Avoid repetitive updates of agenda menu
* lisp/org.el (org-agenda-file-menu-enabled): New variable controlling
whether `org-mode' updates the agenda file list in the menu.
(org-mode): Honor the new variable.
(org-agenda-prepare-buffers): Suppress `org-install-agenda-files-menu'
when opening the agenda files. Run it once at the end.
This commit reduces performance overheads when the number of agenda
files is large.1 parent d3a9c42 commit 4080938
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4713 | 4713 | | |
4714 | 4714 | | |
4715 | 4715 | | |
4716 | | - | |
| 4716 | + | |
| 4717 | + | |
4717 | 4718 | | |
4718 | 4719 | | |
4719 | 4720 | | |
| |||
15167 | 15168 | | |
15168 | 15169 | | |
15169 | 15170 | | |
15170 | | - | |
| 15171 | + | |
| 15172 | + | |
| 15173 | + | |
| 15174 | + | |
15171 | 15175 | | |
15172 | 15176 | | |
15173 | 15177 | | |
| |||
15210 | 15214 | | |
15211 | 15215 | | |
15212 | 15216 | | |
| 15217 | + | |
| 15218 | + | |
| 15219 | + | |
15213 | 15220 | | |
15214 | 15221 | | |
15215 | 15222 | | |
| |||
18000 | 18007 | | |
18001 | 18008 | | |
18002 | 18009 | | |
| 18010 | + | |
| 18011 | + | |
18003 | 18012 | | |
18004 | 18013 | | |
18005 | 18014 | | |
| |||
0 commit comments