From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=FREEMAIL_FROM, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10717 invoked from network); 2 Feb 2023 08:07:40 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 2 Feb 2023 08:07:40 -0000 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNUd1-0000Fi-Cx; Thu, 02 Feb 2023 03:07:31 -0500 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 1pNUd0-0000FR-HF for info-gnus-english@gnu.org; Thu, 02 Feb 2023 03:07:30 -0500 Received: from ciao.gmane.io ([116.202.254.214]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNUcz-0004xu-26 for info-gnus-english@gnu.org; Thu, 02 Feb 2023 03:07:30 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1pNUcw-0001tY-VE for info-gnus-english@gnu.org; Thu, 02 Feb 2023 09:07:26 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: Julien Cubizolles Subject: limit strike-through to the width of the string in gnus-summary-mode-line-format Date: Thu, 02 Feb 2023 09:07:22 +0100 Message-ID: <87sffowkw5.fsf@free.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:qv+ep0nsjjs9RcLKe2taweeXX0o= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gegu-info-gnus-english@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org I'm using the strike-through face spec pour the gnus-summary-cancelled face. The striking line runs all the way to the last column of the buffer but I'd like it to not strike the spaces used for padding. With --8<---------------cut here---------------start------------->8--- (copy-face 'gnus-summary-normal-unread 'gnus-face-5) (set-face-attribute 'gnus-face-5 nil :strike-through nil) (setq gnus-face-5 'gnus-face-5) (set-face-attribute 'gnus-summary-cancelled nil :strike-through t) (setq gnus-summary-line-format "%5{%U%R%z%I%(%[%4L: %-23,23f%]%)%} %s\n") --8<---------------cut here---------------end--------------->8--- gnus-summary-delete-article will strike through the subject field and also through the spaces following it. I'd like it to stop at the end of the %s field. I've played around with tabs %=, cutting and maxing, padding but there always something wrong, mostly because I don't know the length of the string of spaces that will be added after the %s subject. Is there a way to get to specify a face, with %number{%s%} but only for the length of the %s string inserted ? -- Julien Cubizolles