From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Constantin Kulikov Newsgroups: gmane.emacs.devel Subject: Several proposals, that I think will be helpful(or i dont know about). Date: Mon, 25 Nov 2013 14:18:06 +0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bd6b08612c1bd04ebfdaeac X-Trace: ger.gmane.org 1385374687 2720 80.91.229.3 (25 Nov 2013 10:18:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 10:18:07 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 25 11:18:13 2013 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 1VktF7-0007vH-D5 for ged-emacs-devel@m.gmane.org; Mon, 25 Nov 2013 11:18:13 +0100 Original-Received: from localhost ([::1]:51462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VktF6-0002cW-UP for ged-emacs-devel@m.gmane.org; Mon, 25 Nov 2013 05:18:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VktF2-0002cO-S4 for emacs-devel@gnu.org; Mon, 25 Nov 2013 05:18:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VktF1-0005Xp-It for emacs-devel@gnu.org; Mon, 25 Nov 2013 05:18:08 -0500 Original-Received: from mail-ie0-x233.google.com ([2607:f8b0:4001:c03::233]:35104) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VktF1-0005XZ-DC for emacs-devel@gnu.org; Mon, 25 Nov 2013 05:18:07 -0500 Original-Received: by mail-ie0-f179.google.com with SMTP id x13so6294287ief.24 for ; Mon, 25 Nov 2013 02:18:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=m919bB8YDrIN4PQMW6DY64SnrfvmgjmR2ClQy3k7ZBc=; b=MsuBg+lS+CfcmpKSOCpHYB0YE91Qr+qSUNF45AJwNenb1XlIBc+3+BDx/J6f9sT2cK UdBLwFcp1o5Kwt7HoimDVY0246s+CqLrOwCf8JHyjXxE4KSMG1Ckf98ZDS3nknjOvh6c dT9RGstUxYp6pC2jsGYSMQsy/+KzTXgIsZvRGI98wPTmt15IXtAVHt/EhpW8JfFahhk0 iDkCHPwdc8GS7OC2KEjX8kc0PTATLXQQ4tsefEFAxAz7HDTpu/8ngETk7/1FMMFjqPtt UATHesa/KnJoqcN21hH57ufCA4dJSo/GTUhOUaOoxfSdVV8x+2nsoNeAw1W7qXjev2Qk MhjQ== X-Received: by 10.50.57.115 with SMTP id h19mr12435502igq.2.1385374686559; Mon, 25 Nov 2013 02:18:06 -0800 (PST) Original-Received: by 10.43.74.137 with HTTP; Mon, 25 Nov 2013 02:18:06 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:165684 Archived-At: --047d7bd6b08612c1bd04ebfdaeac Content-Type: text/plain; charset=UTF-8 The first one let you know if you are at the 'loading' stage while emacs is starting. It could be useful in case when you start emacs --daemon from startup script and your elisp code intended to ask yes-or-no -- then emacs --daemon will stuck, but if you have some function like `loadingp' then you can defer some questions on after-make-frame-functions for example. Like: (if (and (daemonp) (loadingp)) (add-hook 'after-make-frame-functions ask-my-question) (ask-my-question)) This could be achieved by setting variable like `emacs-loading' to `t' in the beginning of .emacs and setting it to `nil' in the end. But I think there must be standard way for this. Second I want some standard way to filter out emacs daemon's 'frame'(usually it's frame with ('name . "F1") parameter) from `(frame-list)'. --047d7bd6b08612c1bd04ebfdaeac Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The first one let you know if you= are at the 'loading' stage while emacs is starting. It could be us= eful in case when you start emacs --daemon from startup script and your eli= sp code intended to ask yes-or-no -- then emacs --daemon will stuck, but if= you have some function like `loadingp' then you can defer some questio= ns on after-make-frame-functions for example.

Like:
(if (and (daemonp) (loadingp))
=C2=A0 (ad= d-hook 'after-make-frame-functions ask-my-question)
=C2=A0(ask= -my-question))

This could be achieved by setting variable= like `emacs-loading' to `t' in the beginning of .emacs and setting= it to `nil' in the end. But I think there must be standard way for thi= s.


Second I want some standard way to filter out= emacs daemon's 'frame'(usually it's frame with ('name = . "F1") parameter) from `(frame-list)'.

--047d7bd6b08612c1bd04ebfdaeac--