X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=README;h=bae558f7e2e9283bf55694e1578fceadbf227c99;hb=96391d13f96d3b7f9c4d31b6e6372a29f992886e;hp=98aee151174ca7b0c125cfe0d8f69a8a7669b5ed;hpb=5834bcd7aebd13aa85167932053a535126de3fcb;p=nogit diff --git a/README b/README index 98aee15..bae558f 100644 --- a/README +++ b/README @@ -74,14 +74,16 @@ save it: ; and recurse. (defun nogit-sync-if-configured () (interactive) - (if (and - (buffer-file-name) - (file-exists-p (format "%s/../.nogit" (buffer-file-name))) - (not (boundp 'in-nogit-sync)) - ) - (let ((in-nogit-sync t)) - (message (substring (shell-command-to-string "nogit sync") 0 -1)) - (revert-buffer nil t) + (save-match-data + (if (and + (buffer-file-name) + (file-exists-p (format "%s/../.nogit" (buffer-file-name))) + (not (boundp 'in-nogit-sync)) + ) + (let ((in-nogit-sync t)) + (message (substring (shell-command-to-string "nogit sync") 0 -1)) + (revert-buffer nil t) + ) ) ) )