From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Redisplay hook Date: Mon, 04 Jul 2016 09:59:30 +0200 Message-ID: References: <577814F4.8060500@gmail.com> <8360sns8nj.fsf@gnu.org> <874m86xnf5.fsf@udel.edu> <83r3bap1hr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1467619196 6396 80.91.229.3 (4 Jul 2016 07:59:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jul 2016 07:59:56 +0000 (UTC) Cc: Mark Oteiza , rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 04 09:59:48 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 1bJynC-00052S-VD for ged-emacs-devel@m.gmane.org; Mon, 04 Jul 2016 09:59:47 +0200 Original-Received: from localhost ([::1]:45763 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJynB-0007n2-QQ for ged-emacs-devel@m.gmane.org; Mon, 04 Jul 2016 03:59:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJyn6-0007mv-9Q for emacs-devel@gnu.org; Mon, 04 Jul 2016 03:59:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bJyn5-0000tD-Ch for emacs-devel@gnu.org; Mon, 04 Jul 2016 03:59:40 -0400 Original-Received: from mx2.suse.de ([195.135.220.15]:44038) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bJymz-0000rr-BI; Mon, 04 Jul 2016 03:59:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Original-Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 951C3AC5E; Mon, 4 Jul 2016 07:59:31 +0000 (UTC) X-Yow: All this time I've been VIEWING a RUSSIAN MIDGET SODOMIZE a HOUSECAT! In-Reply-To: <83r3bap1hr.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 04 Jul 2016 05:42:56 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 195.135.220.15 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:205131 Archived-At: Eli Zaretskii writes: >> From: Mark Oteiza >> Date: Sun, 03 Jul 2016 20:22:06 -0400 >> Cc: Richard Stallman >> >> >> Richard Stallman writes: >> > > > Is there a standard way to run a function after each redisplay cycle? >> > > No, not that I know of. >> > >> > It is asking for trouble, since if there is any bug in it or confusing >> > behavior, you will get totally screwed. >> >> Well, pre-redisplay-functions already exists, and it appears to be a hook >> with equal potential for making trouble. > > No, because it runs _before_ redisplay. But a post-redisplay hook should not be any more dangerous than a post-command hook. Like the latter it could just be disabled automatically if anything went wrong. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."