help-gnu-emacs
[Top][All Lists]
Advanced

[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 ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]