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:42 +0800 Message-ID: <87po9f9km9.fsf@gmail.com> References: <87tvyrabkk.fsf@gmail.com> <86vaj7xje8.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: blaine.gmane.org 1508692303 7143 195.159.176.226 (22 Oct 2017 17:11:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Oct 2017 17:11:43 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 25.3.1 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Oct 22 19:11:39 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 1e6Jmh-0000nE-CX for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 19:11:35 +0200 Original-Received: from localhost ([::1]:33671 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Jmo-0003wl-Rw for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Oct 2017 13:11:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e6Jj1-0001nX-3y for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 13:07:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e6Jiz-0001Ia-PG for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 13:07:47 -0400 Original-Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:55552) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e6Jiz-0001IO-JJ for help-gnu-emacs@gnu.org; Sun, 22 Oct 2017 13:07:45 -0400 Original-Received: by mail-pf0-x22a.google.com with SMTP id 17so15424314pfn.12 for ; Sun, 22 Oct 2017 10:07:45 -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=5pgqa6GL5nAOTXuA8ool/IKAvvxg7yyEvTYDFbqMl20=; b=ZgljZ3Et1hAF2B/djoyqWqZS3MawknhuH9Ad+2p7UlWof5jpPXzC9wYPsK8Au0TU6J 8fd7Yryvtlzi3MrPcgblwiA/K7y6dwkauCSm+l+8QIiJSC83gngsaibQWuAWJoNsu3lV +rS7ZbgCGviW3PUadWh7LZvYe/3tcPrW3EyAFjeBSfWqU424s4IWVIYQm2RlZy7dhJGf C0NilpBd/ria2T9NBVEK+TxCmEhhv0eJnOySy6EvwJlwl6cp79gIjyGmS0TRiQLeoebB NEZVNnB/fbOVXhDB6H3EX7P7Tlq6fTXYujirAI78B/IFZxuvnnQ13wVUYghPAjZrGtNC LFhg== 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=5pgqa6GL5nAOTXuA8ool/IKAvvxg7yyEvTYDFbqMl20=; b=o5XMFPk21KHSvTeJeUVEFBO8YvA/5mnW+KkuOrXYZ4GGYSVg+Tf2eM2566kz0Otj5Z yh73gReI2TceEfLRPgvdjeGNzeUMzuA3o+nfytYMyVfHZZPrnP5xWMiwb6zficGYY9OO UtPzar9dZG8sReukGa05LzEOkDlLbxLEbniUl8fsWoY/EZEbESOG8z3oDXDgLaxqlGMK ak5ezxh5UOd4jhurwQdGNS/yAyRrxrIQi76t6SW1SFxxH0bEtQkqjyJeh+7/Tq/uE5gW Oc2sGdCFj3NVug4Wc5lcxnXQgguVz+aD6mObxajQvk1hgeoxtnYys/kp6PXH08ICjHjH q24A== X-Gm-Message-State: AMCzsaWIeuIVqWnGSQ25lJHLiFqf2HJqTq9RSQBAElp4O0U93hztKIf7 GjYwHjL1vXoDnDO5ZvamrhRhILE2 X-Google-Smtp-Source: ABhQp+SO195V01U/Kr24RJIbspNnDKvDlgstVJkFuqK3aPS2eIQk2un2veVqq9LRjWeEJ23wU+wlwQ== X-Received: by 10.98.152.156 with SMTP id d28mr10695985pfk.267.1508692064851; Sun, 22 Oct 2017 10:07:44 -0700 (PDT) Original-Received: from localhost ([2604:180:3:28::c542]) by smtp.gmail.com with ESMTPSA id l79sm10393507pfb.33.2017.10.22.10.07.44 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Oct 2017 10:07:44 -0700 (PDT) In-reply-to: <86vaj7xje8.fsf@zoho.com> 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:114605 Archived-At: Hi, how can I use that to set margin text? Emanuel Berg writes: >> 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) > > I don't know what you're up to but in general > you can use `buffer-substring-no-properties'. -- Amos Bird amosbird@gmail.com