From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms12 with LMTPS id EPwaFXlowV9dagAAsNZ9tg (envelope-from ) for ; Fri, 27 Nov 2020 20:58:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 6OjcEHlowV8ZFAAAbx9fmQ (envelope-from ) for ; Fri, 27 Nov 2020 20:58:33 +0000 Received: from pb-smtp21.pobox.com (pb-smtp21.pobox.com [173.228.157.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BF61C9404CC for ; Fri, 27 Nov 2020 20:58:31 +0000 (UTC) Received: from pb-smtp21.pobox.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id F31EAF3B62; Fri, 27 Nov 2020 15:58:28 -0500 (EST) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=sasl; bh=hFgfjfF83puOXMt/v9hTEenxCnM=; b=u38M+Ts+6noKuL9BUU+R NPaFeiZ0A2rWaiXcTj/thp2ItorI44jyPD71SZbXGVsYLWDH9dx6z8hEgXr70fBS Xh/rPLO3r8BAycflS5jFeFKFw+l+wi1cvbqP23ycv/0/kCrIYbbGFsevxNshIMIq txCX3lL2G737xfa/umy8YRQ= Received: from pb-smtp21.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp21.pobox.com (Postfix) with ESMTP id E3941F3B61; Fri, 27 Nov 2020 15:58:28 -0500 (EST) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:subject:date:message-id:mime-version:content-transfer-encoding; s=mesmtp; bh=rEgL7MBo2Xnw6zsQi1QPOlwmmrcCkpnd7t/qCjE84T8=; b=Wfa4qfSsi0BS/Uq1Gfxqtk8moEzg0rmX9FOksYRmIosy5TIqQngQ671rRDxQNSyLvWvlcX8MwLx4Hsa2HZamgEQnGT6+schqT0jrmBklVXzW3/QjEmTUOiaVgecDd7J9b/iL/YS17C5RHtDsf2igfAf8ibYkz3vtvtwtoifJPnA= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp21.pobox.com (Postfix) with ESMTPSA id 5A75CF3B60; Fri, 27 Nov 2020 15:58:26 -0500 (EST) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: piem@inbox.kyleam.com Subject: [PATCH] process buffer: Add time to header Date: Fri, 27 Nov 2020 15:58:15 -0500 Message-Id: <20201127205815.17313-1-kyle@kyleam.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-Pobox-Relay-ID: 4B535046-30F3-11EB-954F-D609E328BF65-24757444!pb-smtp21.pobox.com Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 1.92 X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=u38M+Ts+; dkim=fail (body hash did not verify) header.d=kyleam.com header.s=mesmtp header.b=Wfa4qfSs; dmarc=none; spf=pass (aspmx1.migadu.com: domain of kyle@kyleam.com designates 173.228.157.53 as permitted sender) smtp.mailfrom=kyle@kyleam.com X-TUID: 5z4nOj+afQYd Recording the time makes it easier to digest and group the subprocess commands when inspecting the buffer later. --- piem.el | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/piem.el b/piem.el index 9db9a0c..addc27e 100644 --- a/piem.el +++ b/piem.el @@ -195,7 +195,8 @@ (defcustom piem-after-mail-injection-functions nil =20 (defvar piem-process-mode-font-lock-keywords `((,(rx line-start - ";;; " (or "process" "directory") ":" (one-or-more not-newline= ) + ";;; " (or "process" "directory" "time") + ":" (one-or-more not-newline) line-end) (0 font-lock-comment-face t)) (,(rx line-start @@ -231,10 +232,14 @@ (defun piem--process-go (dir program program-args f= n) (goto-char (point-max)) (display-buffer buffer) (let ((inhibit-read-only t)) - (insert (format "\n%s\n;;; process: %S\n;;; directory: %s\n" + (insert (format (concat "%s\n" + ";;; process: %S\n" + ";;; directory: %s\n" + ";;; time: %s\n") (char-to-string 12) ; form feed (cons program program-args) - default-directory)) + default-directory + (format-time-string "%FT%T%z"))) (funcall fn))))) =20 (defun piem-process-start (dir program &rest program-args) base-commit: c936086abd17576b708e5d654a24d78f9eaf9a4a --=20 2.29.2