From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id +AodA61l617aDgAA0tVLHw (envelope-from ) for ; Thu, 18 Jun 2020 13:01:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id CFmCOqxl617mTAAA1q6Kng (envelope-from ) for ; Thu, 18 Jun 2020 13:01:32 +0000 Received: from arlo.cworth.org (arlo.cworth.org [50.126.95.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id B7960940655 for ; Thu, 18 Jun 2020 13:01:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 861F36DE0927; Thu, 18 Jun 2020 06:01:27 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3i27uKh_anXM; Thu, 18 Jun 2020 06:01:27 -0700 (PDT) Received: from arlo.cworth.org (localhost [IPv6:::1]) by arlo.cworth.org (Postfix) with ESMTP id C81D06DE0286; Thu, 18 Jun 2020 06:01:25 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 75BD66DE0286 for ; Thu, 18 Jun 2020 05:19:08 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HmpsJNCdPmRT for ; Thu, 18 Jun 2020 05:19:07 -0700 (PDT) X-Greylist: delayed 461 seconds by postgrey-1.36 at arlo; Thu, 18 Jun 2020 05:19:07 PDT Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by arlo.cworth.org (Postfix) with ESMTPS id 527C16DE0262 for ; Thu, 18 Jun 2020 05:19:07 -0700 (PDT) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.93) for notmuch@notmuchmail.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1jltO5-000eGZ-Ix; Thu, 18 Jun 2020 14:11:21 +0200 Received: from ip5f5bd4f6.dynamic.kabel-deutschland.de ([95.91.212.246] helo=localhost) by inpost2.zedat.fu-berlin.de (Exim 4.93) for notmuch@notmuchmail.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (envelope-from ) id 1jltO5-001vKM-Bp; Thu, 18 Jun 2020 14:11:21 +0200 From: jvolbers@zedat.fu-berlin.de (=?utf-8?Q?J=C3=B6rg?= Volbers) To: notmuch@notmuchmail.org Subject: notmuch-emacs: Highlight the file attachment Date: Thu, 18 Jun 2020 14:11:20 +0200 Message-ID: <87bllg4lqv.fsf@joergvolbers.de> MIME-Version: 1.0 X-Originating-IP: 95.91.212.246 X-Mailman-Approved-At: Thu, 18 Jun 2020 06:01:24 -0700 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: notmuch-bounces@notmuchmail.org Sender: "notmuch" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 50.126.95.6 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: -1.01 X-TUID: fEtdUdQB5qlh Hi there, When showing a message with notmuch-show, I'd love to highlight the file attachment part. I want to distinguish them from the other mml stuff which I usually do not need to care about. Is there any easy way to determine that part programmatically? Looking at the text properties in the show buffer, these parts seem to be simple buttons with no special property. If notmuch show would add a text property when inserting these particular buttons, one could simply add a face overlay or something. Or it could be wrapped in a special face. JV -- http://www.joergvolbers.de https://fu-berlin.academia.edu/joergvolbers https://www.geisteswissenschaften.fu-berlin.de/we01/institut/mitarbeiter/koop_gaeste/volbers/index.html