From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier 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:22:00 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1385493735 7452 80.91.229.3 (26 Nov 2013 19:22:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 19:22:15 +0000 (UTC) Cc: emacs-devel To: Constantin Kulikov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 26 20:22:20 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 1VlODE-0003NU-BD for ged-emacs-devel@m.gmane.org; Tue, 26 Nov 2013 20:22:20 +0100 Original-Received: from localhost ([::1]:60608 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlODD-0002r9-Tf for ged-emacs-devel@m.gmane.org; Tue, 26 Nov 2013 14:22:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58395) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlOD3-0002qs-6h for emacs-devel@gnu.org; Tue, 26 Nov 2013 14:22:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VlOCv-0006Vp-P3 for emacs-devel@gnu.org; Tue, 26 Nov 2013 14:22:09 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:21947) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlOCv-0006Vl-L9 for emacs-devel@gnu.org; Tue, 26 Nov 2013 14:22:01 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+KEh/2dsb2JhbABEvw4Xc4IfAQVWIxALDiYSFBgNJIgksR+QDpEKA4hhnBmBXoMV X-IPAS-Result: Av4EABK/CFHO+KEh/2dsb2JhbABEvw4Xc4IfAQVWIxALDiYSFBgNJIgksR+QDpEKA4hhnBmBXoMV X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="40455823" Original-Received: from 206-248-161-33.dsl.teksavvy.com (HELO pastel.home) ([206.248.161.33]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 26 Nov 2013 14:22:01 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 0447C60D32; Tue, 26 Nov 2013 14:22:00 -0500 (EST) In-Reply-To: (Constantin Kulikov's message of "Tue, 26 Nov 2013 18:19:17 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:165774 Archived-At: > (if (and (daemonp) (eq terminal-frame (selected-frame))) > try searching for another frame to focus or defer ask-my-question > ask-my-question) Another option would be to check (framep (selected-frame)), tho I'm afraid that it would return the same for a tty as for the daemon case. Stefan