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: Mon, 3 Oct 2022 18:47:45 +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> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000e81f0105ea241bdb" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19071"; 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 Mon Oct 03 18:52:20 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 1ofOfz-0004nR-Gj for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 18:52:19 +0200 Original-Received: from localhost ([::1]:55682 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofOfy-0002KQ-Bh for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Oct 2022 12:52:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofOco-0000PW-Jq for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:49:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52536) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofOco-0003w3-AW for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ofOcn-0003N2-Vg for bug-gnu-emacs@gnu.org; Mon, 03 Oct 2022 12:49:01 -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: Mon, 03 Oct 2022 16:49: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.166481570012906 (code B ref 58193); Mon, 03 Oct 2022 16:49:01 +0000 Original-Received: (at 58193) by debbugs.gnu.org; 3 Oct 2022 16:48:20 +0000 Original-Received: from localhost ([127.0.0.1]:51614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofOc7-0003M5-T0 for submit@debbugs.gnu.org; Mon, 03 Oct 2022 12:48:20 -0400 Original-Received: from mail-ej1-f50.google.com ([209.85.218.50]:35345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ofOc5-0003Lr-L9 for 58193@debbugs.gnu.org; Mon, 03 Oct 2022 12:48:18 -0400 Original-Received: by mail-ej1-f50.google.com with SMTP id sd10so23496122ejc.2 for <58193@debbugs.gnu.org>; Mon, 03 Oct 2022 09:48:17 -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=PZYvfmL1f5K93MZIm+Pc//FMwxtgqRhEiSdSHd8gNRE=; b=i/jAA642X0txs4/SmhJvRYZUrZ3cKtVW5QTdKux3/mFCxsH/z4ymsyxboIJRNenuGE QR0C5plyTrzVewVJG6yJHkLMovtj/0ZcKlDzL0vfZeA047xDGJfSpFP9Wcps97+swDVm FeR9SrlkBQpZoif3WmMlHySClhvwW8H/6nhBoaTZ0jYY264xXMGZx1g6NsJCWXI8p9l4 KLG3D7BgY8ZUAFD2sI5RLWCWhhfX/kORzE9oDm+3Vfmf0obj54bAhQzCaeTYQagmYL+4 3OKyYl7PBIZWpEUtBjdcO9iQHoH56LgXjhnzZGDltyowsIHaDAUo9Bzg6BBChlLoFqwN yG7w== 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=PZYvfmL1f5K93MZIm+Pc//FMwxtgqRhEiSdSHd8gNRE=; b=gjHGOjF+ODyGEbE7L9BDKglOAZ8rfHDBN3mV4JTrlJbOmMWhe548uxR3O8SDIla1HD 6Dn0WrmSxECFiyKTLH3dYqofyl+znCUzjlNhLsG5ZggJyZ+IQGf6p9LTPizsUjPkLW0i +lxMXWAcfXMr3Cm+q56+DLBufLecHMfzthjNmjk8ctKpleOgJDNPZ/sqDW34c62OY5JQ aKex/0spbokr/B0IQkuRKNnj/sU8CAE3r7OFh7VL60tRlLcyYcAGMh03SVqKYJy77AHW WQZ3daf2pk7+CmmXaZIwUJfutOqoBHN4F5qkzg/Eq7uBECc5gSispvf/6TUXaNQ6BhXE 6BHw== X-Gm-Message-State: ACrzQf2fqhs3rBxVivuoJYoNiquQk4G0UgMygqNEUgJdKQBiNT/norke QFvGkP0sG2/lT8PaWb7aUJqgllHjkML0F0GmmBU= X-Google-Smtp-Source: AMsMyM6SIGcPZnUcQBhJc0j3sHxCFo2RECb3PqzVO9v3sxPNhizBs4e1f2AkwlsUl68K2ZBo4yYWSWy8TA1oYW2hheg= X-Received: by 2002:a17:906:8a66:b0:78b:da52:b752 with SMTP id hy6-20020a1709068a6600b0078bda52b752mr3478729ejc.365.1664815691471; Mon, 03 Oct 2022 09:48:11 -0700 (PDT) In-Reply-To: <83zgecyi9n.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:244312 Archived-At: --000000000000e81f0105ea241bdb Content-Type: text/plain; charset="UTF-8" HI Eli, there's nothing wrong, really. The thing is that you may want to change it just for one call of format-time-string (or at least I wanted it) without having to change it permanently. 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? /PA Best, /PA On Mon, 3 Oct 2022 at 18:38, Eli Zaretskii wrote: > > From: Pedro Andres Aranda Gutierrez > > Date: Mon, 3 Oct 2022 07:37:56 +0200 > > Cc: Eli Zaretskii , 58193@debbugs.gnu.org > > > > On that side good. On the other hand, I still think that a macro only > controlling the system-locale for the time > > functions may be useful despite, I admit, being somehow redundant. My > feeling is that many of the settings > > changed in with-locale-environment don't need to be changed for > format-time-string. > > What's wrong with > > (let ((system-time-local SOME-LOCALE)) > DO-SOMETHING) > > > Digression: What about adding a third (optional) parameter to > format-time-string to set the locale for a > > specific call? > > How is that different from > > (let ((system-time-local SOME-LOCALE)) > (format-time-string ....)) > > -- 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 --000000000000e81f0105ea241bdb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
HI Eli,=C2=A0

there's nothing wrong= , really. The thing is that you may want to change it just for one call of = format-time-string
(or at least I wanted it) without having to ch= ange it permanently.=C2=A0

BTW am I missing someth= ing .. would your let just change the value of system-time-locale in the bo= dy of the let and then restore it to its original value?

/PA

Best, /PA

On Mon, 3 Oct 2022 at 18= :38, Eli Zaretskii <eliz@gnu.org>= wrote:
> Fro= m: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
> Date: Mon, 3 Oct 2022 07:37:56 +0200
> Cc: Eli Zaretskii <eliz@gnu.org>, 58193@debbugs.gnu.org
>
> On that side good. On the other hand, I still think that a macro only = controlling the system-locale for the time
> functions may be useful despite, I admit, being somehow redundant. My = feeling is that many of the settings
> changed in with-locale-environment don't need to be changed for fo= rmat-time-string.

What's wrong with

=C2=A0 (let ((system-time-local SOME-LOCALE))
=C2=A0 =C2=A0 =C2=A0DO-SOMETHING)

> Digression: What about adding a third (optional) parameter to format-t= ime-string to set the locale for a
> specific call?

How is that different from

=C2=A0 =C2=A0(let ((system-time-local SOME-LOCALE))
=C2=A0 =C2=A0 =C2=A0(format-time-string ....))



--
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

--000000000000e81f0105ea241bdb--