From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: `emacs -nw', `framep' returning `t', `display-graphic-p' returning `nil' Date: Sun, 17 Dec 2017 14:26:25 -0800 (PST) Message-ID: <0045d89b-1bfe-45e8-897e-d33a4111bfad@default> References: <> <<836095qmvk.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1513549983 19033 195.159.176.226 (17 Dec 2017 22:33:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 17 Dec 2017 22:33:03 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii , Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 17 23:32:59 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eQhUP-0004Sn-51 for ged-emacs-devel@m.gmane.org; Sun, 17 Dec 2017 23:32:57 +0100 Original-Received: from localhost ([::1]:55812 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQhWN-0004Fe-H0 for ged-emacs-devel@m.gmane.org; Sun, 17 Dec 2017 17:34:59 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eQhVm-0004FN-2s for emacs-devel@gnu.org; Sun, 17 Dec 2017 17:34:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eQhVl-00070G-Bp for emacs-devel@gnu.org; Sun, 17 Dec 2017 17:34:22 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:43098) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eQhVf-0006w3-IL; Sun, 17 Dec 2017 17:34:15 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.21/8.16.0.21) with SMTP id vBHMWwEJ100211; Sun, 17 Dec 2017 22:34:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2017-10-26; bh=G7YqrVdIt0XS7In3HeUx6bhWFYvOeODMvewk+B7Tpkk=; b=fwv5eaPpBXVyJnfavnIiY1ZY26DrfwfrSnaxO4FAqLfSlkwuf7FpxbDdveJUmdeFxTFC A95hRjagplzMMZOR5a9Yv0A6EQsaXdQ+8tNkIz4bz++I4oIJDcLJuqY5u3SSZHv0uOaT 0VTFUva0v8CZe6F0xRNITir++5TiDXWKqViKO1iKedTBpjLz24skPAa+N84dMDjgZppr jTtgtVaSWTe5awq+nBvrrSCp7opfKltxtNEojKwX5+fMgthe8r+CV6uONp4z7BgGMByE i66wh5Pm/g7Qu/d9XuRBA22ZpqVosW2MuxSDFXekA8oDsPt4aLmgckhEnofxmVPiHPsc Pw== Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp2120.oracle.com with ESMTP id 2ex1c880bs-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 17 Dec 2017 22:34:12 +0000 Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vBHMQRYN009063 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 17 Dec 2017 22:26:27 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vBHMQQNX011659; Sun, 17 Dec 2017 22:26:26 GMT In-Reply-To: <<836095qmvk.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4627.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8748 signatures=668649 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1712170306 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.78 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:221192 Archived-At: > a single Emacs session can have both text-mode and GUI > frames. I see. Learn something new everyday. I use `display-graphic-p' in many places to guard some code that might try to use graphic-display capabilities. Apparently some of those uses might not really be appropriate (might not do what I was expecting). Thanks for the info. > So I think you should examine the value of display-graphic-p > not at key-binding time, but inside diredp-chown-this-file, because > only then you know on which kind of frame will the command run. No, that would be pretty useless. It wouldn't even make sense to test it in a Dired mode hook (readin or whatever), as the same Dired buffer could be shown either or both of the two types of frame. I'll just remove the `display-graphic-p' test and leave only the user option as the test.