From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: esabof@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Render a buffer or string to a simpler string? Date: Mon, 27 May 2013 05:14:05 -0700 (PDT) Message-ID: <3b90dcd9-51d3-4e8d-a212-4e40646abae0@googlegroups.com> References: <87bo7yq2az.fsf@yandex.ru> <83d2serd46.fsf@gnu.org> <87vc66d96b.fsf@yandex.ru> <83a9niqwsa.fsf@gnu.org> <114b888b-eecb-4503-a7a1-9ec09a9e9a05@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1369659675 18219 80.91.229.3 (27 May 2013 13:01:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 May 2013 13:01:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon May 27 15:01: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 1Ugx32-0003P4-6c for geh-help-gnu-emacs@m.gmane.org; Mon, 27 May 2013 15:01:12 +0200 Original-Received: from localhost ([::1]:52912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ugx31-0003VE-Ra for geh-help-gnu-emacs@m.gmane.org; Mon, 27 May 2013 09:01:11 -0400 X-Received: by 10.224.174.145 with SMTP id t17mr15198144qaz.4.1369656846047; Mon, 27 May 2013 05:14:06 -0700 (PDT) X-Received: by 10.49.12.7 with SMTP id u7mr2197572qeb.31.1369656846030; Mon, 27 May 2013 05:14:06 -0700 (PDT) Original-Path: usenet.stanford.edu!t14no951454qam.0!news-out.google.com!y6ni51517qax.0!nntp.google.com!ch1no1337054qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=86.3.182.83; posting-account=hvyt3AoAAAAdOSTOoji20fUtIaG9BH0F Original-NNTP-Posting-Host: 86.3.182.83 User-Agent: G2/1.0 Injection-Date: Mon, 27 May 2013 12:14:06 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:198821 X-Mailman-Approved-At: Mon, 27 May 2013 09:00:45 -0400 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:91087 Archived-At: On Monday, May 27, 2013 3:48:54 AM UTC+1, Dmitry Gutov wrote: > The main problem as I see it, is how to output the difference >=20 > information in case of mismatch. Saying "these pics are different, go >=20 > look at them yourself" isn't very helpful for test-driven development. >=20 >=20 >=20 > This would extend to arrays of glyphs, too, maybe even to a larger >=20 > degree (haven't thought of that before). If you want to quickly become aware of differences between two images, you = can switch between them - human eyes are very good at detecting movement. Further, some image formats are quite straight forward (like BMP, if I'm no= t mistaken). It should be possible to implement a cropping function. It sho= uld also be possible to only display the rectangle which is different (with= some padding). I guess this could be made into an extension to ERT, and im= ages could be dumped along with other errors. Evgeni