From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Al Haji-Ali Newsgroups: gmane.emacs.bugs Subject: bug#74536: 30.0.50; undocumented box behaviour in faces Date: Mon, 25 Nov 2024 19:34:41 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7637"; mail-complaints-to="usenet@ciao.gmane.io" To: 74536@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 25 20:35:21 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 1tFerg-0001qx-SL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 25 Nov 2024 20:35:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFerS-0007Y5-3j; Mon, 25 Nov 2024 14:35:06 -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 1tFerQ-0007VF-2z for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:35:04 -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 1tFerP-00015S-Of for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:35:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=94R8XnMY7tYTsxqxNTChrC2YxPoFg4hVnaJcn4S8Q7Y=; b=cR0KdnNuoEzak/ZgDCOLuolz9O5pEDQ5QVCW+xpB9KKS4GCNOFdnK9+85HWSDBoVFd069dIwHC3lPkU+eJlUH0X7QY3r9yhCTsSM5v172hsZLiGsNUPHzpZilukFdE5Fh/pycigxVZd98WbNMZXUX0kxR142zVaFJB9n4QykUiQAqlUkZVJ5i/zhd03h29bBU9bwXv+uBvA5M53d0keVR0Z2JvahHUg8I5MgaVULn8bcmq4D/CDhhgyTj77GucIltBrkJvE6BZET9lgwUdgfbYT1gQaBUBSUZUby61M4zVLbolZoZj6RAIYIuumhBVlXkR4/4+YydQkRNUs+1lqApw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tFerO-0000EG-IA for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Al Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Nov 2024 19:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74536 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1732563296858 (code B ref -1); Mon, 25 Nov 2024 19:35:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Nov 2024 19:34:56 +0000 Original-Received: from localhost ([127.0.0.1]:40914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFerH-0000Dl-Lj for submit@debbugs.gnu.org; Mon, 25 Nov 2024 14:34:55 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:59154) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFerG-0000Dd-6i for submit@debbugs.gnu.org; Mon, 25 Nov 2024 14:34:54 -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 1tFerF-0007PN-6j for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:34:53 -0500 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tFerD-00013o-G8 for bug-gnu-emacs@gnu.org; Mon, 25 Nov 2024 14:34:52 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3824038142aso3170190f8f.2 for ; Mon, 25 Nov 2024 11:34:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732563288; x=1733168088; darn=gnu.org; h=mime-version:message-id:date:subject:to:from:from:to:cc:subject :date:message-id:reply-to; bh=94R8XnMY7tYTsxqxNTChrC2YxPoFg4hVnaJcn4S8Q7Y=; b=QPC4B+uhEoQOtM3g/9J4CNRCKeEP+Qm9h4J0It/0fdPEHmH/Rb7d41Ot3eJcP+ANo3 /sjMQTRCThhjS308wyLYLO7Gd7AiOKNb0fgs9Q/yvsclK+Zpnn99llReH3xEBMVZEuao 43nvCJHI7mY6Hu2wTwqUhUXS0B7ZeXdNBBX1oMQ/z3hMqQIxJGklU/Hbo0aRNKeKVgWT Bm8n9fgL0HTCviDnumo5/VDy96LCT1eozatlfP9k00qvSS6o9JmdmrkkTFQduB5SYia7 eH47JWlCZ4w6KtpDE3dMbNeVERoZJvv9KoOnlLjUT5EykXhWJs6YvEECvbAnTnQlXIGh pTfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732563288; x=1733168088; h=mime-version:message-id:date:subject:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=94R8XnMY7tYTsxqxNTChrC2YxPoFg4hVnaJcn4S8Q7Y=; b=IYjLG1fedbkm+viurfAzzVZ4uWhGNR83S9m4mBwNjLGI1V+CIaWQl7RcXBLsayG+jm 4AOfnnsUgEG9kkLXh4nzhqqSg4BkisSpcB39f75lC1pLnDnQuxaqEManAFCPzQndyvpU K1pLZoxSJUXqXW5WJ4FTwVlvaPlPbgsyFyLHWSk2TTXvcOjEQV4SXgPvfw6gGxQuYXzl MhlLe4iiGVZuXcOjGWxIGTxhAn1l9xLh4K1oQ53XZZ22IyAHUFtZYhDAIhWecQVy0UP0 /Vt0Qe0C0vqsYa96IjTkgVrW0HXvjC1NbASAXsTUW44/mOCu/xXuJ/O80I4n7mkvw6hF fO0A== X-Gm-Message-State: AOJu0YweihVPzL8xIUCTd60tRd3INQX7aNJb2p7jbz6e9LV+1En3LLl7 3YuYpKpnFIZdQZDNwu/O8c9m6PwIUMlECDROx+h6HyZWuqXOkt6UqenK5A== X-Gm-Gg: ASbGnctvppdD5hivEbbxN07UYpYttswEPXHEKNF353N8tFxYTdc/Sil2MMAIXNkz0Ni oU3gjNuAbb2cXX9THumW0J0JDKa+198JXfVJ/lgPWSyffmFTk7tvzplcQLFy8omDKjYr3PH+rDE 9LJg9ZyuCBgozImD3l7MQCgRmObHpNiAmJ0DFHA3fy8kCGrMIDm/rKyjDsxzvvN/8/W8hjlp+AP A6h8WZru+mSCltgff5/gvSxgsL/2yZPDb7j31mAsyJwbVrVOQUEorFkfxUOHuid8dZqSP5MAAFb m6PdLoRGae9o3KYNiNPfzIgeXGk8x+koMlHm+SBLO3U518Gvcg== X-Google-Smtp-Source: AGHT+IG+EZLeLmn3pA4SkPYD6YBDzfVc1wvjXd5Cqj5zUMK2752RoEshm0kWHwYBwZdhLTBWhAx1Kg== X-Received: by 2002:a05:6000:178a:b0:37c:d11f:c591 with SMTP id ffacd0b85a97d-38260b5ba0amr8895700f8f.17.1732563288334; Mon, 25 Nov 2024 11:34:48 -0800 (PST) Original-Received: from localhost (sgyl-45-b2-v4wan-166941-cust3717.vm6.cable.virginm.net. [82.37.190.134]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbee043sm11271517f8f.104.2024.11.25.11.34.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2024 11:34:47 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=abdo.haji.ali@gmail.com; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:295958 Archived-At: 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. 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. 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. 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? -- Al