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#68251: message-yank-buffer insert many copies of image Date: Fri, 05 Jan 2024 14:09:37 +0200 Message-ID: <83sf3cugla.fsf@gnu.org> References: <87h6js4b7e.fsf@breatheoutbreathe.in> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="805"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68251@debbugs.gnu.org To: Joseph Turner Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 05 13:11:27 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 1rLj2s-000AcT-Iv for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Jan 2024 13:11:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLj2T-0007V3-0q; Fri, 05 Jan 2024 07:11:01 -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 1rLj2R-0007T6-9c for bug-gnu-emacs@gnu.org; Fri, 05 Jan 2024 07:10:59 -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 1rLj2Q-0006Ea-L1 for bug-gnu-emacs@gnu.org; Fri, 05 Jan 2024 07:10:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rLj2U-0000Rg-Eq for bug-gnu-emacs@gnu.org; Fri, 05 Jan 2024 07:11: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, 05 Jan 2024 12:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68251 X-GNU-PR-Package: emacs Original-Received: via spool by 68251-submit@debbugs.gnu.org id=B68251.17044566031639 (code B ref 68251); Fri, 05 Jan 2024 12:11:02 +0000 Original-Received: (at 68251) by debbugs.gnu.org; 5 Jan 2024 12:10:03 +0000 Original-Received: from localhost ([127.0.0.1]:56594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLj1X-0000QL-3l for submit@debbugs.gnu.org; Fri, 05 Jan 2024 07:10:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rLj1U-0000Pl-44 for 68251@debbugs.gnu.org; Fri, 05 Jan 2024 07:10:02 -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 1rLj1J-0005mf-Ot; Fri, 05 Jan 2024 07:09:49 -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=G7twXy5ccjEmqTsPlv3u9o1KNE9QY/zqG2Qf1a7N0mE=; b=ZWiPqI03vuM6 TQ567Xp35us1QqJ7J+61EzeDfAGT5UTM5MQ0YH+a4DHGVVqJBqW4+uw4TwQnKn6jPDJe0PAOrVHoS x9BYBW2ahawaXaAjB3oAC9aH9zfIckyWN6AG18pQMpcMtCAUIkVMSyE812OD4MwkGATYgAO8wIg5w OGJZbWb8fYmPbK8yw+umRbdB1Nf8dwnxLjeBFuZQpm3Edn7HrlkEtkKFAmFYxCmMqsjwKIVoRlXtB VewwUSP48hSwQYw88MH52lPdnd86MRzNRrllzi4zZMKrZ8+ATO9j9sxJaOwrFk8ymx8CyTUP9D+Yw fRnm3hro1cKLJ72jESvsLw==; In-Reply-To: <87h6js4b7e.fsf@breatheoutbreathe.in> (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:277385 Archived-At: > Date: Thu, 04 Jan 2024 21:09:23 -0800 > From: Joseph Turner via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > To reproduce: > - ~emacs -Q~ > - Open an image in a buffer > - Create another buffer, call ~M-x message-mode~ > - Run ~message-yank-buffer~, select the buffer with the image > > Expected: > > One image is inserted into the buffer. > > Actual: > > Many images are inserted into the buffer. It isn't specific to images: it happens with any 'display' property that spans more than one text line. message-yank-buffer looks at buffer text and ignores the 'display' properties, so it inserts every line after quoting it, and this you get as many copies of the 'display' property as there are newlines in the text covered by the 'display' property.