From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74027: [PATCH] ; Insert "Stealing lock" at the beginning of a message Date: Fri, 08 Nov 2024 17:22:36 +0200 Message-ID: <86ttchoimb.fsf@gnu.org> References: <87ed43e2f6.fsf@posteo.net> <86bjyxzxht.fsf@gnu.org> <87iksxhkva.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2047"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74027@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 08 16:26:21 2024 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 1t9QsO-0000Nc-TR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 08 Nov 2024 16:26:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t9QsC-0007Ts-Uo; Fri, 08 Nov 2024 10:26:08 -0500 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 1t9Qs6-0007Sz-Sp for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2024 10:26:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t9Qs6-0002vq-K2 for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2024 10:26:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=+UC2QmK/KiXd6NXp/GEA4yRkbKbY8arrmRaRrHBn9d0=; b=CtxjOquqEjG9hgk1Q0FIkVB5CXe4YyygoJJOTC/DrFaTq0F46GPXhgCycdfx/ab5nGwX+ifjAuCm7zrqTt6FuH8FJ6G8zl8NnaaA/wyRiQJJfusK3/lqD5hlkwHMpZSCIZpS+QVmp7jQkR3OpE97QGTXaEV04TkMxdN+fL8BbvSi0g2XfyTcBq2AsbYSxTKkUa1Zhxalz0rvZearvpcKTlalf+hVSEhE5NCVrnAVuok6s84tZugMRAUNhu/YnE0IAve8ANBmWYjF4Nqhpzega7MSmesEtRP5hcr9ZP8ztOFkEfHtzsBxLxhzL36QufgtqPWOfTag3rx9mCCP3mNpGA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t9Qs6-0003me-5I for bug-gnu-emacs@gnu.org; Fri, 08 Nov 2024 10:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 08 Nov 2024 15:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74027 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74027-submit@debbugs.gnu.org id=B74027.173107950214105 (code B ref 74027); Fri, 08 Nov 2024 15:26:02 +0000 Original-Received: (at 74027) by debbugs.gnu.org; 8 Nov 2024 15:25:02 +0000 Original-Received: from localhost ([127.0.0.1]:51716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9Qr7-0003fH-MH for submit@debbugs.gnu.org; Fri, 08 Nov 2024 10:25:02 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t9Qr2-0003ep-Vz for 74027@debbugs.gnu.org; Fri, 08 Nov 2024 10:25:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t9Qoo-0002Tt-4Q; Fri, 08 Nov 2024 10:22:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=+UC2QmK/KiXd6NXp/GEA4yRkbKbY8arrmRaRrHBn9d0=; b=hB0JgsiK7eEn AHJP484U8MxHw50vyDsK2g0jI2sMfyvybRPTjm/64+3+wSS46X/QzXSmxO+G+SZ+/R6K28uv/gqB7 /I/+KbSRe3hbhUMdA6ZnIWPnNyiXB/fkhe8hWMyLopmfWbe3Wt77HnH5o0IaSvfLG4DXb3Re8I2lZ XfaCJ6VVuL6xzIGgVb02A3os4LgO//iEDttaH+2cIEKq3qn+WJtirhisblV3UWIXSBk14JZ+vsxav LVvEfPAW+Efs3zeVP9x+g9N4FxLAfPJdhWuwGwydEQq8BLIzBQZGosFbdP+31P9PjCWTtbZQBi425 0zoB7PSia/iHA2Qi9dkJRw==; In-Reply-To: <87iksxhkva.fsf@posteo.net> (message from Philip Kaludercic on Fri, 08 Nov 2024 14:15:53 +0000) 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:295071 Archived-At: > From: Philip Kaludercic > Cc: 74027@debbugs.gnu.org > Date: Fri, 08 Nov 2024 14:15:53 +0000 > > Eli Zaretskii writes: > > >> - (goto-char (point-max)) > >> + (mail-text) > > > > I guess you are using sendmail.el as your mail-user-agent? But the > > default is message.el, so I think we should either use > > message-goto-body here, > > Ok, I falsely assumed that using 'mail-text' would be more compatible. > > > > > or perhaps dispatch to either to message.el or > > sendmail.el based on the value of mail-user-agent. > > So a `cond' expression checking mail-user-agent and then invoking the > right function, or is there some more generic way to do that? The former, I think.