[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Render a buffer or string to a simpler string?
From: |
Barry Margolin |
Subject: |
Re: Render a buffer or string to a simpler string? |
Date: |
Sat, 25 May 2013 16:45:52 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.381.1369510626.22516.help-gnu-emacs@gnu.org>,
Dmitry Gutov <dgutov@yandex.ru> wrote:
> I'm currently fixing Company's popup overlay positioning and display
> interacts with org-indent-mode. The latter adds `line-prefix' text
> properties everywhere in the buffer, and they influence the offset of
> each line of the popup "rectangle".
>
> Is there an easy way to convert a string with `line-prefix' and,
> optionally, `prefix' and `display' properties to a string without those
> properties corresponding to how the former string is going to be
> displayed?
>
> Or, instead of a string, convert a buffer?
(remove-list-of-properties 0 (length string)
'(line-prefix prefix display)
string)
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
- Re: Render a buffer or string to a simpler string?, (continued)
- Re: Render a buffer or string to a simpler string?, Stefan Monnier, 2013/05/26
- Re: Render a buffer or string to a simpler string?, Dmitry Gutov, 2013/05/26
- Message not available
- Re: Render a buffer or string to a simpler string?, esabof, 2013/05/26
- Re: Render a buffer or string to a simpler string?, Eli Zaretskii, 2013/05/26
- Re: Render a buffer or string to a simpler string?, Dmitry Gutov, 2013/05/26
- Message not available
- Re: Render a buffer or string to a simpler string?, esabof, 2013/05/27
- Message not available
- Re: Render a buffer or string to a simpler string?, esabof, 2013/05/27
Re: Render a buffer or string to a simpler string?,
Barry Margolin <=