From unknown Tue Jun 17 20:27:52 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#63835 <63835@debbugs.gnu.org> To: bug#63835 <63835@debbugs.gnu.org> Subject: Status: 29.0.60; gnus-icalendar--update-org-event fails if org buffer narrowed Reply-To: bug#63835 <63835@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:27:52 +0000 retitle 63835 29.0.60; gnus-icalendar--update-org-event fails if org buffer= narrowed reassign 63835 emacs submitter 63835 Kevin Brubeck Unhammer severity 63835 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 02 05:56:46 2023 Received: (at submit) by debbugs.gnu.org; 2 Jun 2023 09:56:46 +0000 Received: from localhost ([127.0.0.1]:39126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q51WY-0004LK-AZ for submit@debbugs.gnu.org; Fri, 02 Jun 2023 05:56:46 -0400 Received: from lists.gnu.org ([209.51.188.17]:45956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q51WT-0004L9-4P for submit@debbugs.gnu.org; Fri, 02 Jun 2023 05:56:45 -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 1q51WS-0003gk-U2 for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 05:56:40 -0400 Received: from forward2-smtp.messagingengine.com ([66.111.4.226]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q51WR-000717-0f for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 05:56:40 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailforward.nyi.internal (Postfix) with ESMTP id 07C121943E3A; Fri, 2 Jun 2023 05:56:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 02 Jun 2023 05:56:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1685699794; x=1685786194; bh=UQCSJSHVAgswS9iFo/fb647cZbk9qxdChEc I5a1Ws8E=; b=uG/OyMcfiXw7OXuLH/M2sxbjbKR5QRghgp1OTHr8YsqWWbwODi5 Qoa9WYC2wcNv+klL1h6iTzxwtWxB8fEQksKJkR+0xWa/oUm2ZcFatq7WPnjxh3LQ WcutXwydNluN1EhPR+uUZTzIaL1ZLNVdT2OMLwp0lI6SF0rg76HkZPvPJ7/Ok9wL xCbS3w8tYdbn3sO3OuEXBIVAQtbdSRQGH0sLHp1OpJFWbQiRaF0TWP3lQqzP5heU b5+oB7J8yF6KX+8vCRHUVmHisbFwLWZ37TqoUr+yC7J3dW/5RTDv8InLqY1f8cnj 5isgRkhU6F7UezNZNyKNKTo9yFXvpg3E0fQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeelfedgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkfgggtgesthdtredttd ertdenucfhrhhomhepmfgvvhhinhcuuehruhgsvggtkhcufghnhhgrmhhmvghruceouhhn hhgrmhhmvghrsehfshhfvgdrohhrgheqnecuggftrfgrthhtvghrnheptedtfeeugeefff dtffeviefhheegveegfedtjeeggfetjeeghedvveekgedvhedvnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepuhhnhhgrmhhmvghrsehfshhfvg drohhrgh X-ME-Proxy: Feedback-ID: i26a44175:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 2 Jun 2023 05:56:33 -0400 (EDT) From: Kevin Brubeck Unhammer To: bug-gnu-emacs@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 Message-ID: <874jnqur01.fsf@trigram.no> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: softfail client-ip=66.111.4.226; envelope-from=unhammer@fsfe.org; helo=forward2-smtp.messagingengine.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.665, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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. From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 11 14:41:19 2023 Received: (at 63835) by debbugs.gnu.org; 11 Sep 2023 18:41:19 +0000 Received: from localhost ([127.0.0.1]:54815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qflqZ-0001TH-6z for submit@debbugs.gnu.org; Mon, 11 Sep 2023 14:41:19 -0400 Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:48157) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qflqV-0001T0-9G for 63835@debbugs.gnu.org; Mon, 11 Sep 2023 14:41:17 -0400 Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bcc4347d2dso80093481fa.0 for <63835@debbugs.gnu.org>; Mon, 11 Sep 2023 11:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694457665; x=1695062465; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=mfMb56DegM1iSzO3Cig5peFIqYUkrr2abc2Rms1tzEU=; b=A491NLk5uHxCHmTZZa1HpuQCdd8M0IN1zVb7mwGasR0QLtXS7lbtoi1+j6fm56Ykzv ewhgKA3VtwjG4TuwyW8sdXDcUyuOOAhsiMBenODf7PrtnwJi/ncN8+Kj5vo7cNP0Ie2a nFT4diWQkJbwLDAf6DGnUx/FOyC2iRr3slKelM0nljZznCTo530NHv4YFqM/JagxqrYB u9bJRzaBSjglK/LNtl6EgzGpRdkRSnaVIqLf3KBIPv1DG0lWiVEKGsSDdRKhDcXHrXCV A5gj8BblgZwbAP2DV5XEOqfOyqBrQV4QmyhDElBWLblpaljy/r0gTTN/9EnWVmxxVdS1 D3cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694457665; x=1695062465; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=mfMb56DegM1iSzO3Cig5peFIqYUkrr2abc2Rms1tzEU=; b=bFMic/bUMDtFv+dArX5jxRpW6GGaDMDigVGRC/gqxk2ZWNGe+ivUgxjXKa0b7pT+Ww v3uWs3M+Vkm4p6vrpf4RZY6fwxLTmJB8kumBSPqvRY8347X4HB8cSDLrWyAFrpV7CMhK 4sEY87ABlCt0H+OePww9/5oM7XwcPpILjNW6z6rJ9muJptvKzUjqRpGGmE8nVcPxuJbp vozrh9sW3rT2RIGC9YBsPvfaERj8NlzIt4K7o5LGwpuQGgtKhu27fJuW3BSMOaRoegXB oXKPe51HmNhSd0P81bilnryMcBbUhUh0nY8bCG3DUqHDcjz6x9IJpw/BxJk1YL5ixHrU zFng== X-Gm-Message-State: AOJu0Yyw6MpxksKzfnxByz7ChMYm4eq5CJo+9YP9TYDRLPZOSYaNuCzF rTj719lqr6aw15Ez02faPtn0UUCNXdTDCTDUIaDBy587Jzs= X-Google-Smtp-Source: AGHT+IFJcpAHGvqhku9vbTX+5xKjICi27pNBYiD3WF9W4isjWTuiSYX3q4ze5aVJxKrtG+sCT6K+a1X14POb5PJeoSo= X-Received: by 2002:a2e:99cf:0:b0:2bc:fa8f:83bf with SMTP id l15-20020a2e99cf000000b002bcfa8f83bfmr8016683ljj.36.1694457664905; Mon, 11 Sep 2023 11:41:04 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Sep 2023 11:41:04 -0700 From: Stefan Kangas In-Reply-To: <874jnqur01.fsf@trigram.no> References: <874jnqur01.fsf@trigram.no> MIME-Version: 1.0 Date: Mon, 11 Sep 2023 11:41:04 -0700 Message-ID: Subject: Re: bug#63835: 29.0.60; gnus-icalendar--update-org-event fails if org buffer narrowed To: Kevin Brubeck Unhammer , 63835@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63835 Cc: Andrew Cohen , Eric Abrahamsen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Kevin Brubeck Unhammer 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?