From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= Newsgroups: gmane.emacs.devel Subject: Re: "Why is emacs so square?" Date: Fri, 17 Apr 2020 16:57:41 -0400 Message-ID: References: <8wXYP4GY9hwW-9mYv6_LGMETZ8Vz3Ob1Bec6yh6kPT7yxjTkxA3V6dXY4ELra9tYiJUxJmgXKSIEX4w8HFiPRoeGVSQHDSoBVy1voj1e3Qo=@protonmail.com> <838siwhmco.fsf@gnu.org> <0348a76e-d55a-2e75-8ed1-1beaa6649ed6@gmail.com> <837dyfe45q.fsf@gnu.org> <245308ec-5154-7d4b-dba4-0b21f42a0e95@gmail.com> <835zdze1gs.fsf@gnu.org> <51cb2788-3086-367d-ec05-ea324da49a12@gmail.com> <83imhyd1w1.fsf@gnu.org> <83f35fb6-806e-1b28-da76-31919a398045@gmail.com> <833692cgr4.fsf@gnu.org> <6479af83-2cab-05b0-3042-8030ec3f1e1d@gmail.com> <83wo6eazrd.fsf@gnu.org> <8001bd11-b552-e94e-d15a-30f9bd34f71b@gmail.com> <83sgh2av7x.fsf@gnu.org> <21e1fef1-63a8-815a-1293-45ee79ffcabc@gmail.com> <83lfmuatvu.fsf@gnu.org> <3604def6-82c0-1af2-baff-b32e426d642f@gmail.com> <83k12earis.fsf@gnu.org> <83h7xiaqtf.fsf@gnu.org> <1c245d30-75ac-23b7-4e13-81a916fbdca5@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="57360"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 Cc: Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 17 22:58:26 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPY49-000Env-80 for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Apr 2020 22:58:25 +0200 Original-Received: from localhost ([::1]:51884 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPY48-0004IJ-6l for ged-emacs-devel@m.gmane-mx.org; Fri, 17 Apr 2020 16:58:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46261) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPY3Z-0003m3-Mo for emacs-devel@gnu.org; Fri, 17 Apr 2020 16:57:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPY3Y-0001tq-7K for emacs-devel@gnu.org; Fri, 17 Apr 2020 16:57:49 -0400 Original-Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]:41066) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPY3W-0001lB-3m; Fri, 17 Apr 2020 16:57:46 -0400 Original-Received: by mail-qt1-x832.google.com with SMTP id l60so3178063qtd.8; Fri, 17 Apr 2020 13:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=aauni98VeskeEuFiib8NwjtvyP67iZfnMxyY3wd6+84=; b=AYW5yGY6YPud2mkfXLSaIgxXSeqWW6UIQFrZ36RbV1SnXQBykSF6ZhmR3qW28XEoLn iuiArZ2gMkps0AaCvcN8odjL8EXX/beeiTQXQeXpn96FzDsgOLjviz+Rrp/RSRpXdotm NbrZ6LWr/xDdsjS68sT45WBDYPnin0M/4CFw7DQBb9+yrUe/uoBrxkBy/8e+u6ZoS4U9 B5Wxy9gvx5wyfuQzzwNSQ0Wel8ZmQtJjmjQWyxF9Kc/ldnSIigxo3LEbGQC0jA9yLepv SagZsQ7pSq8I91AOH6AR2UqJO00zYpjuiar7e2v+CQHwYO1OhqXrrFExmHGUmWKvNrNL LvJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aauni98VeskeEuFiib8NwjtvyP67iZfnMxyY3wd6+84=; b=A1+nB/r2KZvSYa1QY2BKoU0rAJ2k+Ji++c/XRyo2w8yrcWk1wGB4XH1mrInGHGHnGh w/Q169OrukIyCksi749XxpquslBPsnzIcfNt0kzJ8l4vdttJAIf3TnkHypYoxG2RHfNu gO1dQMPDqSInjOvOi39MeUnbuKq/koGGka2CR7m7MEq7PDHq/P2jNqvagovvHR2OuGjX LWt1uRjwKdC4DZWOLefjwsSU3rlLyvGyx/wGeNlX+azpyQI0vEmfeqfNxZzqPRo2Vl6z 7iAa+dwjjT1XHBojcl5/Njj6ERWviiz3cgcZM2mlpw4/e8YewI1FrjxmNjoJQ405IE1L mQkQ== X-Gm-Message-State: AGi0PuZKiWFE4E0WMYIP9oIpx8jQWX01aYM0kmhBF+mPAtfEqCEizMty YYh9k9Qs2E9aibIL0IhwgIJnrgj6 X-Google-Smtp-Source: APiQypKgiiiwWDB+3qpOj6bYBlwcJFxq77xKN0dE4NFfBaEYA+Jk1SKa6X/WOtHew9xTRuUbbRKuug== X-Received: by 2002:aed:3bf2:: with SMTP id s47mr4889372qte.126.1587157063077; Fri, 17 Apr 2020 13:57:43 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:da2:5c19:86dd:363e? ([2601:184:4180:66e7:da2:5c19:86dd:363e]) by smtp.googlemail.com with ESMTPSA id p24sm17220682qtp.59.2020.04.17.13.57.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 17 Apr 2020 13:57:42 -0700 (PDT) In-Reply-To: Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::832 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:247202 Archived-At: On 17/04/2020 16.14, Stefan Monnier wrote: >> (with-current-buffer (get-buffer-create "button") >> (insert (propertize "[" 'display '(when (display-graphic-p (selected-frame)) . ""))) >> (insert (propertize "button" 'face 'my-button)) >> (insert (propertize "]" 'display '(when (display-graphic-p (selected-frame)) . "")))) > > My guess is that the (selected-frame) at the time the code is run might > not be the one you think. Maybe we should change/fix that (we had the > same problem when computing the mode/header lines). Doesn't look like it, from this test: (with-current-buffer (get-buffer-create "button") (insert (propertize "[" 'display '(when (and (message "[%f] On frame %S: %S" (float-time) (selected-frame) (display-graphic-p (selected-frame))) (display-graphic-p (selected-frame))) . "graphic"))) (insert (propertize "button" 'face 'my-button)) (insert (propertize "]" 'display '(when (display-graphic-p (selected-frame)) . "")))) Clicking in the graphical frame reevaluates in both, and the terminal one does see nil. Clicking in the terminal frame reevaluates only there. In both cases the display is updated in all windows (on all frames).