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.devel Subject: Re: Box face Date: Fri, 04 Mar 2022 09:53:47 +0200 Message-ID: <83h78ei25w.fsf@gnu.org> References: <83ilsui3pf.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2674"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Anand Tamariya Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 04 08:56:07 2022 Return-path: Envelope-to: ged-emacs-devel@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 1nQ2nH-0000YK-5q for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Mar 2022 08:56:07 +0100 Original-Received: from localhost ([::1]:47540 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQ2nF-0002cu-Mb for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Mar 2022 02:56:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:38764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ2l1-0000hd-LF for emacs-devel@gnu.org; Fri, 04 Mar 2022 02:53:47 -0500 Original-Received: from [2001:470:142:3::e] (port=41570 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ2l1-0003Vx-CN; Fri, 04 Mar 2022 02:53:47 -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=kEpsmJ48pQGxYu1FsZvQNjnlxpcOkUhSsoKRIWGEReA=; b=QoshhfrGpEnO fopopsk4SGYV2c7hdRLKRaHmApjDRHpwi0cs4Yw+bJFYr55zvmr6Y/QzIUVPYcRncTWceaTJjjdwo H/YlfZOnLYCBGwCk4XcmOeYAeCc8p0EUZhb+KtjRbS3a+pSVKCZwoOgl0deH7ZGi1TG3iWW+OsexC ffKgi3ld/aofuTE6exHaezG8J/h6XL040hghHBkQEE6V99z8rOfaCXrr2MLt7aqefY4UHAybVD/ON 8sp6csGu/e+TlKZvoK1v8h9eOnLrmtXUTJPzSecs9hW5O6mUnNP0ESZ1BASQZim5lQCF/GfUxE4Sl cDSM1Pwiz6GZBM5znl03Lg==; Original-Received: from [87.69.77.57] (port=4047 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQ2l0-0008TG-RD; Fri, 04 Mar 2022 02:53:47 -0500 In-Reply-To: (message from Anand Tamariya on Fri, 4 Mar 2022 13:06:33 +0530) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:286809 Archived-At: > From: Anand Tamariya > Date: Fri, 4 Mar 2022 13:06:33 +0530 > Cc: Emacs Devel > > What do you mean by "box face"? :box is an existing attribute of a > face, so any face can be assigned the attribute to have the box > appearance. > > Something similar to underline face - an extension of default face with :box attribute activated. May be, call it > a cell face or something similar. This way a new user can use it for a spreadsheet scenario if he so desires. If we want to give users the ability to customize how cells look, it is best to have a special face for the text in a cell. By default this face could just inherit from 'default', but users who'd like the box appearance could then customize that face to add the :box attribute. So patches to add a special 'ses-cell' face are welcome, I think. In general, face appearance is highly subjective, and so is best left to user customizations, rather than forcing some attributes on everyone by default. Also, the :box attribute is only suitable for a relatively small number of specialized display situation, so having a special face for that doesn't seem justified.