From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: Idea: Be able to use text properties as face attributes Date: Wed, 29 Mar 2017 11:36:54 -0400 Message-ID: <807bb748-55c5-57ab-3442-b60fc31859a8@gmail.com> References: <7a902f7b-d808-4d0f-8ff9-b8f07eaddf83@default> <83h92e93ip.fsf@gnu.org> <8080a162-700f-42cc-aec9-5fdd7c646297@default> <8360iu8sdm.fsf@gnu.org> <19e94d18-656f-4a8f-8843-4d46ffdd037b@default> <83shlx782i.fsf@gnu.org> <403a3ff2-464f-4eb5-9843-60592e786955@default> <83a8846srr.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1490801880 6055 195.159.176.226 (29 Mar 2017 15:38:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 29 Mar 2017 15:38:00 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 29 17:37:55 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctFfS-0000WL-GT for ged-emacs-devel@m.gmane.org; Wed, 29 Mar 2017 17:37:50 +0200 Original-Received: from localhost ([::1]:59640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctFfY-0004Im-Iq for ged-emacs-devel@m.gmane.org; Wed, 29 Mar 2017 11:37:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57839) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctFec-0004Ig-HA for emacs-devel@gnu.org; Wed, 29 Mar 2017 11:36:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctFeb-0003nX-NI for emacs-devel@gnu.org; Wed, 29 Mar 2017 11:36:58 -0400 Original-Received: from mail-qt0-x232.google.com ([2607:f8b0:400d:c0d::232]:36403) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctFeb-0003nQ-Ih for emacs-devel@gnu.org; Wed, 29 Mar 2017 11:36:57 -0400 Original-Received: by mail-qt0-x232.google.com with SMTP id r45so15868805qte.3 for ; Wed, 29 Mar 2017 08:36:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=UMWtzI8j19yiruvSsuRbmSyVHiEe9fY/QUfjAx1B7Ms=; b=Hn4ekTaR+UUAZ9CF9X5v7YXa7+3K59SPKserqKkefQTOWeMe5HpqN1h27YPRA1b+rk HNvps8c5+OcDaWOMt+Syr9cXJqgYIwVYLhcpe5gkGmfy2sNCG67UpOjxY6rAYid7yH7c mte162z5AeOqPQPbNCLN6EnHNxdiETRXWB1eXLBs6xpyb6kIpvYSe1BTiV+uOIRF8ys0 6rxSWutKxEXTsHQfE4NjPl1Zh16MwInu5qBvlSsTEOdlfiebmPSAJ8XiFU1QuH/PQ4X9 4SCabs0TML2in4NpmaRiKETn0BrOmHx3FhNBJT1tVFs/IOdLQnQ5pGkTbDSVBByOt7Ke WJQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=UMWtzI8j19yiruvSsuRbmSyVHiEe9fY/QUfjAx1B7Ms=; b=Tk+xuM0Ps2vupCB46a8uOxX0ZE2PvT1sHeYLN7uYStBnZYnBhgEsofP7HHkfKI5IDd AV5V7O6uh7X007wli4725ATuSZvbhXQOMzdOC9s/T5chl8Kyye2GDsOFy41116atgqmK d2Y3nhfBCCMlsfDmPJczZRR3QoMhwinMkg6wvDMizOra5Fg4acqJR3/q3QE5XqhZOkyZ E7nDJRgC3yN+8shz94zTIGwfohEOjEJyK1WYdWt1QoMZQhtjNM+S27YYik+kSUm4SCiS PpWrrzLCZl7I+uSgDVPxs1NZGuKuNSOddNEdCDOJ3IAibkzkXAev/13MASRYkJ3xErjT XFgg== X-Gm-Message-State: AFeK/H241oXGWLwaWdlFIoeHYfNAK+7OlRBzCDoX36dGNuavXsmyEmY1pSAruKKQwsEV2g== X-Received: by 10.200.47.9 with SMTP id j9mr1292728qta.57.1490801816758; Wed, 29 Mar 2017 08:36:56 -0700 (PDT) Original-Received: from ?IPv6:2001:470:8b2d:1a:9bab:c177:73b2:20a9? ([2001:470:8b2d:1a:9bab:c177:73b2:20a9]) by smtp.gmail.com with ESMTPSA id 4sm4637922qkq.51.2017.03.29.08.36.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 29 Mar 2017 08:36:56 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::232 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:213502 Archived-At: On 2017-03-29 11:21, Lars Ingebrigtsen wrote: > That is: He wants to say > > (defprop my-prop '(:read-only t :invisible nil :font "futura")) > (set-text-prop (point-min) (+ (point-min) 4) my-prop) > (set-text-prop (+ (point-min) 10) (+ (point-min) 20) my-prop) I think that's what I proposed in response to Drew's original message, and what Stefan suggests (it's a natural extension of overlay categories). But I'm not sure it's what Drew had in mind. Specifically, Drew (IIUC) would like *faces* to behave as these hypothetical 'defprop's. This way, all the existing machinery on faces could be reused. Clément.