summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-10-24 21:40:02 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-10-29 21:47:37 -0700
commite8f0e82c70d57653ddd1cb6fa89a710ab024ac7f (patch)
tree65a10c09f4855c1d762221af7d3b8259cee22424
parent08e1bb7470c661e53ec4e21098664d778f26dac8 (diff)
downloaddotfiles-e8f0e82c70d57653ddd1cb6fa89a710ab024ac7f.tar.gz
doccheckin: defer to wrapper script w.r.t. whether Emacs is running
-rwxr-xr-xbin/doccheckin6
1 files 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