From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.bugs Subject: bug#58193: 29.0.50; Screen flickers on with-locale-environment Date: Tue, 4 Oct 2022 08:10:57 +0200 Message-ID: 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> <83y1u0auk4.fsf@gnu.org> <83wn9katho.fsf@gnu.org> <87y1tzhhq1.fsf@gnus.org> <87lepye8st.fsf@gnus.org> <83zgecyi9n.fsf@gnu.org> <83k05gyfu8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000638b0005ea2f54f3" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33071"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 58193@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 04 08:26:07 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 1ofbNW-0008Oa-Rz for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 08:26:06 +0200 Original-Received: from localhost ([::1]:52838 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofbNT-0006DI-MT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 04 Oct 2022 02:26:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44944) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofbA6-0001R1-Mm for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 02:12:14 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53087) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofb9u-0005rk-Fo for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 02:12:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofb9u-0002ki-0H for bug-gnu-emacs@gnu.org; Tue, 04 Oct 2022 02:12:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pedro Andres Aranda Gutierrez Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Oct 2022 06:12:01 +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.166486389310542 (code B ref 58193); Tue, 04 Oct 2022 06:12:01 +0000 Original-Received: (at 58193) by debbugs.gnu.org; 4 Oct 2022 06:11:33 +0000 Original-Received: from localhost ([127.0.0.1]:52165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofb9R-0002jx-8w for submit@debbugs.gnu.org; Tue, 04 Oct 2022 02:11:33 -0400 Original-Received: from mail-ed1-f44.google.com ([209.85.208.44]:46862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofb9O-0002ji-V2 for 58193@debbugs.gnu.org; Tue, 04 Oct 2022 02:11:31 -0400 Original-Received: by mail-ed1-f44.google.com with SMTP id m15so17401815edb.13 for <58193@debbugs.gnu.org>; Mon, 03 Oct 2022 23:11:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=pZx7zD83tSTgrdCAx7Vw3DWonLwC/AF2nOrlS150hm8=; b=epnbJJcj27HDv89+YYj4AgcwX1hnq22mPXNcVWmyP6lfszrWJbgU9BgZWi1GcdfBg/ RNqL40FB7cQzslmPW8dj3RRvRY2z6gE9scQCorjnWHx5/J3+41FJSwev60DNc2t9v51g U29NZ5hfDNvmvwUr0sEzQeVxGmuHq6LQeU0HIoFuo0tQI3oueLsfUkOBz9p/dLZ0zgD3 mJBjnIzdDXj9hUkpYL87OoM/4EPg214BEQtn7MSfuBYBzqsKmUOzaz+zcp0gVn5z5dYO UrltukOD3tnEP2NbxfuscL0trvGSVAu6IfsuAcPoyc3KZ93xHjbMwKL6Q9TaBaAoeJOo bj8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=pZx7zD83tSTgrdCAx7Vw3DWonLwC/AF2nOrlS150hm8=; b=zeinoNRdzWHI0H20DO82xqPS6WXd07qw6I4oVSqZiXeo25EkNevqDAs1xKh6/0INMF OOsS9t7ZqOVQaMc3O5EayYZpRKg3aPT/weN26knv06Q3PmNg+jVPwUUVtZ0Y9nbQ9rfq QRX8m1l0lhEQjORXi4Mxt8uybxfhLCCuASpNqpuuDO5JtjUE277Ib5vr7SSfj/vG5RN2 AUeWmLWlAJQrt/92zVRbXUczmK/TymtP+ve5PQdTy/F7hLD8JDLLJSM5VteWiwpG7rji RLBPc4gEOUgstjXFMRClrIEsl16jx/KIsEoa/klI3fCeuK3DsYJ+0v27PElzebaZT6Zo e/Ug== X-Gm-Message-State: ACrzQf2VoUuFUsZdbqlLFAuzVSBnlNkw/bX+B+vDve7/JOTIArNdHIBg zjtsU9DzkWYbwn0CF8DeQM+n6pHRBaEJsVtG32I= X-Google-Smtp-Source: AMsMyM4+rpv6gP85xmlRxJxOH+MwckSf2TanzxJXBFAdAhc8npBEzsMW+JerhF9QuMclRd7c1ydiVCj7aS8z1gJp+ko= X-Received: by 2002:a05:6402:2489:b0:454:11de:7698 with SMTP id q9-20020a056402248900b0045411de7698mr22514755eda.214.1664863883724; Mon, 03 Oct 2022 23:11:23 -0700 (PDT) In-Reply-To: <83k05gyfu8.fsf@gnu.org> 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:244361 Archived-At: --000000000000638b0005ea2f54f3 Content-Type: text/plain; charset="UTF-8" Hmmm.... that is not what I understand from 3.6 in the Introduction to Emacs Lisp Programming. If you read the section, it talks about 'local variables'. Depending on you programming background, local may be different from local... I have always understood local as variable that has a meaning within a context and if I happen to use the name of a global variable that is used in the system, then bad luck. It would be nice to say that when you put a variable like system-time-locale in a let, the global variable's value is 'pushed' and will be recovered once you leave the let-binding. Just to make sure there is no misunderstanding. I'll try to see how to tackle this in the elisp Introduction and will propose a patch. Anyhow, better late than never :-) that's what I like, always learning something new. Best, /PA On Mon, 3 Oct 2022 at 19:31, Eli Zaretskii wrote: > > From: Pedro Andres Aranda Gutierrez > > Date: Mon, 3 Oct 2022 18:47:45 +0200 > > Cc: larsi@gnus.org, 58193@debbugs.gnu.org > > > > BTW am I missing something .. would your let just change the value of > system-time-locale in the body of the > > let and then restore it to its original value? > > Yes, that's the general feature of let-binding. > -- Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --000000000000638b0005ea2f54f3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hmmm.... that is not what I understand fr= om 3.6 in the Introduction to Emacs Lisp Programming.=C2=A0
If you read= the section, it talks about 'local variables'.
Depending= on you programming background, local may be different from local...
<= div>I have always understood local as variable that has a meaning within a = context and if I happen to use the name of a global variable that is used i= n the system, then bad luck. It would be nice to say that when you put a va= riable like system-time-locale in a let, the global variable's value is= 'pushed' and will be recovered once you leave the let-binding. Jus= t to make sure there is no misunderstanding.

I'= ;ll try to see how to tackle this in the elisp Introduction and will propos= e a patch.

Anyhow, better late than never :-) that= 's what I like, always learning something new.

Best, /PA

On Mon, 3 Oct 2022 at 19:31, Eli Zaretskii <eliz@gnu.org> wrote:
> From: Pedro Andres Aranda Gutier= rez <paaguti@gmai= l.com>
> Date: Mon, 3 Oct 2022 18:47:45 +0200
> Cc: larsi@gnus.org= , 58193@debb= ugs.gnu.org
>
> BTW am I missing something .. would your let just change the value of = system-time-locale in the body of the
> let and then restore it to its original value?

Yes, that's the general feature of let-binding.


--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um = gestellt zu werden
Georg Kreisler

Headach= es with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.u= niter.operation we should run a leader-deposed hook here, but we can't = yet

--000000000000638b0005ea2f54f3--