summaryrefslogtreecommitdiff
path: root/bin/doccheckin
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2022-09-26 10:55:22 -0700
committerSean Whitton <spwhitton@spwhitton.name>2022-09-30 22:34:04 -0700
commitab1dbe94462d611ce482d3d52ddd4262bdd69228 (patch)
treefb4307f62870cb235ccea11e7efd7a08e491b099 /bin/doccheckin
parent124632f7aca4beaca62ab10c711be3b1c65b851d (diff)
downloaddotfiles-ab1dbe94462d611ce482d3d52ddd4262bdd69228.tar.gz
gdbmacs instance, s.t. can always run Emacs under gdb, and for Gnus
Diffstat (limited to 'bin/doccheckin')
-rwxr-xr-xbin/doccheckin6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/doccheckin b/bin/doccheckin
index 92afe12b..b7a1eb35 100755
--- a/bin/doccheckin
+++ b/bin/doccheckin
@@ -7,8 +7,10 @@ cd ~/doc/
# also want to use it as the myrepos autoci action for ~/doc/.
# If emacs is running, try to save all ~/doc/ buffers.
-[ -n "$LOGNAME" ] && pgrep -u "$LOGNAME" emacs >/dev/null \
- && emacsclient --eval '(spw/save-my-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
# don't do anything if waiting on a manual merge; don't want just
# blanket commit that merge