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: Making `x-underline-at-descent-line' a face attribute Date: Fri, 07 Jan 2022 10:28:06 +0200 Message-ID: <83mtk854rt.fsf@gnu.org> References: <87lezt5v7h.fsf.ref@yahoo.com> <87lezt5v7h.fsf@yahoo.com> <83r19l8d94.fsf@gnu.org> <87wnjd434b.fsf@yahoo.com> <83ee5l8433.fsf@gnu.org> <877dbd3vdk.fsf@yahoo.com> <8335m17z17.fsf@gnu.org> <87tueg1iei.fsf@yahoo.com> <83zgo858a2.fsf@gnu.org> <871r1kyq3e.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16742"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 07 09:28:40 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 1n5kc3-0004E6-Jz for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jan 2022 09:28:39 +0100 Original-Received: from localhost ([::1]:35668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n5kc2-0006dF-Cv for ged-emacs-devel@m.gmane-mx.org; Fri, 07 Jan 2022 03:28:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5kbH-0005WI-DD for emacs-devel@gnu.org; Fri, 07 Jan 2022 03:27:51 -0500 Original-Received: from [2001:470:142:3::e] (port=39396 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 1n5kbH-0000oy-2v; Fri, 07 Jan 2022 03:27:51 -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=UBCWdviVjs1MYBiJALm1mEy1/1pEG6RFLHzJBLkab/o=; b=PqHy1ZzO4qCE YYXgIhm+AzyQKvPp2KkzVYF6F8inRA4obo1ns3M+/kLco8Y8a3zhFUxoZBKeZvVuk8qlV74FncAXi BJCaOPKxBL735sQwbB5uv91d2Ie5hSWMVtlcYUTX4NjxQ5zDqASUA+ljh4E5KdCGJjROS9sr2NIf8 4w2hUW4bvFjhoXE9hnLsFygCUxHBQWGSsWW1eET5yNZg/tNc5RHgBc+ivXg+HeNcwX3t0pzhAlIK/ THZkTSQCkZJ5icRxWLOgyPKBrcl63Xx7CRjTeoWoTV2aHJ8tvwZ4eFGjmRxlPlm3G9PeJqLUp0nnP pCknZlr8d5fyTbf4N+offw==; Original-Received: from [87.69.77.57] (port=1359 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 1n5kbH-0007Fy-0S; Fri, 07 Jan 2022 03:27:51 -0500 In-Reply-To: <871r1kyq3e.fsf@yahoo.com> (message from Po Lu on Fri, 07 Jan 2022 15:14:45 +0800) 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:284385 Archived-At: > From: Po Lu > Cc: emacs-devel@gnu.org > Date: Fri, 07 Jan 2022 15:14:45 +0800 > > Thanks, one last question (before I start to implement this): what would > you recommend as a special value of `:underline'? > > Would it be okay to add a new property to the property list that is > already accepted as such a value? Yes, something like (:color COLOR :style STYLE :position POS) where POS can be t (with the same effect as non-nil value of x-underline-at-descent-line) or (if you want to get fancy) a number, to specify an explicit offset from the baseline.