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: Sun, 22 Oct 2017 15:43:42 +0800 Message-ID: <87shebaaq9.fsf@gmail.com> References: <87tvyrabkk.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1508675376 16606 195.159.176.226 (22 Oct 2017 12:29:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Oct 2017 12:29:36 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.3.1 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 22 14:29:32 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 1e6FNa-0002YD-O7 for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 14:29:22 +0200 Original-Received: from localhost ([::1]:32823 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6FNi-0004BN-74 for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 08:29:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6AvJ-0003dM-I2 for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:43:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6AvG-0002rw-Fo for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:43:53 -0400 Original-Received: from mail-pf0-x241.google.com ([2607:f8b0:400e:c00::241]:53191) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6AvG-0002rY-8R for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 03:43:50 -0400 Original-Received: by mail-pf0-x241.google.com with SMTP id e64so14920893pfk.9 for ; Sun, 22 Oct 2017 00:43:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:subject:in-reply-to:date:message-id :mime-version; bh=+AuBcdi0uBsmAEaDO5st8pFKyNJSRcgQmLczooJxZes=; b=h64J8uVsKCPG6VdCMsxkbQmT1uMTvK3la5v/JrXR3oVEWEPEi+6jPLFC33Uucnng14 gihKXpPfniR5sO4Mm3IungsMGy+b191jJuclrdWJiHrGVKS7Ryyhne4AC0DMYjcPVVhQ 80KBN+sf2dzXSyThK8ieXUSg2bQ5YMlxTIThjpgcvMGhAMn5UPTEhtvnUA8jEDk4Xmfv JwxZKRY1IRX8rqiOQ8LnWipvp5ne7MyJ07YP8gk2e4RF69ajic55UbywpEuGZCK+u6Jm l6DRusbc19nylEA9rjXUeNsOpAaIz6F6yJ0CaMQQ2VJBDv9ifG/aMPZ0k3DvFyFnhOZv 8SGA== 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:subject :in-reply-to:date:message-id:mime-version; bh=+AuBcdi0uBsmAEaDO5st8pFKyNJSRcgQmLczooJxZes=; b=EBgytLp+Eclqr8w+M7F1G5nLpEGvW2ucmqFvvTEzyUI5v+VtR/W+z02na08Hfwi1FI xwi5t651CDHo8XDCqTLFzh0mUrn/iGhbQeQIciywdzKti7TiyoROauxD2b/5j7V0vGIw eQq1WeYTzH7gNcPt6c+FHM1xDX1Ck8srep1rO81agf4195yG3U26iXbyM4MtiImSzUM4 XxAowP4+sUbB67vwnCgZPlByFsO0p97JQcRtMGjrYFaRNrLVi6aQEkVvPmvsNw0a72U1 fRC0mJsSFkjC+9a6/dGuHpXnSo2bjdZeW6aRXDtya3hjcuJ1/nja9/64ZLR4S/hOWhTd 9gWQ== X-Gm-Message-State: AMCzsaVCScAoW9pPv4/CfrGiQWSnxRoZ2bhAXgvJaQuFIlnkwrh3lPZN IrPPr5qkJNgzxxT345I+Gstj/w== X-Google-Smtp-Source: ABhQp+SlYjmFMTG7moguGX1OQ6ys3Mo1EXtYuyv40XQoVeqA0bNZ3awqFfeGRW/YjtkDovMF9+cxOg== X-Received: by 10.98.190.7 with SMTP id l7mr9642406pff.309.1508658229143; Sun, 22 Oct 2017 00:43:49 -0700 (PDT) Original-Received: from localhost ([52.187.54.120]) by smtp.gmail.com with ESMTPSA id s4sm6627690pgr.32.2017.10.22.00.43.48 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Oct 2017 00:43:48 -0700 (PDT) In-reply-to: <87tvyrabkk.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::241 X-Mailman-Approved-At: Sun, 22 Oct 2017 08:26:21 -0400 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:114598 Archived-At: I've also post a question at https://emacs.stackexchange.com/questions/36328/how-can-i-eliminate-the-side-effect-of-left-margin with some images for better description. Amos Bird writes: > Hi there, > > emacs -Q > > (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? > > regards, -- Amos Bird amosbird@gmail.com