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: Re: Render a buffer or string to a simpler string? Date: Mon, 27 May 2013 03:36:47 +0400 Message-ID: <87sj19b9f4.fsf@yandex.ru> References: <87bo7yq2az.fsf@yandex.ru> <83d2serd46.fsf@gnu.org> <87vc66d96b.fsf@yandex.ru> <83a9niqwsa.fsf@gnu.org> <87y5b2tnpl.fsf@yandex.ru> <834ndprd1z.fsf@gnu.org> <87sj19sqb2.fsf@yandex.ru> <74e4efaf-34a9-46fd-a590-bcd8b774be05@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1369611433 30143 80.91.229.3 (26 May 2013 23:37:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 May 2013 23:37:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: esabof@gmail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 27 01:37:13 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 1UgkUy-00070G-Od for geh-help-gnu-emacs@m.gmane.org; Mon, 27 May 2013 01:37:12 +0200 Original-Received: from localhost ([::1]:45456 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgkUy-0005xv-AQ for geh-help-gnu-emacs@m.gmane.org; Sun, 26 May 2013 19:37:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgkUe-0005xX-Nx for help-gnu-emacs@gnu.org; Sun, 26 May 2013 19:37:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgkUa-0007K5-Nr for help-gnu-emacs@gnu.org; Sun, 26 May 2013 19:36:52 -0400 Original-Received: from mail-lb0-f173.google.com ([209.85.217.173]:34336) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgkUa-0007K0-Fe for help-gnu-emacs@gnu.org; Sun, 26 May 2013 19:36:48 -0400 Original-Received: by mail-lb0-f173.google.com with SMTP id t10so6244713lbi.18 for ; Sun, 26 May 2013 16:36:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:x-antivirus:x-antivirus-status; bh=Lf1SFDXSDor2z7lzgzeIVQ3DJHOvIxislcqBIHW6K5k=; b=KovzXuQw/g1MDd7b58MKcJ8XFaNXAZSrcARPbUPqA/MWacjsR2bT4tE4WR3OB1O1vL xeSy+KOaZqEFxYKOoVWaukIKLDLkAKKW1q4u7QbL8FqWEthTF4wXg4P/shYXqMsuyxRI wNmmGN+2HpLWP3zNKvcVZHSQxL+LzQWQBluVcB4enzPweQiz7mv4YHV1GvFS/OSghfbK +6D0TO5C99ZKL+9CH2mAbEfSoERAEbaMJJX8SThRs+OrXqMhxfbWSCgBECnjLoJ125Qs llaHbczqz3lYfL6e4RUWMDcHctyR/lF2ShklULQ/O14VqhJlEv5dSnMYsgyJmUpar189 KWRA== X-Received: by 10.152.26.137 with SMTP id l9mr13386164lag.2.1369611407443; Sun, 26 May 2013 16:36:47 -0700 (PDT) Original-Received: from SOL ([178.252.98.87]) by mx.google.com with ESMTPSA id a3sm4455053lbg.2.2013.05.26.16.36.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 May 2013 16:36:46 -0700 (PDT) In-Reply-To: <74e4efaf-34a9-46fd-a590-bcd8b774be05@googlegroups.com> (esabof@gmail.com's message of "Sun, 26 May 2013 10:08:43 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (windows-nt) X-Antivirus: avast! (VPS 130526-0, 26.05.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.217.173 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:91080 Archived-At: esabof@gmail.com writes: > It shouldn't be very hard to create such a function in elisp - the subset of display properties you need is probably not very large. Doing that independent of rendering engine wouldn't be very durable, the tests using the result wouldn't be protected against display engine bugs and changes in behavior. And there are fine details like `line-prefix' values priorities (what if we have several such properties on one line?) that I think only expressed at C level. > Also, how hard it would be to put a single transparent image on top of a frame? This would allow more robust pop-ups, as well as other UI elements by using SVG. There was a discussion a little while ago about generalizing `x-show-tip' so it could be used to render popups of this kind. It's a nice idea, although it would benefit only the users of future Emacs releases.