From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IF5JJJKvAGT/5AAAbAwnHQ (envelope-from ) for ; Thu, 02 Mar 2023 15:15:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id WNMzI5KvAGSYXAEAG6o9tA (envelope-from ) for ; Thu, 02 Mar 2023 15:15:46 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (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 58CA2173EF for ; Thu, 2 Mar 2023 15:15:46 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=RLYiPeEA; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=me.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1677766546; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=7X4Uz5hpMl8y3pVPtbRKUEgPTNEvDPnxepkAn8S04pc=; b=L+aJsQGVH9O0a1+ohMMuJA2XRUCvT/aRGi+mbb0Awnv7AX2AmjKAGD7XI3PIHkD5gX8JOL w2NHC8b4ge0R2mO41O0Pkx5pcs6Av2Gk8QXaLjcGgQOk8K2lhqxkJIg3mlTK/eabCYmsGK f3mkKTnsEdFw22GZl6X04fwJ0Tm1zlQVyC2IGGTnK5L+qbpVPA4uEvpmPxyxD1Ydnehk5P MEvuHZ7OwO7M/tmoZTHPFKfCEIMVzp8VHTuwi4BohNm8IW8cVCuK6s6d+ejERjZc++AZ+c AdY62y1ge6FbbvASjC56N2BU33GQltEYbgatKkXRatLaLb5mk5Vczd0Hk9dJkg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=RLYiPeEA; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=me.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1677766546; a=rsa-sha256; cv=none; b=Qn1YxLrvJSxyN/rRnp7zBfU2mAja+e5CnNQpjw9HQxBL6Am3q2mDGvii2tg3L7ExN7EAJ3 TRkjVRGeQ/cOZk7YaBSmcQCzudnGjY0gmi27zffrGuKohPldYq5/WbdXezcthEJpm5V5qY dAHFuJOjKQSWYf24DBNmlPuT2gIS9SbWaHdDGBDhOOt946Qz6z+C3X+Z/b/J7vCa6jVowW U2lEtnCUCGBN8mQdwhgq5ir/v4WAQVcVHwkvqjO3tOhkYVUQq3ArkJWtHfkMJlLOUEFXNy 0rVij0E06noNTiscycfKenPBowHqRQfmi+n0jisfeY2EhBf85QDYHBGORsBdUg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXji2-00029x-5w; Thu, 02 Mar 2023 09:15:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXji0-000296-Mv for emacs-orgmode@gnu.org; Thu, 02 Mar 2023 09:15:00 -0500 Received: from pv50p00im-ztbu10021601.me.com ([17.58.6.57]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXjhy-0000wZ-Oc for emacs-orgmode@gnu.org; Thu, 02 Mar 2023 09:15:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1677766497; bh=7X4Uz5hpMl8y3pVPtbRKUEgPTNEvDPnxepkAn8S04pc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=RLYiPeEAvPqOenmWW8CaqetZv+Kio8QZQEqJu8Yrpu5oLh2a0GPOQxieM9OterdVX ZybA6h1woDHJONcO7K6PKspqH0eQw+pQH1cja/wUIepMEnqgLFa7L8LFPp+vIvI/Bv sMejEPvoXlyoPIRBLP5HbyddAJ4w2pQpsYkFMSzuwxL19oltTa5qIcqmNrCe0AZGel GlajdkF9DvcQtTWz2vGQEqubKrjzv4xrxSwONb/X0Yz06pToICBEDnem+35sfo/npF HQqYl7Xvv7ICVGJZQcOJfjDiNdV/IyHwl3ZjZqBk2fgM8dKBxwHBvAtC/ZRWzQHgtw +FcCn+tCsURVA== Received: from localhost.localdomain (pv50p00im-dlb-asmtp-mailmevip.me.com [17.56.9.10]) by pv50p00im-ztbu10021601.me.com (Postfix) with ESMTPSA id A42D680463; Thu, 2 Mar 2023 14:14:55 +0000 (UTC) From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Cc: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Subject: [PATCH] org-clock: Add a trailing space to the mode line string Date: Thu, 2 Mar 2023 15:14:43 +0100 Message-Id: <20230302141443.7842-1-salutis@me.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: HUZMIDOfQzDxIG5dKieh21ECSbnDYW-p X-Proofpoint-ORIG-GUID: HUZMIDOfQzDxIG5dKieh21ECSbnDYW-p X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.138,18.0.572,17.11.64.514.0000000_definitions?= =?UTF-8?Q?=3D2020-02-14=5F11:2020-02-14=5F02,2020-02-14=5F11,2022-02-23?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 phishscore=0 bulkscore=0 mlxlogscore=900 clxscore=1015 mlxscore=0 suspectscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2303020124 Received-SPF: pass client-ip=17.58.6.57; envelope-from=salutis@me.com; helo=pv50p00im-ztbu10021601.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: X-Migadu-Spam-Score: -10.30 X-Spam-Score: -10.30 X-Migadu-Scanner: scn0.migadu.com X-Migadu-Queue-Id: 58CA2173EF List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: 3xWJP5+9hFa/ * lisp/org-clock.el (org-clock-get-clock-string): End the mode line string with a space character to make it play well with other mode line strings which traditionally end with a space character. For reference, see the mode line string of the Display Time mode. --- lisp/org-clock.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index d46458536..0154c9a0c 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -728,9 +728,9 @@ If not, show simply the clocked time like 01:50." 'org-mode-line-clock-overrun 'org-mode-line-clock))) (effort-str (org-duration-from-minutes effort-in-minutes))) - (format (propertize " [%s/%s] (%s)" 'face 'org-mode-line-clock) + (format (propertize " [%s/%s] (%s) " 'face 'org-mode-line-clock) work-done-str effort-str org-clock-heading)) - (format (propertize " [%s] (%s)" 'face 'org-mode-line-clock) + (format (propertize " [%s] (%s) " 'face 'org-mode-line-clock) (org-duration-from-minutes clocked-time) org-clock-heading)))) -- 2.39.2