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: Thu, 16 Apr 2020 15:51:28 -0400 Message-ID: <31cc3adb-1ef9-d502-fd83-2ad1340ec04b@gmail.com> References: <8wXYP4GY9hwW-9mYv6_LGMETZ8Vz3Ob1Bec6yh6kPT7yxjTkxA3V6dXY4ELra9tYiJUxJmgXKSIEX4w8HFiPRoeGVSQHDSoBVy1voj1e3Qo=@protonmail.com> <87wo6h1kwl.fsf@emailmessageidheader.nil> <83k12hgt43.fsf@gnu.org> <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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="25357"; 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: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Apr 16 21:52:46 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 1jPAZ4-0006Vc-2s for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Apr 2020 21:52:46 +0200 Original-Received: from localhost ([::1]:38664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPAZ3-000188-4K for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Apr 2020 15:52:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54966) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPAXs-00083H-2j for emacs-devel@gnu.org; Thu, 16 Apr 2020 15:51:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPAXr-00052M-1p for emacs-devel@gnu.org; Thu, 16 Apr 2020 15:51:31 -0400 Original-Received: from mail-qv1-xf2c.google.com ([2607:f8b0:4864:20::f2c]:46805) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jPAXq-00052C-UU; Thu, 16 Apr 2020 15:51:31 -0400 Original-Received: by mail-qv1-xf2c.google.com with SMTP id bu9so2658955qvb.13; Thu, 16 Apr 2020 12:51:30 -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=Oxo65iwPHUn+zpgjVd0OrHntlok3BZSuPy8U/Fu+buk=; b=iPi3Z+5KRG9cqhxwu4+m9QwSypMeld+4vfU1t2jWTspTy/dcoMcQ/MbStJ56iIeyr0 OIZ76ndH22PPFLQts4Wk2RXCEO0oNV4F4nxcwlOwuJCh/hYbmvB7D8TkRR4CqRZGBcut EnHwos5pXs1MQ6bS9ciO4sYqLHbYRR6Zv231Coq5Z2sawFEONFCpoaOqNsDLKn2pCsDC bGJ1P3RJk/j+6KlBR0KwWasd2VWRU0JsUAZOx/00ggdhw/A6D6TfvaWkTmkGohVKWItm yHmqZSwX316GO+GV5A0jkO+NgmpcF0Mm3J1fnhQfmaVgrf+VljqnXM6eXk/LYPqfX5tm iaxQ== 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=Oxo65iwPHUn+zpgjVd0OrHntlok3BZSuPy8U/Fu+buk=; b=P9PttCPIslpCEnlj/2cB+KAQInP6+p7KXTSOl1mOgly448Vto2+qsnOZ/9j3JPfDQn 7Q7dqkAl1JwAjxmGwpq6Gj2THAvbAaUaVYvIqO8GG9LQeUtOybIPJXo7tbXA+NVoP0/M i6srkkFHJELA34AtBj8NlnuBcjr+gui1Ldi+JNh4cdTkg7Zol0WUpF89FWC9WyAZMc1H 9BFvK+IwOQNfyAXv91y5sjHUnneZeip2P+L8WS9pjJq9LhZlOG9HGryAy6UauX8GCKso Qhd2Sbx5aAt2FWHpaf2KjDW55i+aYZtKXVQJAy9CfhvGdl8xVnVLOX5CaIRSFRN85yax Ne4w== X-Gm-Message-State: AGi0PuawHvajQnzhxSEncI+QRhu73Th091bf25DB/awOOYQMk+hyeWCx q7FILiJ1iz8mDVlzBZ1Tq5+GolUF X-Google-Smtp-Source: APiQypJiP65t7mxKyStVtU/TFwJeUJdU3CdhSc42waDN5f/ygK22ZbWM1numft1o1kASiehy3zVCEQ== X-Received: by 2002:a05:6214:17c8:: with SMTP id cu8mr12113234qvb.178.1587066690067; Thu, 16 Apr 2020 12:51:30 -0700 (PDT) Original-Received: from ?IPv6:2601:184:4180:66e7:9ded:7322:a320:d8bc? ([2601:184:4180:66e7:9ded:7322:a320:d8bc]) by smtp.googlemail.com with ESMTPSA id n31sm16035931qtc.36.2020.04.16.12.51.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Apr 2020 12:51:29 -0700 (PDT) In-Reply-To: <835zdze1gs.fsf@gnu.org> 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::f2c 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:247125 Archived-At: On 16/04/2020 14.21, Eli Zaretskii wrote: >> Cc: emacs-devel@gnu.org >> From: Clément Pit-Claudel >> Date: Thu, 16 Apr 2020 14:11:40 -0400 >> >>> I think it's a bug in your ~/.emacs, so a bug report will hardly solve >>> it. >> >> I think there is a misunderstanding. The recipe I posted above is self-contained and reproduces the issue. > > Of course. Which is why I think I understand the issue. > >> The problem is that custom-raised-buttons is initialized once and for all to a value that depends on whether the current frame when cus-edit is loaded is a graphical frame. Then all other frames, graphical or not, use that value. > > Initialization of stuff that depends on GUI frames and should work in > client frames needs to be done in server-after-make-frame-hook. I think I don't understand this part :/ To be clear, the bug that I'm talking about is that, when using the Emacs server, requiring cus-edit during initialization causes buttons to be displayed as text, not as 3D buttons. It's really easy to run into this without realizing it. For example, installing the `validate' package from Elpa will do it: emacs -Q --eval '(setq user-emacs-directory "/tmp/emacs-sandbox")' \ -l package \ --eval "(package-refresh-contents)" \ --eval "(package-initialize)" \ --eval "(package-install 'validate)" \ --daemon emacsclient --create-frame # This frame doesn't use 3D buttons in e.g. customize-face Alternatively, installing the package manually and putting `(require 'validate)` in your .emacs to be able to use (validate-setq tab-width 4) will also cause issues. What am I missing? Clément.