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#74536: 30.0.50; undocumented box behaviour in faces Date: Mon, 25 Nov 2024 21:44:51 +0200 Message-ID: <861pyzhzd8.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9111"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74536@debbugs.gnu.org To: Al Haji-Ali Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 25 20:46: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 1tFf2R-0002DF-7B for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Nov 2024 20:46:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFf27-0001qL-Ar; Mon, 25 Nov 2024 14:46:07 -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 1tFf23-0001q3-Af for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:46:03 -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 1tFf23-0002fJ-22 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:46:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=FRHMVB/OvnXVxRMeVtWOrB2vjAqLsLLFF/KQ9yICVeU=; b=o5PG4mDYm5JLFDvCWao+Q4yyxyxH/ua9/oO1jfZ3dTpAlykMAkYMQf7mAhWK/oyCPdmefRCEyZAQT2Id6h3hTazj+tbN2+drku/6dzrNBJWZXE2erjLBd2/DVzazsIzffy/1RdDZEU9dYj2F+lemGE60EmJ+owe4gs1DxkWO0Cmm1iA5ckxpCc+Skgzg5YMkxPUMasoIHp+OYPpYKHKN40ptLRivfHCox+FiuRApQpl1TTN/WGM1U3eV//mI3cYTKaVGXAFukMMUmMLIEfSr7+KVfGbwWBZFI1kANpxBBGQKKvKdPQLkBKv7vLll2e5Vn92U2CWiHrUGjSfCnNV07Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFf22-0000qf-J1 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:46: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: Mon, 25 Nov 2024 19:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74536 X-GNU-PR-Package: emacs Original-Received: via spool by 74536-submit@debbugs.gnu.org id=B74536.17325639052937 (code B ref 74536); Mon, 25 Nov 2024 19:46:02 +0000 Original-Received: (at 74536) by debbugs.gnu.org; 25 Nov 2024 19:45:05 +0000 Original-Received: from localhost ([127.0.0.1]:41055 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFf16-0000kv-Rz for submit@debbugs.gnu.org; Mon, 25 Nov 2024 14:45:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36026) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFf14-0000iN-Na; Mon, 25 Nov 2024 14:45:03 -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 1tFf0z-0002Mt-DV; Mon, 25 Nov 2024 14:44:57 -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=FRHMVB/OvnXVxRMeVtWOrB2vjAqLsLLFF/KQ9yICVeU=; b=CgMC58m/8gQy ryJnxGRr8V5VxTxHZfkbDeRC+qFLEX/VLXBLbv172d/Z46VTIyZnP7x+BR5Q2vG6vs4eRflVaF2yj k0MsauNzyb/iWFsJndWoAPH+7OxVaZia74f4fgbgZ+OA0tPxFFjvx5F/fefgOUPfm2xYjpsIAjHWo N1SUztyoMEgrK/9x/MSKf+Q5Qn1z9tVeJ5N8QKsHK/xMn98Nq77Lbkh8qa/HLvS6cAvZs3nmP7syO CD+IgF/46MUxFUXya3BkNy2MCLSaE1PtiadkCAmS9tGZJ0mQeKHNsO+dpUmlN7pef6VMiBVqwht/l nZdx1JH4D6vaLgl4zGiT6w==; In-Reply-To: (message from Al Haji-Ali on Mon, 25 Nov 2024 19:34:41 +0000) 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:295959 Archived-At: tags 74536 notabug thanks > From: Al Haji-Ali > Date: Mon, 25 Nov 2024 19:34:41 +0000 > > > The output of the following code is > > --8<---------------cut here---------------start------------->8--- > (progn > (fundamental-mode) > (insert (concat "\n" > (propertize "hello" 'face '(:box (:line-width (3 . 0) :color "red"))) > (propertize " again" 'face '(:box (:line-width (3 . 0) :color "yellow"))) > (propertize " other" 'face '(:box (:line-width (3 . 0) :color "green")))) > "\n")) > --8<---------------cut here---------------end--------------->8--- > > > |hello again other| > > where the left border is red and the right one is green and the yellow border is completely hidden. Having negative line-width produces the same output. As expected. > It seems that one cannot have multiple adjacent borders unless one has some text in between without a border, like this > --8<---------------cut here---------------start------------->8--- > (progn > (fundamental-mode) > (insert (concat "\n" > (propertize "hello" 'face '(:box (:line-width (3 . 0) :color "red"))) > " " > (propertize " again" 'face '(:box (:line-width (3 . 0) :color "yellow"))) > (propertize " othe " 'face '(:box (:line-width (3 . 0) :color "green")))) > "\n")) > --8<---------------cut here---------------end--------------->8--- > > produces > > |hello| | again other| > > with (red, red, yellow, green) borders. Yes. Basically, Emacs doesn't examine box face changes unless it changes from box to no-box or vice versa. > I find this behaviour, if intended, sometimes helpful as it allows one to have a one-sided border. Though it would be helpful if the exact mechanism is documented. What mechanism would you like to be documented? > In any case, I was also originally expecting, and wanting, an output like this > |hello| again | other| > > with `(red, yellow, green, green)` and no text in between, but it seems there is no way to achieve such output? Is that correct? Yes.