From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Redisplay hook Date: Sun, 03 Jul 2016 10:45:18 +0300 Message-ID: <83twg7qi5t.fsf@gnu.org> References: <577814F4.8060500@gmail.com> <8360sns8nj.fsf@gnu.org> <57789637.8020204@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1467531952 10478 80.91.229.3 (3 Jul 2016 07:45:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Jul 2016 07:45:52 +0000 (UTC) Cc: emacs-devel@gnu.org To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 03 09:45:46 2016 Return-path: Envelope-to: ged-emacs-devel@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 1bJc64-00037W-OB for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2016 09:45:44 +0200 Original-Received: from localhost ([::1]:41569 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJc63-0003Le-NW for ged-emacs-devel@m.gmane.org; Sun, 03 Jul 2016 03:45:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54637) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJc5x-0003CF-IM for emacs-devel@gnu.org; Sun, 03 Jul 2016 03:45:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJc5r-0005L4-SB for emacs-devel@gnu.org; Sun, 03 Jul 2016 03:45:36 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60931) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJc5r-0005Ky-OQ; Sun, 03 Jul 2016 03:45:31 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4302 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bJc5q-0000G8-12; Sun, 03 Jul 2016 03:45:30 -0400 In-reply-to: <57789637.8020204@gmail.com> (message from =?utf-8?Q?Cl=C3=A9?= =?utf-8?Q?ment?= Pit--Claudel on Sun, 3 Jul 2016 00:36:07 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:205105 Archived-At: > Cc: emacs-devel@gnu.org > From: Clément Pit--Claudel > Date: Sun, 3 Jul 2016 00:36:07 -0400 > > It's true :) I'd like to make screencasts (gifs) by saving a picture of an Emacs window or frame after each redisplay (I tried a number of programs that record screencasts, but they all gave disappointing results; by saving a picture (and a timestamp) after each redisplay, I might get much better results). I think such an application needs to hook into the GUI system, not into Emacs. That's because, at least on X, AFAIK Emacs doesn't necessarily flush the queue of X commands each time it finishes redisplay, so you may be disappointed by the results anyway. As a temporary measure, try calling your code from the function update_end (you will have to modify the C sources for that).