From unknown Sun Jun 22 07:53:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74536: 30.0.50; undocumented box behaviour in faces 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-GNU-PR-Keywords: To: 74536@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1732563296858 (code B ref -1); Mon, 25 Nov 2024 19:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2024 19:34:56 +0000 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 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 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 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 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) 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) From: Al Haji-Ali Date: Mon, 25 Nov 2024 19:34:41 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 From unknown Sun Jun 22 07:53:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74536: 30.0.50; undocumented box behaviour in faces 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 X-GNU-PR-Keywords: To: Al Haji-Ali Cc: 74536@debbugs.gnu.org Received: via spool by 74536-submit@debbugs.gnu.org id=B74536.17325639052937 (code B ref 74536); Mon, 25 Nov 2024 19:46:02 +0000 Received: (at 74536) by debbugs.gnu.org; 25 Nov 2024 19:45:05 +0000 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 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 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==; Date: Mon, 25 Nov 2024 21:44:51 +0200 Message-Id: <861pyzhzd8.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Al Haji-Ali on Mon, 25 Nov 2024 19:34:41 +0000) References: X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From unknown Sun Jun 22 07:53:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#74536: 30.0.50; undocumented box behaviour in faces Resent-From: Al Haji-Ali Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 25 Nov 2024 21:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74536 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug To: Eli Zaretskii Cc: 74536@debbugs.gnu.org Received: via spool by 74536-submit@debbugs.gnu.org id=B74536.173256952020227 (code B ref 74536); Mon, 25 Nov 2024 21:19:01 +0000 Received: (at 74536) by debbugs.gnu.org; 25 Nov 2024 21:18:40 +0000 Received: from localhost ([127.0.0.1]:41778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFgTg-0005GB-5M for submit@debbugs.gnu.org; Mon, 25 Nov 2024 16:18:40 -0500 Received: from mail-wm1-f44.google.com ([209.85.128.44]:45195) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tFgTe-0005Fv-2z for 74536@debbugs.gnu.org; Mon, 25 Nov 2024 16:18:38 -0500 Received: by mail-wm1-f44.google.com with SMTP id 5b1f17b1804b1-43497839b80so17661365e9.2 for <74536@debbugs.gnu.org>; Mon, 25 Nov 2024 13:18:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732569452; x=1733174252; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=AQQzTz/99L6XuFUJ9HGpNMurGtebxRCcWUpMgQQ1lrc=; b=OftBjR0vhWi0JynJhXnSenBnDXGLC7/mKeiT7lZ6ZTxW3xhf7+OkSb1lVDvkXL9FKG 26Ef5thzoqlxe0YnL+ZPUYEH8aBNkCkvajJANrlvtwSv3a/0GexxcuhNlY3HGWnHg4OR Pdd3EkU1v/799+ilDkb3Jh0vr4BMMUYs+AukBBzHPt5Y0kY3rWEDKGfxrmuF7V9YmD+T G609n4rkt8gW5cSXT2sU++wJ9fb5L/znBDQX1df+fCrFELwf5xqGbARcqB9HJ6o4/Cz5 QPmmcgFDqOINPvWO7d+pmNakEPnRL5WzUJebdJW9wjf2B4Vct8DSaKHkkncm4aDLhgC6 umyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732569452; x=1733174252; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AQQzTz/99L6XuFUJ9HGpNMurGtebxRCcWUpMgQQ1lrc=; b=cjziMpY+KrFzCSoKBC1oc+EWOANFcnIbc5uMlej3GmmnZL/05JwKnxhkdxIFUPEFEK FGKKb8lVH2N3lfgcIxIHgJQYpUPu7r8jWFphK12sKyRRmKErP2KvYwj1/LVLZfUU28r+ sSb7jV4IkFsGMpIfixv1g5zcf9nL8fqSjWw0udknHEAlfIMuf+efNYd9oID2qNW3Ilz5 +Fv1nSj9L9DrXAQESL4nOVIVpGrg7lQGqLmAdP2aMVBxyn0R64dwszLetB5WYV1gXkFq +IUzBK5k/5UUJinAdFCRyVyObMQaBQ9eBs1Bt1PVFmpf4MAz+Ll4uwLUYBblR1o2Qw78 hKew== X-Gm-Message-State: AOJu0YzrBMi4GGhSBzeURJRKhLGqMaziZbI52etdaywnKw7RW1sGZ669 mauKxznSvLA5e1dkcAB8jBCFArVktc84RP9KaGrVd48uQ42Ll/1V X-Gm-Gg: ASbGncsFJ2vNdHrphodzSVACRA6Ed+NbmGpWBly/AR4ZE/BcbPeUBJV8tjKm4dLq4xi f/LfTSjisn/FX37gXW6ZzLzCK+yZpT7HHn2xEfR86tNSVdoUn4uRVeJdBLDMV41luv/qmIowUbU yIfGB++5wXgtYTQ+276OePMvZxmq3CcNNkstbtwRWu2BDlenfFfxpk8f9JZ2wPWQXVhUfrBfoel vOlzsG1fIYBHypK97OoTj/sAjCH7AjK52dUBugxIMCEyAFtPyUF5yY1PtFa0172WQOib027Bycf 0HqQeBp3/mTcM4HC68O/xRoY6QfQqq9IqI8ClwQB5SSOb61inQ== X-Google-Smtp-Source: AGHT+IFy+VetPlJ7Dg0NyydA/LSQhGWmMxNTGHVB0txQ7q49JYVAq1DQI8mKfnIKt7IdYGcrZyjo8A== X-Received: by 2002:a05:600c:1d1e:b0:434:a1d3:a30f with SMTP id 5b1f17b1804b1-434a1d3a4ecmr25630135e9.6.1732569451810; Mon, 25 Nov 2024 13:17:31 -0800 (PST) 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-3825fbed9a8sm11404436f8f.92.2024.11.25.13.17.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Nov 2024 13:17:31 -0800 (PST) From: Al Haji-Ali In-Reply-To: <861pyzhzd8.fsf@gnu.org> References: <861pyzhzd8.fsf@gnu.org> Date: Mon, 25 Nov 2024 21:08:48 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Thanks for the response. On 25/11/2024, Eli Zaretskii wrote: >> 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? > Exactly what you explained: > Yes. Basically, Emacs doesn't examine box face changes unless it > changes from box to no-box or vice versa. -- Al From unknown Sun Jun 22 07:53:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Al Haji-Ali Subject: bug#74536: closed (Re: bug#74536: 30.0.50; undocumented box behaviour in faces) Message-ID: References: <867c8l80gn.fsf@gnu.org> X-Gnu-PR-Message: they-closed 74536 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: notabug Reply-To: 74536@debbugs.gnu.org Date: Sat, 30 Nov 2024 10:46:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1732963562-4472-1" This is a multi-part message in MIME format... ------------=_1732963562-4472-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #74536: 30.0.50; undocumented box behaviour in faces which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 74536@debbugs.gnu.org. --=20 74536: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74536 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1732963562-4472-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 74536-done) by debbugs.gnu.org; 30 Nov 2024 10:45:09 +0000 Received: from localhost ([127.0.0.1]:45627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHKyK-00016r-Q1 for submit@debbugs.gnu.org; Sat, 30 Nov 2024 05:45:09 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHKyJ-000125-6n for 74536-done@debbugs.gnu.org; Sat, 30 Nov 2024 05:45:07 -0500 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 1tHKyD-0007ks-Nw; Sat, 30 Nov 2024 05:45:01 -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=RUrklo2yG84Nnb+6S2FU7Fp/FxwTTXoMNBuci4iY8/k=; b=sZyiBWJokxmB n/ER4oudwfWq2M1lGagFHKNLolrYr1Yg+iu6znt9Dvq1ZsMB7nW8KQ833lNAm4a++IyyygCN+u3be gppecnkP+LPDSyeCaZsZDBVUkBzB4XUgkMlue3zbktGbvWEmnCVXNsZW7EnJ/KCr7RcHZtYNAFTZC qj5blzdMrYnbdIkLUE5f4mQAd4VWM+js39WDaoCmtk2c4F4o2CaNpxNwXhCpJBJUbehwyot6blI2e 24bSIVO2ieC/DZVQkb7C2Y2jM+QyF2QiGjK1Hd1/J7HxCck8avT7HGGoHGBmRni4tFxuPmPqMIcD9 n0D2CRcIFSEPeK1/Y1hrvw==; Date: Sat, 30 Nov 2024 12:44:56 +0200 Message-Id: <867c8l80gn.fsf@gnu.org> From: Eli Zaretskii To: Al Haji-Ali In-Reply-To: (message from Al Haji-Ali on Mon, 25 Nov 2024 21:08:48 +0000) Subject: Re: bug#74536: 30.0.50; undocumented box behaviour in faces References: <861pyzhzd8.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 74536-done Cc: 74536-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Al Haji-Ali > Cc: 74536@debbugs.gnu.org > Date: Mon, 25 Nov 2024 21:08:48 +0000 > > > Thanks for the response. > > On 25/11/2024, Eli Zaretskii wrote: > >> 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? > > > > Exactly what you explained: Done. ------------=_1732963562-4472-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Nov 2024 19:34:56 +0000 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 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 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 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 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) 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) From: Al Haji-Ali To: bug-gnu-emacs@gnu.org Subject: 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 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-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 ------------=_1732963562-4472-1--