From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6OOfAi94DGe3dgAAqHPOHw:P1 (envelope-from ) for ; Mon, 14 Oct 2024 01:47:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6OOfAi94DGe3dgAAqHPOHw (envelope-from ) for ; Mon, 14 Oct 2024 03:47:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Seal: i=1; s=key1; d=yhetil.org; t=1728870446; a=rsa-sha256; cv=none; b=PcEGz8NGQFPiaLzwgSeFCBJD0ElcYgwC9P5yMDoVDh3ljyi6utot+DZgULuRNZbJwMlh8N GARrwyMxk5P5mtAmvwvt9lGYu9b5T+zu7jS2TOwnqM7vNNmYzC43HVBEeORbBny2Umc4B3 28puIbxncs8FPSI5nvbcw3L1Pzp4U/i+UAZxbY345ixIMBSvLSmBI/KLBar1vP/GA7GxCy GH1inDAdy0bTyRqFsyYzwvTn1NOC5HTb8y6NBGME7UAUI/7Z3dftKviepMNu0ve++03zX9 uknow4X1PsSkD0RT6wzTS95jK1lRQT/BPDga2pbSXYdDZaGRCH37Mxn4S8AsVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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=1728870446; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=zymN38bFZ+HDcHeDTJSF8Qch9lzd7OGVzNsnkT4SQDk=; b=SE1K7cuPYyDH9cjfLgMEP610pLqnSpCdPy1f82vI2qxkO7B7cVWMSP4IMzGVb2XTLC5mkr sCRs451qGLSd73xJd7BCHvBRq4zj+N3n3U7PwYNU0e2vLyhXB5j+oVOnmbh49leZq6gaeK 8JZ3Nr6FoN856+z1pOCGmoLzpjj3POnHZygskeQ1IGbRNsFFvVqqeQgIMFlI/pZBXjvPb5 QqnQmaZPvJS0rf40x/LaH9K8XUAZ7Acpwb9AElHSkQI+eJQwmGQbLTHEGF2HpuQFRHIO2B lq048OWawLRoB1v2LREBXlL1ozp5rJuI37fu/ltU0LHUJiveZ74QKz4aB0F70Q== 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 90A907AA4A for ; Mon, 14 Oct 2024 03:47:26 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t0AAZ-00047Z-Rq; Sun, 13 Oct 2024 21:46:47 -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 1t0AAY-00047P-6a for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 21:46:46 -0400 Received: from mail-qv1-f42.google.com ([209.85.219.42]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t0AAW-0003ct-0D for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 21:46:45 -0400 Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-6cbf0e6414aso11427176d6.1 for ; Sun, 13 Oct 2024 18:46:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728870401; x=1729475201; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=zymN38bFZ+HDcHeDTJSF8Qch9lzd7OGVzNsnkT4SQDk=; b=PSHrt6WBczEd9GxPk54votQXm9zvUiu2UYWyuLMb9L6rIHUqBxdjplJXb6IpqcFlp1 gk3dAfGnowUFN4tCqmpbOY1f/F7kG2Yl5XMUVi2anT3qPuCIxtugNe7NoJhbuCP8Kh+b 7NaJlQSxbycbo0Fnt7rFeZ2xrnznxCqqh/WH+6bTP5zmjmZIsLanwzb2xw5/8Lr0cqw/ hoyH6qottTLXB5+atG7uXIAyakflzGXwQzhXgsXnqO9+CGIHuI9Ol8wDBYZ6ux3xhFr9 fyOwBaYnay4v8BpL3MyQJCBsQICL5ZT7Me541bS9RqCl4yML1sVlz6MVdOyII03qfBHO 9RGA== X-Gm-Message-State: AOJu0Yyk6DQl5Gio44SAE30M3wNN4yVWTxr4a/FcZPkkdNCRcZPsdTDq 1Mcm5YJKBNb+6fAcH51UqKbW6FV0NrxU12MTcgpuAZhopceA453QnpcJxXzzrD44GOZ+J4Izq1k Pdvk9DgOmJoZ8FlHxH9XCXgAP1cgAeFJbpA3tpRwsTgAgvEaAG8yL X-Google-Smtp-Source: AGHT+IEM89/XpnfCMgl7aoT76SNciXXVWwHYefTjPhDhEO2wfkO/7fr7/jH/gZvmYGCx1hzek+6Q4Qq6Jhnu3ZCvbbE= X-Received: by 2002:a05:6214:5b08:b0:6cb:e947:2d12 with SMTP id 6a1803df08f44-6cbeffff575mr139787686d6.25.1728870401146; Sun, 13 Oct 2024 18:46:41 -0700 (PDT) MIME-Version: 1.0 References: <878qutsd1v.fsf@localhost> In-Reply-To: <878qutsd1v.fsf@localhost> From: =?UTF-8?Q?Alexander_Lazarevi=C4=87?= Date: Mon, 14 Oct 2024 01:46:30 +0000 Message-ID: Subject: Re: [BUG] BBDB anniversary entries with a format-string produce error [9.6.15 (release_9.6.15 @ /usr/share/emacs/29.4/lisp/org/)] To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000001fb0920624660213" Received-SPF: pass client-ip=209.85.219.42; envelope-from=alexander@lazarevic.de; helo=mail-qv1-f42.google.com X-Spam_score_int: -28 X-Spam_score: -2.9 X-Spam_bar: -- X-Spam_report: (-2.9 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.255, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=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: 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-Migadu-Spam-Score: -3.63 X-Spam-Score: -3.63 X-Migadu-Queue-Id: 90A907AA4A X-Migadu-Scanner: mx10.migadu.com X-TUID: fAfLvofg+Ef7 --0000000000001fb0920624660213 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I tried the following but no stack-trace is produced: rm -rf .emacs .emacs.d cat > /tmp/agenda.org << orgfile * Anniversaries :PROPERTIES: #+CATEGORY: Ann :END: %%(org-bbdb-anniversaries-future 3) orgfile emacs package-install bbdb bbdb-create Just some name (i)nsert a field "anniversary" for that record with content "1998-mm-dd something" and month/day of next day (s)ave the bbdb file find-file /tmp/agenda.org org-agenda-file-to-front customize-option calendar-debug-sexp toggle on org-agenda Message: Args out of range: 52, 55 Agenda looks like this: Week-agenda (W42): Monday 14 October 2024 W42 Ann: somethi -- tomorrowng On Sat, 12 Oct 2024 at 12:45, Ihor Radchenko wrote: > Alexander Lazarevi=C4=87 writes: > > > In one agenda (personal.org) I have the following entry: > > > > * Anniversaries > > :PROPERTIES: > > #+CATEGORY: Ann > > :END: > > %%(org-bbdb-anniversaries-future 3) > > > > This works for BBDB entries that have an anniversary like "1973-06-22" > > or "2021-04-91 wedding", but it fails for something like "1998-03-12 %s > > created bbdb-anniv.el %d years ago" (from the examples in ol-bbdb.el). > > > > The error message is: > > > > Bad sexp at line 5 in /home/laza/exobrain/org/personal/personal.org: > (let > > ((entry ) (date '(10 8 2024))) (org-bbdb-anniversaries-future 3)) > > Please set `calendar-debug-sexp' to t and try to build agenda again. > Emacs will then produce an actual backtrace, detailing where the error > is. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --0000000000001fb0920624660213 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I tried the following but no stack-trace is produced:

<= div class=3D"gmail_default" style=3D"font-family:tahoma,sans-serif">rm -rf = .emacs .emacs.d
cat > /tmp/agenda.org << orgfile
* Anniversaries
:PROPERTIES:
#+CATEGORY: Ann:END:
%%(org-bbdb-anniversaries-future 3)
orgfile

emacs
<= br>package-install bbdb
bbdb-create
Just some name
(i)nsert a fiel= d "anniversary" for that record
with content "1998-mm-dd = something" and month/day of next day
(s)ave the bbdb file
find-f= ile /tmp/
agenda.org
org-agenda-file-to= -front
customize-option calendar-debug-sexp toggle on
org-agenda
<= br>Message: Args out of range: 52, 55

Agenda looks like this:
Week-agenda (W42):
Monday =C2=A0 =C2=A0 14 October 2024 W42
=C2=A0 A= nn: =C2=A0 =C2=A0 =C2=A0 =C2=A0somethi -- tomorrowng



On Sa= t, 12 Oct 2024 at 12:45, Ihor Radchenko <yantar92@posteo.net> wrote:
Alexander Lazarevi=C4=87 <laza@e11bits.com> writes:

> In one agenda (personal.org) I have the following entry:
>
> * Anniversaries
> :PROPERTIES:
> #+CATEGORY: Ann
> :END:
> %%(org-bbdb-anniversaries-future 3)
>
> This works for BBDB entries that have an anniversary like "1973-0= 6-22"
> or "2021-04-91 wedding", but it fails for something like &qu= ot;1998-03-12 %s
> created bbdb-anniv.el %d years ago" (from the examples in ol-bbdb= .el).
>
> The error message is:
>
> Bad sexp at line 5 in /home/laza/exobrain/org/personal/personal.org: (le= t
> ((entry ) (date '(10 8 2024))) (org-bbdb-anniversaries-future 3))<= br>
Please set `calendar-debug-sexp' to t and try to build agenda again. Emacs will then produce an actual backtrace, detailing where the error
is.

--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,=
or support my work at <https://liberapay.com/yantar92>
--0000000000001fb0920624660213--