From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: deferred-action Date: Sun, 20 Mar 2011 05:16:04 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1300594621 28516 80.91.229.12 (20 Mar 2011 04:17:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Mar 2011 04:17:01 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 20 05:16:57 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q1A4U-0001km-1Y for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2011 05:16:54 +0100 Original-Received: from localhost ([127.0.0.1]:44245 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1A4T-0000EW-6s for ged-emacs-devel@m.gmane.org; Sun, 20 Mar 2011 00:16:53 -0400 Original-Received: from [140.186.70.92] (port=35408 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q1A4N-00008g-QW for emacs-devel@gnu.org; Sun, 20 Mar 2011 00:16:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q1A4M-0007p4-11 for emacs-devel@gnu.org; Sun, 20 Mar 2011 00:16:47 -0400 Original-Received: from mail-gx0-f169.google.com ([209.85.161.169]:51305) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q1A4L-0007om-Ui for emacs-devel@gnu.org; Sun, 20 Mar 2011 00:16:45 -0400 Original-Received: by gxk23 with SMTP id 23so2529066gxk.0 for ; Sat, 19 Mar 2011 21:16:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=JI8rLZa31W49mgzOOsGgmC50GANFzWqPU683cWOwSBE=; b=VmS/DUesMBVhxA8mFvXm+6Cjsv6ktZSBVAK98HguBqHILE+anU2knQKatXsN4SGccr YLon5X0tqdHeTXL+KjRWGRgiXqeGUghFd2UwzU2+tm0ZZ2mO2KQeddc2Aa69h+19xPY1 DHFHeAo3ahGAYnKFaYedJRSnOhAB4gWJPwCkw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=pYSVfVgzwJcDNQS0YaBhrnDeEMzzJtj74mSBqZED4wa5zJjhMfJs3ulvrXVQyEAmUC u6LaCON+eaule5+HAF+vEToWjwlLWcU/ST7tIxLCCY0jbTbYVCSTc/RXoHbUnovUY6BU f+UBz/eryaCM3ly8qw2FN172pIrnm99ba/x7o= Original-Received: by 10.151.27.16 with SMTP id e16mr2683249ybj.356.1300594604065; Sat, 19 Mar 2011 21:16:44 -0700 (PDT) Original-Received: by 10.147.34.11 with HTTP; Sat, 19 Mar 2011 21:16:04 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.169 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:137447 Archived-At: What are the variables deferred-action-list and deferred-action-function used for? Their API is a bit surprising: there's a list of things to do, and a function to do things (so, a sort of a poor man's hook) with absolutely no explanation (nor documentation on the Elisp manual) of how it is intended to be used, how to manage conflicts supposing that different pieces of code want to use it, etc. The only reference to them on the Emacs sources is in emacs-lisp/ert-x.el, and it's really just aping the Emacs command-loop. And the only other reference I find is in anything.el (in the Emacs wiki), where they are basically used as a sort of post-command hook. I think Roland McGrath asked basically this same question back in 1994 (http://www.maths.tcd.ie/local/JUNK/cyclic/mailing-lists/arcana/0022.html), so perhaps it is time to document these variables or deprecate them. =C2=A0 =C2=A0 Juanma