From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#50195: [PATCH] Adding diary-offset, a diary-sexp offsetting another diary-sexp. Date: Thu, 26 Aug 2021 11:26:03 +0200 Message-ID: <87wno8iml0.fsf@web.de> References: <87fsuychjr.fsf@ypei.me> <83mtp5vizs.fsf@gnu.org> <875yvtk9ud.fsf@gnus.org> <83fsuxvhih.fsf@gnu.org> <878s0p4kir.fsf@web.de> <835yvtv778.fsf@gnu.org> <87v93t3355.fsf@web.de> <87k0k8bsuw.fsf@ypei.me> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23275"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: larsi@gnus.org, 50195@debbugs.gnu.org To: Yuchen Pei Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 26 11:27:13 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mJBfE-0005pd-JC for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Aug 2021 11:27:12 +0200 Original-Received: from localhost ([::1]:55008 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mJBfD-0007DT-L7 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Aug 2021 05:27:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mJBf4-0007DC-SO for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 05:27:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36849) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mJBf4-0005Bp-CU for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 05:27:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mJBf4-0006my-53 for bug-gnu-emacs@gnu.org; Thu, 26 Aug 2021 05:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 26 Aug 2021 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50195 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 50195-submit@debbugs.gnu.org id=B50195.162996998326045 (code B ref 50195); Thu, 26 Aug 2021 09:27:02 +0000 Original-Received: (at 50195) by debbugs.gnu.org; 26 Aug 2021 09:26:23 +0000 Original-Received: from localhost ([127.0.0.1]:48395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJBeN-0006lx-Id for submit@debbugs.gnu.org; Thu, 26 Aug 2021 05:26:23 -0400 Original-Received: from mout.web.de ([212.227.15.3]:38975) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mJBeI-0006ld-FY for 50195@debbugs.gnu.org; Thu, 26 Aug 2021 05:26:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1629969965; bh=lJoq+raVn0wmKtQ6jGm3zc/GkAeo6uO4WfcJ+Is54Co=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=j/DxRFvFNj/kbhBNTJ4xDcWDWkFNG/xRbR+4akqcIi5FV66B8NURkRALC949Pac21 b83mExXUdcwl2JMe0omR2iCkLttZDLcPVDr++AJLUwJ3NZ3bzi8ssgVXd4J9cH88zP qlfs3LZwb5b9EWC4aqB5kyXKb/OP04Y58XKixKbM= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([88.66.201.155]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0Lh90R-1mmD4E19RH-00oYOS; Thu, 26 Aug 2021 11:26:05 +0200 In-Reply-To: <87k0k8bsuw.fsf@ypei.me> (Yuchen Pei's message of "Thu, 26 Aug 2021 16:52:23 +1000") X-Provags-ID: V03:K1:P07zHTZzPLgSahycXBNjZyyx1PQxbW/KKw2xm3k269X7Boo/WQW 4tdhzxtAOserJcX3LymKOub1iKAZgzrwDWwUlBLiFqho3FWHGnDM0WPfdvC3jARjLazZhxa ovGJyOlevUzFjaO4N9n229C/2Y0E1M/8zNa0xpSIl35QnDJPmuPPutk9rGoTx1ba4wG6Rlb Kf5YwUijtZRm8SBIhuyuA== X-UI-Out-Filterresults: notjunk:1;V03:K0:utKtpcQBzF8=:ZrYYtcriKDzD0M6osw+y79 6sGIOcXKbxGILqKPabs5XT1acbe2HQq0AK8axiuxg7tFFfn3k+xB6C1znd8r6rD7YD4yAyMcg IhcmOshtQRnhLyavTcTufaoG25EZtgHMlC9xYsWR64xH+oHY5aTw441sFnLpHk4hzyBgO52St NuV4kmrUX8ppZR28jwWAtz4+zAYWi+Bg1C4mMoNBQDwdTcoZnG3F8miKiuRr5ed0x6LdZKLDj 0GyMMhrS/lvzrY/7vzOiLnhCSFh7gmBv+66OuNIY+h+II3h/f1H92AamPA3ZIGHGxOfFTDwI1 gJBmzAmEBkaEBvF4AuyYUp++u81bPONPyEm3C7pHCzCIZwtWiWEyqHCi0DyjZVyPqx2/paeon HTixFiPbeQmd2AyBm5BF3aaTlnZXvqfR27KDx/WfSVaR5OcKc6T+19n8dGZB+dxsZ57ETk82c CzNIWgX8GmDL+ynfVWk4Dx3tBgoD4YIp/3BXmUUe6LEwWs3kyNgU+2Xb9Da+xdQp8zZag51fZ kotroZPmctcEpAinePThHeXlxwjhWZq80DVzeZYPQFdOGxm/dXfvMGrWs9nMNoeLUXJgvl9If 9/SBUUhwrg5Fc9Z8IX+GsmI0+BUzcXH/SUOlDNPisfD6gi5NjqDoyVKQhlZN+YodfVTzXQAkn JUfkZ7x02l2Nd9qgjfIU+u0ddXxpoBsh090hunnlkvtx2MbdheMVn6iy3645C9Ru6t7/MAtoC ZkfaHv6AajRaSwSFMNwBfPpqqXpsecIkwVS9A1zjYSkZlsV/sP05Tkg+xkMeV7Uf2/JYkFio X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:212698 Archived-At: --=-=-= Content-Type: text/plain Yuchen Pei writes: > > I just removed lexical-binding from the header and commented the > > `with-no-warnings' call in `diary-list-entries-1'. > > Which command did you use to compile? I compiled with just `make` and > there was no warning. B from dired. But I get these warnings also with "make", just tried now (using master). To avoid misunderstandings, this is what I tried: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Test-warnings-in-diary-lib.patch Content-Transfer-Encoding: quoted-printable =46rom b1f973c7c5ed6591bb7132b9254ee549f44162d2 Mon Sep 17 00:00:00 2001 From: Michael Heerdegen Date: Thu, 26 Aug 2021 11:21:14 +0200 Subject: [PATCH] Test warnings in diary-lib =2D-- lisp/calendar/diary-lib.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el index f57fe26058..8044768476 100644 =2D-- a/lisp/calendar/diary-lib.el +++ b/lisp/calendar/diary-lib.el @@ -1,4 +1,4 @@ -;;; diary-lib.el --- diary functions -*- lexical-binding:t -*- +;;; diary-lib.el --- diary functions ;; Copyright (C) 1989-1990, 1992-1995, 2001-2021 Free Software ;; Foundation, Inc. @@ -726,7 +726,6 @@ diary-list-entries-1 MONTHS is an array of month names. SYMBOL marks diary entries of the typ= e in question. ABSFUNC is a function that converts absolute dates to dates of the appropriate type." - (with-no-warnings (defvar number) (defvar list-only)) (let ((gdate original-date)) (dotimes (_ number) (diary-list-entries-2 =2D- 2.30.2 --=-=-= Content-Type: text/plain Michael. --=-=-=--