From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kevin Brubeck Unhammer Newsgroups: gmane.emacs.bugs 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 Message-ID: <874jnqur01.fsf@trigram.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26863"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) To: 63835@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 02 11:57:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q51X3-0006iR-5K for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Jun 2023 11:57:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q51Wq-00043q-U3; Fri, 02 Jun 2023 05:57:05 -0400 Original-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 1q51Wo-00043Q-D1 for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 05:57:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q51Wo-00072o-5C for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 05:57:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q51Wo-0004Lw-0W for bug-gnu-emacs@gnu.org; Fri, 02 Jun 2023 05:57:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kevin Brubeck Unhammer Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Jun 2023 09:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 63835 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168569980616702 (code B ref -1); Fri, 02 Jun 2023 09:57:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jun 2023 09:56:46 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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 Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 2 Jun 2023 05:56:33 -0400 (EDT) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262747 Archived-At: 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.