From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#58193: 29.0.50; Screen flickers on with-locale-environment Date: Sat, 01 Oct 2022 10:10:03 +0300 Message-ID: <83y1u0auk4.fsf@gnu.org> References: <87wn9l3q5i.fsf@gnus.org> <83sfk8db0m.fsf@gnu.org> <87mtag4vhi.fsf@gnus.org> <83mtagdall.fsf@gnu.org> <87ill44v2o.fsf@gnus.org> <83leq0d83g.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13698"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 58193@debbugs.gnu.org To: Pedro Andres Aranda Gutierrez Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Oct 01 09:11:11 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oeWeU-0003RU-Om for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 09:11:10 +0200 Original-Received: from localhost ([::1]:46426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oeWeT-0006Ui-5Q for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 01 Oct 2022 03:11:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40574) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeWeM-0006UM-Td for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 03:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44461) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oeWeM-0002UE-Lu for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 03:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oeWeM-0005Rx-Gh for bug-gnu-emacs@gnu.org; Sat, 01 Oct 2022 03:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Oct 2022 07:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58193-submit@debbugs.gnu.org id=B58193.166460822620894 (code B ref 58193); Sat, 01 Oct 2022 07:11:02 +0000 Original-Received: (at 58193) by debbugs.gnu.org; 1 Oct 2022 07:10:26 +0000 Original-Received: from localhost ([127.0.0.1]:43537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeWdm-0005Qv-Cv for submit@debbugs.gnu.org; Sat, 01 Oct 2022 03:10:26 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:56686) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oeWdk-0005QX-6z for 58193@debbugs.gnu.org; Sat, 01 Oct 2022 03:10:24 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeWdd-0002N6-OQ; Sat, 01 Oct 2022 03:10:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=MDeUQk0Ypd1rteshrqmrE8WU2li2t1sxQpzrl6kb0xs=; b=fjFhsCU+8i69 n842prE3QqPiRnTkemikrU1pbQAvT1VW4HrzJ7fiya2IgDJAy3udjxgxkUesmT8RyqsZUf9502OGs VFhJqpCJFQdr0B6N35o5enYF/W4aQrJsX8UXavQkqo4HddBCYVJiIjgeBaDozuX1tzvt5xW02hDYz M5oNzYZCm71MsUEmNAif71uqf0YncrUmqkgkeuxGDsaWkFbRWdXYkdIExlolE6IzTtxaCK8p2o35R fwuHh8M/cMXnqHL7Ie9qDPWWVGVJBNMBHBh1PGm4YHR+sO8MHITfVH4+Ml+T37845AeyXhbZ6+WH0 xYmfKirMWRMI7xeB4KBxow==; Original-Received: from [87.69.77.57] (port=2574 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oeWdd-00074S-7T; Sat, 01 Oct 2022 03:10:17 -0400 In-Reply-To: (message from Pedro Andres Aranda Gutierrez on Sat, 1 Oct 2022 08:14:36 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:244081 Archived-At: > From: Pedro Andres Aranda Gutierrez > Date: Sat, 1 Oct 2022 08:14:36 +0200 > Cc: Lars Ingebrigtsen , 58193@debbugs.gnu.org > > I fear in my case it's the other way round. IMHO, I think I have a minimal clue of what it does ;-) > Let me expand a bit: > > My use case is that of a multi-lingual writer/programmer who needs the date to appear in the language used > in the text which is currently being edited. > My default locale is "C" because it fits my needs when programming, but then I also produce 'text > documents' (.tex, .org, .md, .txt) in 3-4 languages. > I'm lucky, because most of "my multi-linguality" can be handled by changing ispell-dictionary and with \date in > LaTEX. But in a couple of > cases, I need the date to appear 'burnt in fire' in the text. > > My questioning the way with-locale-environment works comes from my use case. > I need the date to adhere to a 'temporary' locale which only needs to be valid when I generate a string that I > then insert into the buffer. > And to have the screen flickering because I have generated a string is not a 'nice' UI design principle > IMvvHO. I understand your use case. I'm arguing about the default, not about the need to support your use case. The default should be to redraw the frame, and your use case should be supported by having some variable that you could bind around the call of the macro, to prevent redrawing. > Maybe we should leave this macro as-is because of the legacy and work towards something in the line of the > cl-setlocale function in Common LISP. Common Lisp is just a programming language, it is not a display editor. In Emacs, certain operations that affect the display should be immediately reflected on display. > If you look at 'man setlocale' as an inspiration of what I would be dreaming of... setlocale is a low-level function that is called by Emacs as part of this macro.