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: Re: Several proposals, that I think will be helpful(or i dont know about). Date: Mon, 25 Nov 2013 22:42:42 +0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013c6edeb018e804ec04ba0e X-Trace: ger.gmane.org 1385404965 22085 80.91.229.3 (25 Nov 2013 18:42:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 18:42:45 +0000 (UTC) To: Stefan Monnier , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 25 19:42:49 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 1Vl17R-0003Qf-8i for ged-emacs-devel@m.gmane.org; Mon, 25 Nov 2013 19:42:49 +0100 Original-Received: from localhost ([::1]:54437 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl17Q-00056t-Sx for ged-emacs-devel@m.gmane.org; Mon, 25 Nov 2013 13:42:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45210) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl17N-00056k-5l for emacs-devel@gnu.org; Mon, 25 Nov 2013 13:42:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vl17L-00030a-S0 for emacs-devel@gnu.org; Mon, 25 Nov 2013 13:42:45 -0500 Original-Received: from mail-ie0-x230.google.com ([2607:f8b0:4001:c03::230]:33578) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vl17L-00030U-MJ for emacs-devel@gnu.org; Mon, 25 Nov 2013 13:42:43 -0500 Original-Received: by mail-ie0-f176.google.com with SMTP id at1so7399965iec.21 for ; Mon, 25 Nov 2013 10:42:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iQsy0v1tMKF5KJ47YXZI+pOnfdgjieyUazsFRz8Asgs=; b=ZGrItREHwhbJ4IPTdTIMOBfP4t4KBpyFAhFo/dPwtkQCArGFfVty4z+GT38aVeHNB9 og0RHpbYD6n49q2F3qqGIg1+dVkL5tT2lVccIruYDNadns6x9RFpAQ57M4D1ttINlLnx 8RveAM+3/p4RUcdNE3+Q9YFDHa9zlvPjSEOb0AAiB3tjsONep8oJvFoIvcXSYcJ9TNC7 SXP55tyQRVrEUPgQuUBotlCLPPWQUrGfVke+tVbFTUbq5qVDvFGY6cybgh/9FMhERZVo v/NHbexHfCfo4gVMpUr5CM3UJ9AxTs1kQyUdJPqGESvj/kLhvpcx4lVPvfOCYOlEU8l/ ddpQ== X-Received: by 10.50.78.196 with SMTP id d4mr14224523igx.2.1385404962967; Mon, 25 Nov 2013 10:42:42 -0800 (PST) Original-Received: by 10.43.74.137 with HTTP; Mon, 25 Nov 2013 10:42:42 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::230 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:165714 Archived-At: --089e013c6edeb018e804ec04ba0e Content-Type: text/plain; charset=UTF-8 > We're talking about determining the current state Here what I have: # cat ~/.emacs-experiments -- (message "initial-frame: %s; frame: %s; eq: %s;" frame-initial-frame (selected-frame) (eq frame-initial-frame (selected-frame))) # emacs -q --daemon=exp --load ~/.emacs-experiments -- ("emacs" "--load" "/home/constantin/.emacs-experiments") -- Starting Emacs daemon. -- initial-frame: nil; frame: #; eq: nil; On 25 November 2013 22:26, Stefan Monnier wrote: > >> frame-initial-frame > > hmm. The name of variable looked promising and I didn't know about it, > but > > it's value is `nil'. > > emacs-version is "24.3.50.1" > > We're talking about determining the current state, so the fact that it's > nil at some point is not necessarily a problem. Also, if that var work, > try terminal-frame instead (which the one I was thinking of, really). > It's also nil when you look at it interactively, but just like the > other, it's not always nil (otherwise those vars would be useless). > > > Stefan > --089e013c6edeb018e804ec04ba0e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> We're talking about determining the current = state

Here what I have:

# cat ~/.emacs-= experiments
-- (message "initial-frame: %s; frame: %s; eq: %s;"= ; frame-initial-frame (selected-frame) (eq frame-initial-frame (selected-fr= ame)))

# emacs -q --daemon=3Dexp --load ~/.emacs-experiments
-- ("= ;emacs" "--load" "/home/constantin/.emacs-experiments&q= uot;)
-- Starting Emacs daemon.
-- initial-frame: nil; frame: #<fr= ame F1 0x9a6a50>; eq: nil;



On 25 November 2013 22:26, Stefan Monnier <monnier@iro.umo= ntreal.ca> wrote:
>> frame-initial-fra= me
> hmm. The name of variable looked promising and I didn't know about= it, but
> it's value is `nil'.
> emacs-version is "24.3.50.1"

We're talking about determining the current state, so the fact th= at it's
nil at some point is not necessarily a problem. =C2=A0Also, if that var wor= k,
try terminal-frame instead (which the one I was thinking of, really).
It's also nil when you look at it interactively, but just like the
other, it's not always nil (otherwise those vars would be useless).


=C2=A0 =C2=A0 =C2=A0 =C2=A0 Stefan

--089e013c6edeb018e804ec04ba0e--