unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Brubeck Unhammer <unhammer@fsfe.org>
To: 63835@debbugs.gnu.org
Subject: bug#63835: 29.0.60; gnus-icalendar--update-org-event fails if org buffer narrowed
Date: Fri, 02 Jun 2023 11:56:30 +0200	[thread overview]
Message-ID: <874jnqur01.fsf@trigram.no> (raw)


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.





             reply	other threads:[~2023-06-02  9:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02  9:56 Kevin Brubeck Unhammer [this message]
2023-09-11 18:41 ` bug#63835: 29.0.60; gnus-icalendar--update-org-event fails if org buffer narrowed Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874jnqur01.fsf@trigram.no \
    --to=unhammer@fsfe.org \
    --cc=63835@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).