From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id GDbGDg+yN2ZvEwAAqHPOHw:P1 (envelope-from ) for ; Sun, 05 May 2024 18:21:35 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GDbGDg+yN2ZvEwAAqHPOHw (envelope-from ) for ; Sun, 05 May 2024 18:21:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=kzWXWuwi; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1714926095; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=0DQb1m4ePo+b3HfztGV8OlWtrwDE3kCNpekfoBBfSeo=; b=DZIAmN5vh9IL+wOy2KKdqcu6Qngm8bAnjxpoCB53OrbuBC3K0pS+Q7eowl3TW+q2oMYI+S fUkWv/6quT9LxOA6MzZxqXRjSklr6tSreax4K8+xwlqSIimY2ATYUBjzqwJFHImS/Ka+YD yWukHsCWmX+Xhd49C3xDYAFCC/i12Sd7N0w1uLmjQXhabdy+NaTK7ZjEcDUonkyZaXMoj3 xXFg6EWy/4WaDScQG1OgT3qjJUxvkGUnooBaWJvUfdWHDTnN7H9HtKSqaKd5OLChsgXKCe Iwvny+ffwN0uJtG0RWNjQM0DGxl9zpmXWak0YR+sB9x0dX2zXuP1ixLl3uXpEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1714926095; a=rsa-sha256; cv=none; b=JVvarA4KcfVMwJDX1zFTuhRajwQdbHukV8IECjVMMRa2SZPO6cxGd0PCgd0Za9U64nGBu/ ARDAfpt/WE/x8ZFlV1AfdjsRuCPAh67K9E0zjRrTZpCsIA7vedfMYwNnA0zNyKB2y6RadX sSnIxmyP0oun7wOczNxszM/RnPtu9+IeBce5v+2JPsBV+kRukCM/J3ol66TSvSL7hKQHui wOPEgCgC30ogQgMWiUBFqUniclqf/i5lgqVZHSWOVn6W6PrHdhEIQB8TlqSJEQy1Elk07Y 1JWy1VAZ5Z1tLx20VWPEbwtd+cjprquVjZiCi+Px3Ro0r7pHUK9krCWduy3JsQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=kzWXWuwi; dmarc=pass (policy=none) header.from=gnu.org; 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" 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 0AF29771EC for ; Sun, 05 May 2024 18:21:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s3ec5-0001U9-Si; Sun, 05 May 2024 12:21:21 -0400 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 1s3ec4-0001U0-G6 for emacs-orgmode@gnu.org; Sun, 05 May 2024 12:21:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s3ec4-0007VX-6n for emacs-orgmode@gnu.org; Sun, 05 May 2024 12:21:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=0DQb1m4ePo+b3HfztGV8OlWtrwDE3kCNpekfoBBfSeo=; b=kzWXWuwiNXT3kw GBahh6zmSAB3ZNSFrtKuSTqq8JUQRvbdjYikiIXxE2QbxdlngI2cM5zVgBWBzjbv6NLN8Etg7Wm/X AHIGotwXBnZ6SIL/oYmv+2/dUSBcF3rU65EvyMrby9ezpyzFvvtrQv5ev/9Fyeqc/vZQJlA7s9fch koZmifzl5/dqpmaTJARre+io2RNr3cPglkCheU5DV95x42CZEkeyKvFlij/sD+rou4JfieXjvHGz7 47ySZqcJE3bLZ46LFxVuOYhWpDzJoOeCc0tW8ZSe33qjMq0uXpb6niCT9jNzFIKiCJEO700UX3fvO 71kf3RFWI6bTTgcLBlWg==; From: Bastien To: emacs-orgmode@gnu.org Subject: [PATCH] Remove warning about org-clock-save.el lacking lexical-binding directive Organization: GNU Date: Sun, 05 May 2024 18:19:46 +0200 Message-ID: <87seywqli5.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -8.15 X-Spam-Score: -8.15 X-Migadu-Queue-Id: 0AF29771EC X-Migadu-Scanner: mx11.migadu.com X-TUID: 4E/25VHqYhjz --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Recent versions of Emacs complain about org-clock-save.el: =E2=9B=94 Warning (lexical-binding): File /home/bzg/.emacs.d/org-clock-save.el lacks `lexical-binding' directive on its first line The attached patch should fix this. Is it okay to add it to bugfix? Thanks, --=20 Bastien --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=org-clock.el.patch diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 67feb6b35..806bc02de 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -3233,7 +3233,7 @@ The details of what will be saved are regulated by the variable org-clock-has-been-used (not (file-exists-p org-clock-persist-file)))) (with-temp-file org-clock-persist-file - (insert (format ";; %s - %s at %s\n" + (insert (format ";; %s - %s at %s -*- lexical-binding: t; -*-\n" (file-name-nondirectory org-clock-persist-file) (system-name) (format-time-string (org-time-stamp-format t)))) --=-=-=--