From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +LLPNFMI2mQH5wAASxT56A (envelope-from ) for ; Mon, 14 Aug 2023 12:56:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 6FbDNFMI2mTIrQAA9RJhRA (envelope-from ) for ; Mon, 14 Aug 2023 12:56:19 +0200 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 5CCDC4B441 for ; Mon, 14 Aug 2023 12:56:19 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=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; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692010579; 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; bh=6voC8Go1QNWYWXVBSI30Etws712IljqRJD7IXrnaphs=; b=ctLKTWA7/lMtfkPXC6ZwKws63Yf0v8GYxycRypXZXLbeVmLusExLpOegNRyCvbmLJRtMZn a0Fw2NK/xo86HL+tMz3so5LXRyY+cdtfMEAw5Kq6HouFob7pjNuLPZ1jzOoX28S6dxGc3o xFunq3QN9BQgRTSLFGWaL6cyNHNCpskpPFYaRayCjYdSrWjVYSb80ZXQIEevwsyaISkZnq YJIMLzaaZ9SDeELHgEadis4iqExDy5y6GEGFoYGMBfCeqR/hOxlGz6cnxOraG1B7djUpxQ +PMxjbxEALvA9g9r0srcqVyHJhBfUTcFnO5M9SC6Ug55lrbkKblI+N6+/0Nv6A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=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; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692010579; a=rsa-sha256; cv=none; b=lKPJxo5zy4av9gz/gH76e8WScvpxeTS5XQAwoVwKcP3EPwRxewGfmt84oXsaePkLURgx6J WKqE29ft5qV5innBYiI3lObEWi0551Yjb1GX3iDJtBAG13QAFnv9H8UJo5EEr0P+hvFdKQ TETVvxdI68iEbNh0/dEe0xmN2VHLlKPNckCn0MrwS2cKeI+NoKmuoHI77TvJf2pvNFp6yu 1gq8En1eujb/n4AIxceB7chb57iC00mnFKmfdqx6LDydaOU9i0noaw59PdEggM40uLyp/T smFThYzLTUdZbGOv2Rwu3WyEk65FhMvx6zyd4NfNIV1GCKPByDwITMB+FmHbLw== Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 6197B5F37B; Mon, 14 Aug 2023 10:56:10 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [IPv6:2607:5300:60:3a9d::1]) by mail.notmuchmail.org (Postfix) with ESMTPS id B056A5F36A for ; Mon, 14 Aug 2023 10:56:07 +0000 (UTC) Received: from tethera.net (fctnnbsc51w-159-2-210-253.dhcp-dynamic.fibreop.nb.bellaliant.net [159.2.210.253]) by phubs.tethera.net (Postfix) with ESMTPS id F0FEC180172; Mon, 14 Aug 2023 07:56:05 -0300 (ADT) Received: (nullmailer pid 900169 invoked by uid 1000); Mon, 14 Aug 2023 10:56:05 -0000 From: David Bremner To: Jon Fineman , notmuch@notmuchmail.org Subject: Re: Hiding hidden image In-Reply-To: <87y1if6t0p.fsf@tethera.net> References: <87350qlbt7.fsf@ryzen.jonjfineman.com> <87y1if6t0p.fsf@tethera.net> Date: Mon, 14 Aug 2023 07:56:05 -0300 Message-ID: <87v8dhgaey.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: LF7IX5RP3GIHEUWJOF6UQ2IYRG6GUP7L X-Message-ID-Hash: LF7IX5RP3GIHEUWJOF6UQ2IYRG6GUP7L X-MailFrom: david@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header 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-Queue-Id: 5CCDC4B441 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -3.91 X-Migadu-Spam-Score: -3.91 X-TUID: tScV7n3nlKSP David Bremner writes: > I also noticed that it does not happen for all png image parts, but the > pattern of what works and what does not is also unclear to me so far. I > observed that the following function > > (defun hideit () > (interactive) > (overlay-put (car (last (overlays-at (point)))) 'invisible t)) I think I'm missing something about overlays. The following code does not work (i.e. hide the image) unless I extend the overlay to the left. (let ((buf (get-buffer-create "image-buffer")) (img (find-image '((:type xpm :file "attach.xpm")))) (overlay nil)) (switch-to-buffer buf) (insert "0123456789") (insert-image img "x") (insert "0123456789") (insert "\n") (setq overlay (make-overlay 11 12)) (overlay-put overlay 'invisible t) (message "props=%s" (overlay-properties overlay))) This behaviour is the same in Emacs 28.2, unlike the problem Jon describes with notmuch-emacs.