From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.help Subject: Render a buffer or string to a simpler string? Date: Sat, 25 May 2013 23:36:52 +0400 Message-ID: <87bo7yq2az.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369510636 15021 80.91.229.3 (25 May 2013 19:37:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 May 2013 19:37:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 25 21:37:15 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UgKHD-0003Xw-BN for geh-help-gnu-emacs@m.gmane.org; Sat, 25 May 2013 21:37:15 +0200 Original-Received: from localhost ([::1]:41906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgKHC-0003T6-W8 for geh-help-gnu-emacs@m.gmane.org; Sat, 25 May 2013 15:37:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgKH1-0003Sw-8T for help-gnu-emacs@gnu.org; Sat, 25 May 2013 15:37:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgKH0-0005rk-CE for help-gnu-emacs@gnu.org; Sat, 25 May 2013 15:37:03 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:46575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgKH0-0005rg-5s for help-gnu-emacs@gnu.org; Sat, 25 May 2013 15:37:02 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UgKGx-0003Hv-56 for help-gnu-emacs@gnu.org; Sat, 25 May 2013 21:36:59 +0200 Original-Received: from 178.252.98.87 ([178.252.98.87]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 May 2013 21:36:59 +0200 Original-Received: from dgutov by 178.252.98.87 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 25 May 2013 21:36:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 178.252.98.87 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) Cancel-Lock: sha1:nifFW2fd1hweT01kXuH0r46VlqE= X-Antivirus: avast! (VPS 130525-0, 25.05.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:91050 Archived-At: 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? Somewhat relatedly, is there a way to make `count-screen-lines' work in batch mode (i.e. not return crazy numbers)? It would be nice to be able to run code that calls it on an integration server.