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: Tue, 26 Nov 2013 14:23:14 +0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b10d01542fffb04ec11deb6 X-Trace: ger.gmane.org 1385461395 28813 80.91.229.3 (26 Nov 2013 10:23:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 10:23:15 +0000 (UTC) To: Stefan Monnier , emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 26 11:23:21 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 1VlFnc-0005Dq-U9 for ged-emacs-devel@m.gmane.org; Tue, 26 Nov 2013 11:23:21 +0100 Original-Received: from localhost ([::1]:57677 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlFnc-0004nf-Hb for ged-emacs-devel@m.gmane.org; Tue, 26 Nov 2013 05:23:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34965) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlFnY-0004nZ-VM for emacs-devel@gnu.org; Tue, 26 Nov 2013 05:23:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlFnX-000367-Iv for emacs-devel@gnu.org; Tue, 26 Nov 2013 05:23:16 -0500 Original-Received: from mail-ie0-x22a.google.com ([2607:f8b0:4001:c03::22a]:44034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlFnX-00035x-CS for emacs-devel@gnu.org; Tue, 26 Nov 2013 05:23:15 -0500 Original-Received: by mail-ie0-f170.google.com with SMTP id qd12so9083993ieb.29 for ; Tue, 26 Nov 2013 02:23:14 -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=Z3VDVoqw+lveIv6dCECS1iseEBeC0NZYoWrXOPtFixc=; b=alXeVN34tikcZReHU/qCYo9BgHESItZMryVm0GDFpSGePYk+9yboi8S9qGDpFhnrYE h6K31EtN2Cy3klPLbyBP8W5dC0IEpBJydNeuj32/h+1dCSOmfsuiBFlsfLuwlTmoXrpR aIwkhoLRXEBZp/fnMTOO+//6P0M8v9g2P82Gs2QlE/jmjGVuRZaa8kBVnPdrpE0T49EH RdMF3P61qzXT7riU++b0XKj1n9Jphu1Gf9vjURwA9BMokECKDNLP5HZjPci648WDt982 Zctk0t6jnTlOl9dBtJZpEFiWOD6Dt0pmCzZ2CEJfY3xELSbFpBelS5b9VuDEehpf5wPv Lq9A== X-Received: by 10.50.27.102 with SMTP id s6mr16046037igg.7.1385461394372; Tue, 26 Nov 2013 02:23:14 -0800 (PST) Original-Received: by 10.43.74.137 with HTTP; Tue, 26 Nov 2013 02:23:14 -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::22a 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:165756 Archived-At: --047d7b10d01542fffb04ec11deb6 Content-Type: text/plain; charset=UTF-8 Found that `frame-initial-frame' working when starting 'standalone' emacs: # emacs -q --load ~/.emacs-experiments then in *Message* buffer it prints: > initial-frame: #; frame: #; eq: t; but in don't work for emacs --daemon On 25 November 2013 22:42, Constantin Kulikov wrote: > > 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 >> > > --047d7b10d01542fffb04ec11deb6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Found that `frame-initial-frame' working whe= n starting 'standalone' emacs:
# emacs -q --load ~/.emacs-= experiments
then in *Message* buffer it prints:
> = initial-frame: #<frame emacs@ZXnotdead 0xf502b0>; frame: #<frame e= macs@ZXnotdead 0xf502b0>; eq: t;

but in don't work for emacs --daemon

=


On 25 N= ovember 2013 22:42, Constantin Kulikov <zxnotdead@gmail.com> wrote:
>= We're talking about determining the current state

Here what I have:

# cat ~/.emacs-experiments
-- (messa= ge "initial-frame: %s; frame: %s; eq: %s;" frame-initial-frame (s= elected-frame) (eq frame-initial-frame (selected-frame)))

# 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.umontreal.ca> 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 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


--047d7b10d01542fffb04ec11deb6--