From dd6e57b1e55dcfe3fbca225d9c86c39fe6ebc609 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 3 Apr 2023 22:53:02 -0700 Subject: [PATCH] =?UTF-8?q?refactor:=20Simplify=20=E2=80=98p4-lowlevel-com?= =?UTF-8?q?mand-into-buffer=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p4-lowlevel.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/p4-lowlevel.el b/p4-lowlevel.el index 8d9fb3f..c1aeeb3 100644 --- a/p4-lowlevel.el +++ b/p4-lowlevel.el @@ -352,9 +352,8 @@ that buffer. Returns the buffer." (defun p4-lowlevel-command-messages () "Return t if ‘vc-command-messages’ bound and true. Fall back to the value of ‘p4-lowlevel-command-messages’." - (if (and (boundp 'vc-command-messages) vc-command-messages) - t - p4-lowlevel-command-messages)) + (or (bound-and-true-p vc-command-messages) + p4-lowlevel-command-messages)) (defun p4-lowlevel-canonicalize-revision (rev) "Turn REV into a form which can be concatenated to file names in P4 commands."