GNU bug report logs -
#50195
[PATCH] Adding diary-offset, a diary-sexp offsetting another diary-sexp.
Previous Next
Reported by: Yuchen Pei <hi <at> ypei.me>
Date: Wed, 25 Aug 2021 05:57:01 UTC
Severity: wishlist
Tags: patch
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Yuchen Pei <hi <at> ypei.me> 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:
[0001-Test-warnings-in-diary-lib.patch (text/x-diff, inline)]
From b1f973c7c5ed6591bb7132b9254ee549f44162d2 Mon Sep 17 00:00:00 2001
From: Michael Heerdegen <michael_heerdegen <at> web.de>
Date: Thu, 26 Aug 2021 11:21:14 +0200
Subject: [PATCH] Test warnings in diary-lib
---
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
--- 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 type
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
--
2.30.2
[Message part 3 (text/plain, inline)]
Michael.
This bug report was last modified 3 years and 320 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.