From e8f0e82c70d57653ddd1cb6fa89a710ab024ac7f Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Mon, 24 Oct 2022 21:40:02 -0700 Subject: doccheckin: defer to wrapper script w.r.t. whether Emacs is running --- bin/doccheckin | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/doccheckin b/bin/doccheckin index b7a1eb35..100e401e 100755 --- a/bin/doccheckin +++ b/bin/doccheckin @@ -7,10 +7,8 @@ cd ~/doc/ # also want to use it as the myrepos autoci action for ~/doc/. # If emacs is running, try to save all ~/doc/ buffers. -if [ -n "$LOGNAME" ] && pgrep -u "$LOGNAME" emacs >/dev/null; then - emacsclient --eval '(spw/save-my-doc-buffers)' - emacsclient -sgdbmacs --spw/no-start --eval '(spw/save-my-doc-buffers)' -fi +emacsclient --spw/no-start --eval '(spw/save-my-doc-buffers)' +emacsclient -sgdbmacs --spw/no-start --eval '(spw/save-my-doc-buffers)' # don't do anything if waiting on a manual merge; don't want just # blanket commit that merge -- cgit v1.2.3