GNU bug report logs - #63835
29.0.60; gnus-icalendar--update-org-event fails if org buffer narrowed

Previous Next

Package: emacs;

Reported by: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>

Date: Fri, 2 Jun 2023 09:57:01 UTC

Severity: normal

Found in version 29.0.60

To reply to this bug, email your comments to 63835 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#63835; Package emacs. (Fri, 02 Jun 2023 09:57:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kevin Brubeck Unhammer <unhammer <at> fsfe.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 02 Jun 2023 09:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.60; gnus-icalendar--update-org-event fails if org buffer narrowed
Date: Fri, 02 Jun 2023 11:56:30 +0200
When running gnus-icalendar--update-org-event (by clicking the [Update
Org Entry] button on a calender invite email), if the org buffer
containing the previously recorded event is narrowed such that the event
is out of view, the line 

                  (re-search-forward "^\\*+ " (line-end-position))

may fail and the function error instead of updating the event
completely. Seems like changing 

      (with-current-buffer (find-file-noselect file)
          (with-slots (uid summary description organizer location recur

to
      (with-current-buffer (find-file-noselect file)
        (save-restriction
          (widen)
          (with-slots (uid summary description organizer location recur

in the same function fixes it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#63835; Package emacs. (Mon, 11 Sep 2023 18:42:01 GMT) Full text and rfc822 format available.

Message #8 received at 63835 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Kevin Brubeck Unhammer <unhammer <at> fsfe.org>, 63835 <at> debbugs.gnu.org
Cc: Andrew Cohen <cohen <at> bu.edu>, Eric Abrahamsen <eric <at> ericabrahamsen.net>
Subject: Re: bug#63835: 29.0.60; gnus-icalendar--update-org-event fails if org
 buffer narrowed
Date: Mon, 11 Sep 2023 11:41:04 -0700
Kevin Brubeck Unhammer <unhammer <at> fsfe.org> writes:

> When running gnus-icalendar--update-org-event (by clicking the [Update
> Org Entry] button on a calender invite email), if the org buffer
> containing the previously recorded event is narrowed such that the event
> is out of view, the line
>
>                   (re-search-forward "^\\*+ " (line-end-position))
>
> may fail and the function error instead of updating the event
> completely. Seems like changing
>
>       (with-current-buffer (find-file-noselect file)
>           (with-slots (uid summary description organizer location recur
>
> to
>       (with-current-buffer (find-file-noselect file)
>         (save-restriction
>           (widen)
>           (with-slots (uid summary description organizer location recur
>
> in the same function fixes it.

Eric, Andrew, do you have any comments?




This bug report was last modified 225 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.