aboutsummaryrefslogtreecommitdiffstats
path: root/exec/exec.c
diff options
context:
space:
mode:
authorStefan Monnier2025-04-12 22:43:20 -0400
committerStefan Monnier2025-04-12 22:43:20 -0400
commitbfeb755e03b5cab8f1f234b1a54afbcfd71f9eb2 (patch)
tree3ab1bb79cf5e0d120310fb120d7210b682b13de4 /exec/exec.c
parent3169aeb421d1f6b2851d0fd8cedb3594071b2cef (diff)
downloademacs-bfeb755e03b5cab8f1f234b1a54afbcfd71f9eb2.tar.gz
emacs-bfeb755e03b5cab8f1f234b1a54afbcfd71f9eb2.zip
savehist.el: Handle concurrent access to `savehist-file`
* lisp/savehist.el (savehist--manage-timer): Minor simplification. (savehist-coding-system): Use `utf-8-emacs-unix` so it works even if some history entries contain chars that aren't in Unicode. (savehist-loaded): Mark it obsolete. (savehist--file-sync-modtime): New var to replace it. (savehist--file-modtime, savehist--merge): New functions. (savehist--reload): New function, extracted from `savehist-mode`. Make it merge the old history and the newly loaded one. Remember the time of sync in `savehist--file-sync-modtime`. (savehist-mode): Use it. (savehist-save): Use it as well, and set `savehist--file-sync-modtime`. (savehist--last-autosave): New var. (savehist-autosave): Use it to skip saves when not enough time has passed.
Diffstat (limited to 'exec/exec.c')
0 files changed, 0 insertions, 0 deletions