From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gLRFDeTXYWcRfwAA62LTzQ:P1 (envelope-from ) for ; Tue, 17 Dec 2024 19:58:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id gLRFDeTXYWcRfwAA62LTzQ (envelope-from ) for ; Tue, 17 Dec 2024 20:58:28 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=cassou.me header.s=dkim header.b=bIZgmT6e; 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; dmarc=fail reason="SPF not aligned (relaxed)" header.from=cassou.me (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734465507; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=1kBxuRAg+iFNe4Cn6s3U175EJsOMIqacs1RfR8sYoZo=; b=qgNzCEI8Z1Rx3W9Y6TgCdwFDWbQQj3DWr0ulQPuV9Nrk1zk/sjQtla3hE9PmbKxCRaQl/P 48CPS6IbKB/oxxzKRGNq8XnWICu3k9yg4TgVypysUVEjoL5u+qKoe1yu5L44LDhPhrUSgN 35rCtKDG74IzVw51qMJboIzMoSVY9ICE/5OjW7F0beMh+f4Wreqtx4V5yQ4cNAuUXT3nd+ nJ9NArpFzJpybKe9pH96wo9/AQ60qwh1pUrH5jZEczx+YcmrkVGapS/Nhr3IoWDM3c7FyF xpQ3FVtYcpjqb1/dfDnHQ1jb02GIy01BQ094Vx4KjJwY8KiaKA8Wvr9dYjCDQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=cassou.me header.s=dkim header.b=bIZgmT6e; 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; dmarc=fail reason="SPF not aligned (relaxed)" header.from=cassou.me (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734465507; a=rsa-sha256; cv=none; b=qFx82VjxRJ69zCMSdcWMmKybONacb3n7OuT+dryktXF2lZ7VJjazowP/IpOxN9Cpn1WnGQ Rra2drWHBZmd4KEUGHQvVMDOVxp1hm9MxHf4TZyJ3Hcki/99XSv6bKB/2Z0319luoaSObA 8Cd1VnltvuVhtTmBtH3UQt9+p69YEgAU0khlCD2hjxP7njBa9HZGEWhxPaS9nj8qEUYOPf DvPXGFnGct9iy9KjcasbIQOVJrhFmycShMg+wfsLDjsS25fGTQZQMYkzm+YqP3Qd5cpMU7 M+1qNotZB78wMQNu2iHZvTe0oG9xWTQLsbMWbS5t/4n4i/F5SNPqCEXif1yAqw== 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 D865A30151 for ; Tue, 17 Dec 2024 20:58:27 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E20DE5F7EE; Tue, 17 Dec 2024 19:32:16 +0000 (UTC) Received: from mail.reprendre.net (mail.reprendre.net [IPv6:2001:910:1410:501::1]) by mail.notmuchmail.org (Postfix) with ESMTPS id 7DDFD5E294 for ; Tue, 17 Dec 2024 19:32:14 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 988632CA824; Tue, 17 Dec 2024 20:32:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=dkim; t=1734463932; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=AWxEL3PN8IZMIBWfUJRD57Flq/T5lyx8DWqEAZo5fVw=; b=bIZgmT6edyCDf0bxWgeY3XkUKXEabCvD/wTGlTy9xgEIOXqTVTYEW99/ZMikI8tB7K9qbd 9jKwPYSzPhy366A1fL8vgsuH4szxo8NR/9erhMaOMoeiqP5qIoO04kn78DSbkBD0LGf3y8 R9/POU8L/w2REtIGGr8ZaBU4xiqShuL0yWXc3n81ghifxb+KfNnonIG8jqE7r5J0TOfbol S/+XN2OvtBeawv1Cyhc4jPFba0xm3echwZJFvlkhEZGdEMqJZc73B2jgqd41oL1FEgPZk1 s0yICE6vs/9bDf0mifuTR+2OntfuZ7WzpdvX1qfwE5TldDvUIoiBQ2ozQnSNhg== From: Damien Cassou To: Pengji Zhang , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs/show: Only recenter interactively In-Reply-To: <87ikria5ze.fsf@pengjiz.com> References: <20241123151601.16201-2-damien@cassou.me> <87o71dguje.fsf@pengjiz.com> <8734ipdsep.fsf@cassou.me> <87ikria5ze.fsf@pengjiz.com> Date: Tue, 17 Dec 2024 20:32:11 +0100 Message-ID: <87ttb2nm10.fsf@cassou.me> MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 Message-ID-Hash: RU4DYX6BG4TC6MWJHMCHROVJCMT2PFRA X-Message-ID-Hash: RU4DYX6BG4TC6MWJHMCHROVJCMT2PFRA X-MailFrom: damien@cassou.me 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 X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 6.19 X-Spam-Score: 6.19 X-Migadu-Queue-Id: D865A30151 X-TUID: ASQ+XhCTPnhx Pengji Zhang writes: > Besides, do you have other use cases for calling those commands > non-interactively? If not, IMO this time it might be better to only > change 'notmuch-show-previous-message' (or > 'notmuch-show-imenu-prev-index-position-function'), so to fix the issue > you had with 'which-function-mode'. After a closer look, I have an > impression that those commands are meant to be interactive only. This is a brilliant idea. I submitted a new patch: https://nmbug.notmuchmail.org/nmweb/show/20241217192919.889035-1-damien%40cassou.me -- Damien Cassou "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill