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 01:07:04 +0800 Message-ID: <87r2tv9knb.fsf@gmail.com> References: <87tvyrabkk.fsf@gmail.com> <838tg3b27v.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1508692071 29201 195.159.176.226 (22 Oct 2017 17:07:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Oct 2017 17:07:51 +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 19:07:47 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 1e6Jis-0005xp-TO for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 19:07:39 +0200 Original-Received: from localhost ([::1]:33649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Jj0-0001UG-0x for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 13:07:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51146) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6JiS-0001Ty-BS for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 13:07:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6JiR-00011x-3q for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 13:07:12 -0400 Original-Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:45667) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6JiP-0000yw-3d; Sun, 22 Oct 2017 13:07:09 -0400 Original-Received: by mail-pf0-x22a.google.com with SMTP id d28so15434259pfe.2; Sun, 22 Oct 2017 10:07:08 -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=6cNLNS/bb6Nc2j5wzC/JK+RyR2VHTBqKD5RU27CGjqE=; b=iysUmikypOsLJ8aPv8xlKkmA6unfsxHpH9PnpECJslhUF/ysRKhwLd0Qda0laj6iNs vfsOluek9/g6y3cBCknLlusovjjcIGXYLeo2ZZh1D38CHwxnFCoyjN8ahkrt370cFzxV sPou73vEf98CE8n5kg2+PGvwxylXGmDJsRWrJhdEvoBdWTGiv4+t9yqNCxpI17Dm1aFT L21Xzsm78Waf8/tF4Jq1FCDn8MmeUS6b7BqjNT1dvWoLz8X1vUK9C6eEjcjuZijiP+B5 stQTSNInjfwJQJ5qGQw6fdqwhmFydSdrUAwsEmFl124Jpg4t245+DDzE6lAZs7yQvZpD ZRGg== 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=6cNLNS/bb6Nc2j5wzC/JK+RyR2VHTBqKD5RU27CGjqE=; b=CE0jUAlPP0Kwrd2PlwX2K2SnCr8NIQNqUZAjkH+3bePkOPcs3YXCTIx6qHRrZ8B1H0 mk2Wfp7VJ9qNbA9Jf1hBmUqHyLlgkCbWkzZZNW2VEUf4I2tEz/yVn8H8/oGfnoLBPBz1 AZf+ZdJU0Zuy7P6dUfbNYwucFtggapChhkitAzTV5UI3OjtjBkTBYPk3wkfQiMy3Csxi /9i27nJvzh4+OttUoLuKALErnN5zUI0LZ4Dx3AA9Vkv9yo4Z1IhBMGw5dh88xB6poVjh wCYdqYIASEmMCzzPJnCxLUlWUWSC3Ao5YYpSQmWJ8+7Bk2PE0gJPze2zA5Kw4IucnTqx gtjg== X-Gm-Message-State: AMCzsaX8Q8bu7xHuvjsskVdTo9RzarGmEMl9DxgZnEMlR64nCy6NbsL9 H+hsXofDRYEwXX9zaWxKg7rJmGxt X-Google-Smtp-Source: ABhQp+Rmxdb4cQJAkfG8Bkx08Gypo1Iw9y+UTnY+LIzgz8aRzA+Se7oW2OWeTXrqE1OYeRQP1XUoaw== X-Received: by 10.98.161.24 with SMTP id b24mr10877822pff.297.1508692027753; Sun, 22 Oct 2017 10:07:07 -0700 (PDT) Original-Received: from localhost ([2604:180:3:28::c542]) by smtp.gmail.com with ESMTPSA id k8sm8033463pgt.22.2017.10.22.10.07.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Oct 2017 10:07:07 -0700 (PDT) In-reply-to: <838tg3b27v.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::22a 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:114604 Archived-At: Hi, could you show the elisp code that resolves this? I don't quite understand how to give a distinct face. regards, Eli Zaretskii writes: >> From: Amos Bird >> Date: Sun, 22 Oct 2017 15:25:31 +0800 >> >> (set-window-margins (get-buffer-window) 20 0) >> (overlay-put (make-overlay (point) (point)) 'before-string >> (propertize "." 'display `((margin left-margin) ,"Hi there!"))) >> (hl-line-mode) >> >> The string "Hi there!" is also highlighted. How can I disable >> that? > > Give the string a distinct face. -- Amos Bird amosbird@gmail.com