about summary refs log tree commit diff
path: root/ci/pipelines
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-09-02T13·47+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-09-02T13·47+0100
commit71e57700d60a2573fca069dfa8fc90e928561dcf (patch)
treef7b180ef5c865dc07bc34efdcfa942af51e2ae01 /ci/pipelines
parent2200daeea403df0422420b07a1539b6bc610270d (diff)
Debug false-negative reports for init-emacs CI step
Problem: `(bufferp "*Warnings*")` always returns `nil` because it expects a
buffer object. Thankfully I wrote a function called `buffer-exists?`, which is a
more DWIM alternative of `bufferp`.

Hopefully now CI should fail!
Diffstat (limited to 'ci/pipelines')
-rw-r--r--ci/pipelines/script.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/ci/pipelines/script.el b/ci/pipelines/script.el
index c78c87f33232..da079b64ba5b 100644
--- a/ci/pipelines/script.el
+++ b/ci/pipelines/script.el
@@ -11,6 +11,7 @@
 (require 'prelude)
 (require 'f)
 (require 'dash)
+(require 'buffer)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;; Script
@@ -27,13 +28,13 @@
    (message "Encountered an error while attempting to load init.el: %s" err)
    (kill-emacs 1)))
 
-(when (bufferp "*Errors*")
+(when (buffer-exists? "*Errors*")
   (progn
     (with-current-buffer "*Errors*"
       (message "Encountered errors in *Errors* buffer: %s" (buffer-string)))
     (kill-emacs 1)))
 
-(when (bufferp "*Warnings*")
+(when (buffer-exists? "*Warnings*")
   (progn
     (with-current-buffer "*Warnings*"
       (message "Encountered warnings in *Warnings* buffer: %s" (buffer-string)))