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#69920: Proposed fix - Toggling MIME inline attachment previews adds superfluous newlines Date: Sat, 23 Mar 2024 08:52:56 +0200 Message-ID: <86ttkxzbg7.fsf@gnu.org> References: <87bk78pywn.fsf@tilde.club> <87wmpuouay.fsf@tilde.club> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19218"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 69920@debbugs.gnu.org To: Alcor , Eric Abrahamsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 23 08:10:03 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 1rnvVz-0004oq-9C for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Mar 2024 08:10:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rnvVM-0005hS-IJ; Sat, 23 Mar 2024 03:09:24 -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 1rnvVK-0005gr-3r for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 03:09:22 -0400 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 1rnvVJ-0008P0-RO for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 03:09:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rnvVy-0001k9-Qf for bug-gnu-emacs@gnu.org; Sat, 23 Mar 2024 03:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Mar 2024 07:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69920 X-GNU-PR-Package: emacs Original-Received: via spool by 69920-submit@debbugs.gnu.org id=B69920.17111777586572 (code B ref 69920); Sat, 23 Mar 2024 07:10:02 +0000 Original-Received: (at 69920) by debbugs.gnu.org; 23 Mar 2024 07:09:18 +0000 Original-Received: from localhost ([127.0.0.1]:58873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnvVG-0001hr-0O for submit@debbugs.gnu.org; Sat, 23 Mar 2024 03:09:18 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55116) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rnvVA-0001gh-Lo for 69920@debbugs.gnu.org; Sat, 23 Mar 2024 03:09:12 -0400 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 1rnvFc-0005s5-Vd; Sat, 23 Mar 2024 02:53:10 -0400 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=fePJQX+xvK+XZ9WBHHFSvw+rJTGAdW9IFI0yV4dnP+w=; b=d5Lr33oKuaUB RR83NX2htvlTET4c0FoVvovY+cqPQnRfs1rMtOXNTKJDePza8RJjU1fySXcd5XLzidN0TbcMridEE n+LStL8L2vSsCFbPhO7fq6VXF9nuR+rTLR9tdCDMa86ZlLBzuB8OF9hDf993RNYUmSBsFefs4YSF5 tfG9ZRDX0+ytNbFzYeGoIeByhkgSJiH61sYQWVjY0e1iqjERmEzGJI6+BHf2E/oazjOrZUH2f7yTE yKG7mkWt13DKcKybPbR6QPbctYEexji8LS1UrBD+mYd+IkhsrMByEdlKQX1TBuOBDhN43DoKa7UcE Pd/pYcRv0jmnx88/imeiAA==; In-Reply-To: <87wmpuouay.fsf@tilde.club> (bug-gnu-emacs@gnu.org) 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:281964 Archived-At: > Date: Fri, 22 Mar 2024 22:01:09 +0100 > From: Alcor via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > After some investigation, I noticed that `mm-inline-image' adds a > newline via (insert "\n") directly after `insert-image' for unclear > reasons. I'm guessing this is to make sure text following the image starts on a new line, rather than after the image. Why is the current code a problem? IOW, when does the extra newline cause any harm? You talk about "the issue", but I didn't see any explanation what that issue is. Eric, any comments?