unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: Render a buffer or string to a simpler string?
Date: Sat, 25 May 2013 16:45:52 -0400	[thread overview]
Message-ID: <barmar-E5ECD9.16455225052013@news.eternal-september.org> (raw)
In-Reply-To: mailman.381.1369510626.22516.help-gnu-emacs@gnu.org

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	other threads:[~2013-05-25 20:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.381.1369510626.22516.help-gnu-emacs@gnu.org>
2013-05-25 20:45 ` Barry Margolin [this message]
2013-05-25 19:36 Render a buffer or string to a simpler string? Dmitry Gutov
2013-05-25 20:58 ` Eli Zaretskii
2013-05-25 21:46   ` Dmitry Gutov
2013-05-26  2:50     ` Eli Zaretskii
2013-05-26  3:38       ` Dmitry Gutov
2013-05-26 15:11         ` Eli Zaretskii
2013-05-26 15:40           ` Dmitry Gutov
2013-05-26 16:15             ` Eli Zaretskii
2013-05-26 23:20               ` Dmitry Gutov
     [not found]             ` <mailman.418.1369584930.22516.help-gnu-emacs@gnu.org>
2013-05-26 17:08               ` esabof
2013-05-26 23:36                 ` Dmitry Gutov
2013-05-26 17:16       ` Stefan Monnier
2013-05-26 23:28         ` Dmitry Gutov
     [not found]       ` <mailman.419.1369588606.22516.help-gnu-emacs@gnu.org>
2013-05-26 17:56         ` esabof
2013-05-27  2:47           ` Eli Zaretskii
2013-05-27  2:48           ` Dmitry Gutov
     [not found]           ` <mailman.445.1369622831.22516.help-gnu-emacs@gnu.org>
2013-05-27 11:59             ` esabof
     [not found]           ` <mailman.446.1369622948.22516.help-gnu-emacs@gnu.org>
2013-05-27 12:14             ` esabof

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-E5ECD9.16455225052013@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).