From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Amos Bird Newsgroups: gmane.emacs.help Subject: Re: How can I remove effects of text properties in 'before-string Date: Mon, 23 Oct 2017 03:12:55 +0800 Message-ID: <87mv4j9etk.fsf@gmail.com> References: <87tvyrabkk.fsf@gmail.com> <838tg3b27v.fsf@gnu.org> <87r2tv9knb.fsf@gmail.com> <834lqrayti.fsf@gnu.org> <87o9oz9hsn.fsf@gmail.com> <831slvavm4.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1508699628 18709 195.159.176.226 (22 Oct 2017 19:13:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Oct 2017 19:13:48 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.3.1 Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 22 21:13:43 2017 Return-path: Envelope-to: geh-help-gnu-emacs@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 1e6Lgj-0002wz-Mt for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 21:13:34 +0200 Original-Received: from localhost ([::1]:34017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Lgr-000186-5O for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 15:13:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41072) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6LgG-000181-0p for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 15:13:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6LgE-0004JN-HZ for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 15:13:03 -0400 Original-Received: from mail-pg0-x231.google.com ([2607:f8b0:400e:c05::231]:56122) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6LgC-0004IF-BG; Sun, 22 Oct 2017 15:13:00 -0400 Original-Received: by mail-pg0-x231.google.com with SMTP id 15so5476488pgc.12; Sun, 22 Oct 2017 12:13:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version; bh=J7Z5iBY6p40TBgR4wMUUkSH2+aq6NB/jmz6cecDFIek=; b=q2F9oZMugTp5+JWd4HnsLtIfJq+k9gTSSfeg+8jlyFRnr0AchK662E3FhAFEQl5+OV WvTySEzCO8VLUWnLHg9ig1yGc6gSCon4KOV5I4sDQf4ccQyqY3/9z2x42cfADgw00ZpL UUaH0WAmUalPQjCSj0uw+mlHElFj1KbEz6TBbX/h4yPji6pAXC/0nZ9h2I+BcRx0gRof fkmy49BAggojxZ848qp5EFfrxKDCXmE8xv8tbjfKyVV6tzBdbq1uig9FqJGyNxq3Uy3a AVN4jUeumKYOjN9tZTh/LTisttqxalFwz/Ig3fHMh/0CXX18EQPIXAXR2oKw9h1vsnn0 ARRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version; bh=J7Z5iBY6p40TBgR4wMUUkSH2+aq6NB/jmz6cecDFIek=; b=ov+IFnb2WoninF66u6NehUExR55DjDvvxPz8BsoyGfh1am/+3HowZX/BOx8+AZVJNy O3nDOJMKbO4/kGI+zzcQtW9/jjuPCPdHZ3DwnWxXqtpBDOHBZWZiBZmOKixgAPF0p7k/ wa86w2S9a/mXWMN8X5t8+bs0GwUcOyCODgOAa3luQPB/HK9mBhfkFrsZwVfGFFrYzc/T ayGwfCR/cTli6lCzyJ5ycQ7LvNiIOlwpuTdcgjarB7wiP0r2HFn9Xs8la8FTg0/YWnSj ejN9xnZ0nVP0SY9kO9pwDlrVLdRpHL+1kZwyhGRHF9tqtBza8jNdIY0lbkv62VOoQmUD TsyA== X-Gm-Message-State: AMCzsaUWuxcEedmI96HcbF5Z+T4c31avj9A8FhKgeUzg94gTsA7IO64z +5/OvCRyW8p4+/5K6PMNqEwJ/JBb X-Google-Smtp-Source: ABhQp+TD7hJpDRUCd8q9dG7JZQIz3v+JZjgON81yky/e+vFHJJ1Ua/iujO6Igf4YOIcev7YvnGljXQ== X-Received: by 10.99.154.66 with SMTP id e2mr9811515pgo.116.1508699579137; Sun, 22 Oct 2017 12:12:59 -0700 (PDT) Original-Received: from localhost ([2604:180:3:28::c542]) by smtp.gmail.com with ESMTPSA id t78sm7969503pgb.93.2017.10.22.12.12.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Oct 2017 12:12:58 -0700 (PDT) In-reply-to: <831slvavm4.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::231 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:114610 Archived-At: Hi, (set-window-margins (get-buffer-window) 20 0) (setq ovstring (propertize "Hi, there!" 'face '((t (:foreground "magenta" :weight bold :inherit default))))) (overlay-put (make-overlay (point) (point)) 'before-string (propertize "." 'display `((margin left-margin) ,ovstring))) (hl-line-mode) The margin text doesn't appear to have the "magenta" color. regards, Eli Zaretskii writes: >> From: Amos Bird >> Cc: help-gnu-emacs@gnu.org >> Date: Mon, 23 Oct 2017 02:08:40 +0800 >> >> Hi, thanks for the code. It works! However, I tried to >> explicited >> set face to >> '((t (:foreground "magenta" :weight bold :inherit default)) >> >> which doesn't. Why? > > Please show the entire recipe, I don't think I understand well > enough > what exactly you did. -- Amos Bird amosbird@gmail.com