From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KG2sBE1DfWNdEgAAbAwnHQ (envelope-from ) for ; Tue, 22 Nov 2022 22:46:53 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oNCtBE1DfWODagEA9RJhRA (envelope-from ) for ; Tue, 22 Nov 2022 22:46:53 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B477313242 for ; Tue, 22 Nov 2022 22:46:52 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id EE2B45FA1C; Tue, 22 Nov 2022 21:40:09 +0000 (UTC) Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by mail.notmuchmail.org (Postfix) with ESMTPS id C56915E027 for ; Tue, 22 Nov 2022 21:40:06 +0000 (UTC) Received: by mail-wr1-x429.google.com with SMTP id x17so13348302wrn.6 for ; Tue, 22 Nov 2022 13:40:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=TzQAYbi8tW68TA3qeszdbbBOmmySUqyU7EgfNv3d86w=; b=qU1BUXl9U+fmqZ9XTxgbfsguJSciV87/QQvLs27sQ7hOE/cz6+CgLb4jhx4ktLSwE+ Tr+WmTQ5htHRF1hYMM6A7Ggzik4Dg5JEW2LrUTyBK/VEwdCi+WqB3jXNPmJnzkyaxqrq ZN0/dDWRKYqf+T+gCBENcvj17nJMCd71NF/QWQcQBVyf2Ykemglw34vmo8GiA/RuiCnh Pl1O6frQd1tVQfMtD47z2zkNRwxWj1HN0WETAqeoriKzePUQJoi4XrkbOzPYUi9hxANd l8PoUqIcCK6Un3CjXjsIdA8TZLgdPgSnKD11g3wqeODiOfRedUrLNt+MIULEGfG2DsOA 6rxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TzQAYbi8tW68TA3qeszdbbBOmmySUqyU7EgfNv3d86w=; b=Pt8U9KFsY81Rxx6Q86HT8c3QEIwuXDc7FaLS9mohnzADnFPuhyPWh6d87m/KqKCbiZ 8akQPU+Dj4S0/lq704QbOzMXlPR6dYkETT0QbFZ53R1VrVv09YtIOUKjv7eYoDovgi18 RMDjgkS/6ASBU6QwMBCiaOUdj+WrP8Hk7VfhMSc4zLr+dqclFDC9tc4yhH1N/itM6j2Y bi49EI92pQ4oBEfDpqQ189u7BKVdh5P0F0QD4FcHnGD8EPwErewqJPpKU7pQiSyDX/0A POsTVfFDTslX8zIopaPFe7ab0RWQtOkKuogrLNl4IrdKAm3nBlahoG1X//7T42ZoOPwZ p3Hw== X-Gm-Message-State: ANoB5pkQapy2pbRtW+CsBNw23PBDh3hd/7HLduXRfZpDHwOtJvruP9ZK muuw3jvjqBlcRWKwMQm2oW9RpfS+CL+5SQ== X-Google-Smtp-Source: AA0mqf61TrVjY53qlq9gcQXH7RqmZo+uFGummEMaVi7nDso2Ch7F6EU9CjL5leL3sj2Zjna3N4QZQg== X-Received: by 2002:a5d:538b:0:b0:241:c3c2:24cf with SMTP id d11-20020a5d538b000000b00241c3c224cfmr6724680wrv.587.1669153205693; Tue, 22 Nov 2022 13:40:05 -0800 (PST) Received: from localhost (sgyl-45-b2-v4wan-165314-cust948.vm6.cable.virginm.net. [92.236.87.181]) by smtp.gmail.com with ESMTPSA id fn27-20020a05600c689b00b003cf75213bb9sm76752wmb.8.2022.11.22.13.40.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 13:40:05 -0800 (PST) From: Al Haji-Ali To: notmuch@notmuchmail.org Subject: Use find-buffer-visiting instead of get-file-buffer Date: Tue, 22 Nov 2022 21:37:51 +0000 Message-ID: MIME-Version: 1.0 Message-ID-Hash: U3W5SJY3FQB2LM24SYIV3ZY4CBQ24WDL X-Message-ID-Hash: U3W5SJY3FQB2LM24SYIV3ZY4CBQ24WDL X-MailFrom: abdo.haji.ali@gmail.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669153612; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=AEiY1PDmQyTik1QmXDgEJWBz50s+xU9lOJMl0A9WX/M=; b=qT0xeXeCLtJbSJkhVNm08uJ+7/f7qKX89BIflOuCXRgpIz5KB2k8L7WdmBNyNjO3e7S3hk As1QzfsBt/4QesRoVRH5gkOzu844BTUzMafh9hW3w8/C2Aj099LrGOZ2whZHNzCEyV/pSQ au2+dG4It9CQki/LfryE8ZwkYytIK1E3FJhBxYDLCNA02kqv8EsoKi8aObeNWtVWE/oQer b5iRupE8a26ZCp2mz0sUQozBSVvnOhMlVmLFkLs/fQQM+80v3Wt27Mh6TrgfIlho1FgNcp vi8klBLSIIrC701DsdKGxHMyvoppSPZLTu9JfbViSKPbCvsA3CcEONH+ItTUHg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669153612; a=rsa-sha256; cv=none; b=rGcytoGDusKsZRxxhoml/S07QubgNTNZ392eNxZWC8MiotpjRr/384JlTYRTp7iVaz1gIm BR1Il9fjvalPnBIn3biE5e4Y9gDGWjB50V2Mj8HvnYrpgmqr5tniseAJQjSq302ZMeEh8n WOQ1agrV7gf5aGUSjpEoCPSrhhNmX+zXnOcuAJ7kywxzcUNwYPLoeYvvODT1289dsOMwYT zJNGwNBune+knxRRJDKAYbw0eYjQ9aOlZXpesRouAQqFgk4H0ZJlfbm3BhYh8edB1ubkes X8uEbiSFZRqIzVEKGyjIvt0NUY6flU5JokotoRg3tBp69l18sAWeQYGDfRUK0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=qU1BUXl9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 7.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=qU1BUXl9; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: B477313242 X-Spam-Score: 7.31 X-Migadu-Scanner: scn0.migadu.com X-TUID: WLb2Zx/51ROz In the function `notmuch-show-insert-part-text/calendar`, get-file-buffer is used which works most of the time except the file is visited under a different name (for example when a directory in `temporary-file-directory` in symlinked). This can be easily corrected by using `find-buffer-visiting` instead. -- Al