From unknown Sat Aug 16 16:06:58 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#24291 <24291@debbugs.gnu.org> To: bug#24291 <24291@debbugs.gnu.org> Subject: Status: 25.1; display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t Reply-To: bug#24291 <24291@debbugs.gnu.org> Date: Sat, 16 Aug 2025 23:06:58 +0000 retitle 24291 25.1; display-time-world seems to ignore zoneinfo-style-world= -list when display-time-mode is t reassign 24291 emacs submitter 24291 nljlistbox2@gmail.com (N. Jackson) severity 24291 minor tag 24291 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 07:51:12 2016 Received: (at submit) by debbugs.gnu.org; 23 Aug 2016 11:51:12 +0000 Received: from localhost ([127.0.0.1]:37578 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcAEa-0004vj-7X for submit@debbugs.gnu.org; Tue, 23 Aug 2016 07:51:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:38929) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcAEY-0004vX-M0 for submit@debbugs.gnu.org; Tue, 23 Aug 2016 07:51:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcAES-0006Pq-6w for submit@debbugs.gnu.org; Tue, 23 Aug 2016 07:51:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=BAYES_50, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59734) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcAES-0006Pb-3S for submit@debbugs.gnu.org; Tue, 23 Aug 2016 07:51:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcAEP-0008La-54 for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 07:51:02 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcAEL-0006Ob-0u for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 07:51:00 -0400 Received: from mail-it0-x22a.google.com ([2607:f8b0:4001:c0b::22a]:36315) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcAEK-0006OS-QE for bug-gnu-emacs@gnu.org; Tue, 23 Aug 2016 07:50:56 -0400 Received: by mail-it0-x22a.google.com with SMTP id e63so141932834ith.1 for ; Tue, 23 Aug 2016 04:50:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version; bh=YYaLSniP62bPdzOIInAraDUZKYTB0Ivgz1LzapKSgJ4=; b=oNjKlpaoKLMdS9xQ/VPRe7pxHzdtN1iPla4oLFk22YGr2FkxKgrlLFQactZkKvwqOB UbSHqS+R2dcxudYUFzQe6PiXQGunSGe/x6iMeePMK+3o87Bv8mMX5bGcSQ76LPuFmUBP hM4bahWW2nUgP5ZnkChNjs5HSwEMe7zd43epoSH38j0AdHepIV9YOMsyvTI/n6G9rnct ZPjiatKv09FQFlNpChwzuDGNWkTZEIvW28YON66WrFejaqkLenUoWhO6e6R2ZBlbWN8p /P5eU91b3HJxzUgo4j31p8Q/F6tseKX68r8zm5vdDO1g8fAQY2pOnbSibBgduzBeUBSn JUQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=YYaLSniP62bPdzOIInAraDUZKYTB0Ivgz1LzapKSgJ4=; b=SO47Ty5N57mK/cagMtXeN58Eg0394yqif+Fpxjjk3s0hZ2AzpGRPVJP8YRV19SD3pn Eplbszd2hGSH/0ZNe0jTRqGBVuaeyzPn2atqSMbFUn2yqkS9GnTw2M2mEV9xRus7815n lVIgNrt+3h1hChDpD+ZZWWqynHRl/gfAhp3suRu4zK1OawJYaXXQySGpEqXmlvq8giG6 pxq5HJ9/7f3ly0HaRa2L1HhNPtYwcOUHY/lI7U+v5LEDO0s6itpg97vMuJNRIOHivOrU WGNHxkJR8O8uJtCkAZh6AJlvHm1xn+nRdGwPaMWlMAnewipzCcCzTU2Dssfm/nz56Slx zlUg== X-Gm-Message-State: AEkooutIFJ1SzL/LoFJ+5Bl3I2X0QJfzBZPY3Em4c4ffhOdRHFzFSwko/MGsOlo1sJOoig== X-Received: by 10.107.8.140 with SMTP id h12mr30288935ioi.95.1471953055495; Tue, 23 Aug 2016 04:50:55 -0700 (PDT) Received: from moondust.nodomain.none (blk-138-73-133.eastlink.ca. [24.138.73.133]) by smtp.gmail.com with ESMTPSA id n190sm1231504ion.42.2016.08.23.04.50.54 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Aug 2016 04:50:54 -0700 (PDT) From: nljlistbox2@gmail.com (N. Jackson) To: bug-gnu-emacs@gnu.org Subject: 25.1; display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t Date: Tue, 23 Aug 2016 08:50:53 -0300 Message-ID: <87a8g3snz6.fsf@moondust.awandering> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.8 (---) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.8 (---) The command display-time-world seems to be ignoring the zoneinfo-style-world-list variable; instead, the time for the default list of cities is displayed. Setting zoneinfo-style-world-list in `emacs -Q' works as expected, so I bisected my init file and it seems that the problem is "caused" by setting display-time-mode to show the clock in the mode line. This recipe shows the problem from `emacs -Q' 0. emacs -Q 1. Enter the following elisp in *scratch*: (custom-set-variables '(display-time-mode t) '(zoneinfo-style-world-list (quote (("Etc/UTC" "Universal Time") ("AST4ADT" "Atlantic Time") ("EST5EDT" "Eastern Time") ("Europe/London" "London") ("Asia/Tokyo" "Tokyo"))))) 2. `C-x C-e' (eval-last-sexp) to run it 3. `M-x display-time-world' Observed result: Seattle Tuesday 23 August 04:22 PDT New York Tuesday 23 August 07:22 EDT London Tuesday 23 August 12:22 BST Paris Tuesday 23 August 13:22 CEST Bangalore Tuesday 23 August 16:52 IST Tokyo Tuesday 23 August 20:22 JST Expected result: Universal Time Tuesday 23 August 11:24 UTC Atlantic Time Tuesday 23 August 08:24 ADT Eastern Time Tuesday 23 August 07:24 EDT London Tuesday 23 August 12:24 BST Tokyo Tuesday 23 August 20:24 JST If the recipe above is modified to remove the line that sets display-time-mode, the output is as expected. I'm more than slightly confused by what I'm observing here. I don't believe it was more than a couple of months ago that I set z-s-w-l for the first time. It worked perfectly then even though I always have d-t-m on (because the mode line clock is the one I use to know what time it is during the day). But now I'm seeing the reported problem in versions of the Emacs 25 pre-release going back for months, and indeed, in Emacs 24.5. In GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9) of 2016-07-24 built on moondust Windowing system distributor 'Fedora Project', version 11.0.11803000 System Description: Fedora release 23 (Twenty Three) Configured using: 'configure --prefix=/home/nlj/local/ --enable-checking=yes,glyphs --enable-check-lisp-object-type 'CFLAGS=-O2 -g3 -gdwarf-4'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_MONETARY: en_DK.utf8 value of $LC_NUMERIC: en_DK.utf8 value of $LC_TIME: en_DK.utf8 value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Features: (shadow bbdb-message emacsbug sendmail gnus-html browse-url url-cache mm-url smiley gnus-cite gnus-bcklg gnus-async qp mail-extr gnus-ml disp-table nndraft nnmh utf-7 server pinentry epa-file epa derived network-stream nsm starttls nnfolder bbdb-gnus bbdb-mua nnnil gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg nntp gnus-cache org-clock tabify vc-git diff-mode python tramp-sh tramp tramp-compat tramp-loaddefs trampver ucs-normalize json map sh-script smie executable latexenc preview prv-emacs font-latex sage-latex tex-buf latex tex-style tex dbus xml tex-mode shell flyspell ispell sage sage-load rx emms-bookmarks emms-cue emms-mode-line-icon emms-browser sort emms-playlist-sort emms-last-played emms-player-xine emms-player-mpd emms-playing-time emms-lyrics emms-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source url-vars emms-streams emms-tag-editor emms-mark emms-mode-line emms-cache emms-info-ogginfo emms-info-mp3info emms-info later-do emms-playlist-mode emms-player-vlc emms-player-mplayer emms-player-simple emms-source-playlist emms-source-file locate emms-setup emms emms-compat calfw-org calfw cl-seq holidays hol-loaddefs cl pdf-occur ibuf-ext ibuffer tablist tablist-filter semantic/wisent/comp semantic/wisent semantic/wisent/wisent semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw eieio eieio-core cl-macs mode-local cedet pdf-isearch let-alist pdf-misc imenu pdf-tools compile cus-edit pdf-view bookmark pp pdf-cache pdf-info tq pdf-util org-contacts org-capture gnus-art mm-uu mml2015 mm-view mml-smime smime dig mailcap gnus-sum gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source tls gnutls utf7 netrc nnoo parse-time gnus-spec gnus-int gnus-range message rfc822 mml mml-sec password-cache epg mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums gmm-utils mailheader gnus-win gnus gnus-ems nnheader mail-utils mm-util help-fns mail-prsvr org-eldoc org-w3m org-rmail org-mhe org-irc org-info org-habit org-gnus gnus-util org-docview doc-view subr-x jka-compr image-mode dired org-bibtex bibtex org-bbdb org-element avl-tree org-agenda org advice org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline easy-mmode org-version ob-latex ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func bbdb-anniv diary-lib diary-loaddefs cal-menu calendar cal-loaddefs bbdb-com crm mailabbrev bbdb bbdb-site timezone bbdb-loaddefs finder-inf tex-site info package epg-config seq byte-opt gv bytecomp byte-compile cl-extra help-mode cconv edmacro kmacro recentf tree-widget wid-edit easymenu time wheatgrass-theme paren savehist saveplace elec-pair battery desktop frameset cl-loaddefs pcase cl-lib delsel cua-base cus-start cus-load time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 965862 52373) (symbols 48 105262 0) (miscs 40 19647 6806) (strings 32 175240 17487) (string-bytes 1 6112277) (vectors 16 82378) (vector-slots 8 2081333 128971) (floats 8 732 932) (intervals 56 73267 3321) (buffers 976 229) (heap 1024 114049 23712)) From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 10:43:37 2016 Received: (at 24291) by debbugs.gnu.org; 23 Aug 2016 14:43:37 +0000 Received: from localhost ([127.0.0.1]:38040 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcCvL-0002au-NW for submit@debbugs.gnu.org; Tue, 23 Aug 2016 10:43:37 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcCvE-0002aa-Kg for 24291@debbugs.gnu.org; Tue, 23 Aug 2016 10:43:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcCv6-0007ty-9P for 24291@debbugs.gnu.org; Tue, 23 Aug 2016 10:43:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcCv6-0007tb-6f; Tue, 23 Aug 2016 10:43:16 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4247 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bcCv4-00083E-D9; Tue, 23 Aug 2016 10:43:14 -0400 Date: Tue, 23 Aug 2016 17:43:29 +0300 Message-Id: <83fupvfsvi.fsf@gnu.org> From: Eli Zaretskii To: nljlistbox2@gmail.com (N. Jackson) In-reply-to: <87a8g3snz6.fsf@moondust.awandering> (nljlistbox2@gmail.com) Subject: Re: bug#24291: 25.1; display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t References: <87a8g3snz6.fsf@moondust.awandering> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: 24291 Cc: 24291@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) > From: nljlistbox2@gmail.com (N. Jackson) > Date: Tue, 23 Aug 2016 08:50:53 -0300 > > 0. emacs -Q > > 1. Enter the following elisp in *scratch*: > > (custom-set-variables > '(display-time-mode t) > '(zoneinfo-style-world-list > (quote > (("Etc/UTC" "Universal Time") > ("AST4ADT" "Atlantic Time") > ("EST5EDT" "Eastern Time") > ("Europe/London" "London") > ("Asia/Tokyo" "Tokyo"))))) > > 2. `C-x C-e' (eval-last-sexp) to run it > > 3. `M-x display-time-world' > > Observed result: > > Seattle Tuesday 23 August 04:22 PDT > New York Tuesday 23 August 07:22 EDT > London Tuesday 23 August 12:22 BST > Paris Tuesday 23 August 13:22 CEST > Bangalore Tuesday 23 August 16:52 IST > Tokyo Tuesday 23 August 20:22 JST > > Expected result: > > Universal Time Tuesday 23 August 11:24 UTC > Atlantic Time Tuesday 23 August 08:24 ADT > Eastern Time Tuesday 23 August 07:24 EDT > London Tuesday 23 August 12:24 BST > Tokyo Tuesday 23 August 20:24 JST You need to set zoneinfo-style-world-list before time.el is loaded. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 15:39:32 2016 Received: (at 24291) by debbugs.gnu.org; 23 Aug 2016 19:39:32 +0000 Received: from localhost ([127.0.0.1]:38241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcHXo-0001eq-5B for submit@debbugs.gnu.org; Tue, 23 Aug 2016 15:39:32 -0400 Received: from mail-it0-f54.google.com ([209.85.214.54]:38153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcHXl-0001eb-UQ for 24291@debbugs.gnu.org; Tue, 23 Aug 2016 15:39:30 -0400 Received: by mail-it0-f54.google.com with SMTP id n128so154364376ith.1 for <24291@debbugs.gnu.org>; Tue, 23 Aug 2016 12:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=1LKp0COP6M7CZEqJjBZDGDvdWFbUh06e3xJngqibXTs=; b=SwZguIUxmCngRN0dHZicuKA1g855Ofurfyu946kQAGGHS14pDT+tc4w23BD5AwLQbD ktul4ZfObK94nyUCqniQ4iQWxu+la1nwjw9jknRhX5U3b2KTWFOrIJaT9kaPEZtgld18 2iHC6xnmEwEEIvgFfLhz5Vhn24ocuTgAQkNqqN0Utk+6TAenSCJz5E69/e2rm/NIukjV zVRvinHlq+sedlR0D+VDy/dK9zb+cUL0WCkiMtAPuj05m9uFnFErqaTuVl/5jzUsDWim 4oGXzkD7dy204OPjyHQRsMkx8/FJ5sA9ZSOUAcHit+bquOpoTdP+RANXS8a5rDvKoE3e nJWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=1LKp0COP6M7CZEqJjBZDGDvdWFbUh06e3xJngqibXTs=; b=GluOeOqb2JFWBqPfXUtrCIKIjI1iGbhVWzHUFxB5PCkX9sUuy2HFOP+uVWSL+JHqef eZRsMdp+NDC4mWuOSVcux+uVBCPPir989zSbjErp6+AtjFoUzP/n3n9TRgCLxJeIGDYn xpUTkHDyFonpxQflqmr1Sitmz8xdyLXi6T7D/49S929qeMrjFiJteHGXDbZa7+ZoAjwh u81sTy0Y2D6CJo+Oid2Hk4CnUtWdBZxdE+kPER5zqq68N3fXBoNjQI0S95zSRoHKB++0 +AgT0r/pzJ9QYc5CIMsMBag7ZmB3iTtIudBFTn5TNmIODq3//m43389Vomo9baAAbeqW vATQ== X-Gm-Message-State: AEkoouvDcMX6fPi7haaVmoxfvKFgfnDlhuvFFatYFGVCVrqhRfez7mhILiuTuom+WFwUlQ== X-Received: by 10.107.33.73 with SMTP id h70mr7377125ioh.89.1471981162949; Tue, 23 Aug 2016 12:39:22 -0700 (PDT) Received: from moondust.nodomain.none (blk-138-73-133.eastlink.ca. [24.138.73.133]) by smtp.gmail.com with ESMTPSA id b190sm1914607itb.17.2016.08.23.12.39.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 23 Aug 2016 12:39:22 -0700 (PDT) From: nljlistbox2@gmail.com (N. Jackson) To: Eli Zaretskii Subject: Re: bug#24291: 25.1; display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t References: <87a8g3snz6.fsf@moondust.awandering> <83fupvfsvi.fsf@gnu.org> Date: Tue, 23 Aug 2016 16:39:21 -0300 In-Reply-To: <83fupvfsvi.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 Aug 2016 17:43:29 +0300") Message-ID: <87lgznqnpy.fsf@moondust.awandering> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 24291 Cc: 24291@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) At 17:43 +0300 on Tuesday 2016-08-23, Eli Zaretskii wrote: >> From: nljlistbox2@gmail.com (N. Jackson) >> Date: Tue, 23 Aug 2016 08:50:53 -0300 >> >> 0. emacs -Q >> >> 1. Enter the following elisp in *scratch*: >> >> (custom-set-variables >> '(display-time-mode t) >> '(zoneinfo-style-world-list >> (quote >> (("Etc/UTC" "Universal Time") >> ("AST4ADT" "Atlantic Time") >> ("EST5EDT" "Eastern Time") >> ("Europe/London" "London") >> ("Asia/Tokyo" "Tokyo"))))) >> >> 2. `C-x C-e' (eval-last-sexp) to run it >> >> 3. `M-x display-time-world' >> >> Observed result: >> >> Seattle Tuesday 23 August 04:22 PDT >> New York Tuesday 23 August 07:22 EDT >> London Tuesday 23 August 12:22 BST >> Paris Tuesday 23 August 13:22 CEST >> Bangalore Tuesday 23 August 16:52 IST >> Tokyo Tuesday 23 August 20:22 JST >> >> Expected result: >> >> Universal Time Tuesday 23 August 11:24 UTC >> Atlantic Time Tuesday 23 August 08:24 ADT >> Eastern Time Tuesday 23 August 07:24 EDT >> London Tuesday 23 August 12:24 BST >> Tokyo Tuesday 23 August 20:24 JST > > You need to set zoneinfo-style-world-list before time.el is loaded. I see. Then maybe showing he problem from `emacs -Q' requires a more carefully-crafted example. But this doesn't work when I run Emacs normally, and in that case I'm not doing anything unusual. I don't know when time.el is loaded with respect to when my init file is run. But even if I comment out my entire init file except for this snippet, this problem occurs. I can't change the order because Customize puts its variables in alphabetical order. N. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 23 22:38:26 2016 Received: (at 24291) by debbugs.gnu.org; 24 Aug 2016 02:38:26 +0000 Received: from localhost ([127.0.0.1]:38431 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcO5B-0004uh-Nl for submit@debbugs.gnu.org; Tue, 23 Aug 2016 22:38:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:43453) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcO59-0004uP-O1 for 24291@debbugs.gnu.org; Tue, 23 Aug 2016 22:38:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcO4z-0001Zm-Cl for 24291@debbugs.gnu.org; Tue, 23 Aug 2016 22:38:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36760) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcO4z-0001ZV-9m; Tue, 23 Aug 2016 22:38:13 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2090 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bcO4x-0003OI-EA; Tue, 23 Aug 2016 22:38:11 -0400 Date: Wed, 24 Aug 2016 05:38:27 +0300 Message-Id: <838tvmgacc.fsf@gnu.org> From: Eli Zaretskii To: nljlistbox2@gmail.com (N. Jackson) In-reply-to: <87lgznqnpy.fsf@moondust.awandering> (nljlistbox2@gmail.com) Subject: Re: bug#24291: 25.1; display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t References: <87a8g3snz6.fsf@moondust.awandering> <83fupvfsvi.fsf@gnu.org> <87lgznqnpy.fsf@moondust.awandering> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 24291 Cc: 24291@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) > From: nljlistbox2@gmail.com (N. Jackson) > Cc: 24291@debbugs.gnu.org > Date: Tue, 23 Aug 2016 16:39:21 -0300 > > I can't change the order because Customize puts its variables in > alphabetical order. You can use setq instead. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 24 01:40:15 2016 Received: (at 24291) by debbugs.gnu.org; 24 Aug 2016 05:40:16 +0000 Received: from localhost ([127.0.0.1]:38591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcQv9-0000uk-O7 for submit@debbugs.gnu.org; Wed, 24 Aug 2016 01:40:15 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcQv7-0000uY-LQ for 24291@debbugs.gnu.org; Wed, 24 Aug 2016 01:40:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bcQv1-0007dc-Sn for 24291@debbugs.gnu.org; Wed, 24 Aug 2016 01:40:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bcQv0-0007b1-Bs; Wed, 24 Aug 2016 01:40:06 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1bcQux-00015O-4Y; Wed, 24 Aug 2016 01:40:03 -0400 From: Glenn Morris To: Eli Zaretskii Subject: Re: bug#24291: 25.1; display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t References: <87a8g3snz6.fsf@moondust.awandering> <83fupvfsvi.fsf@gnu.org> <87lgznqnpy.fsf@moondust.awandering> <838tvmgacc.fsf@gnu.org> X-Spook: Extreme weather smuggle National Biosurveillance X-Ran: ?.gcg@+{9lyh$D*{rzB3ZB_ep.1m'Gv (Eli Zaretskii's message of "Wed, 24 Aug 2016 05:38:27 +0300") Message-ID: <8zshtuafnx.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 24291 Cc: "N. Jackson" , 24291@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) Sounds like zoneinfo-style-world-list needs a :set function to update any existing display. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 24 17:03:14 2016 Received: (at 24291) by debbugs.gnu.org; 24 Aug 2016 21:03:14 +0000 Received: from localhost ([127.0.0.1]:39417 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcfKM-0006Dv-0i for submit@debbugs.gnu.org; Wed, 24 Aug 2016 17:03:14 -0400 Received: from mail-it0-f48.google.com ([209.85.214.48]:34524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bcfKJ-0006Ct-FQ for 24291@debbugs.gnu.org; Wed, 24 Aug 2016 17:03:11 -0400 Received: by mail-it0-f48.google.com with SMTP id e63so28885632ith.1 for <24291@debbugs.gnu.org>; Wed, 24 Aug 2016 14:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=0QP/LS7k9oTEFqZABSdx3tYKDom8HOTTrborMi+At84=; b=JQSnHKzCcH0SYygpxaj/ZF2hZdnSvm62JeIcyTKDPlAtxKNrLImiAuXUUG0dm2Idr2 pb9LAoNRjVvI2YlVGeAHSeMWwKYZIGmFpmyrvwLdM/n6PvLzXHloUckYeiyvfCJDP6gP /HvwWnzPEDxAL4FklG0ZYZlYutinZMI93DotvRFRQHhOi/7/TRN0WnVuxAPFNb9qAAhf EK3BNa1kFChUftrFmoyFogdrGYbmNPxvTBPwi0agKVuSko94gdc4Qg7PWCYxmJcgxZ/4 IlxWXTjfwdqbEiH7GKGuJLlJt10NwwVw1bO2lICpUF8wGjSlIeRKomujgO5a0APv7X1+ CzWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=0QP/LS7k9oTEFqZABSdx3tYKDom8HOTTrborMi+At84=; b=OE012rbVkD/DNBayrr2XHK4lYdrV0hzAMCY05DhRM7sj63DAhCU+xeyon+H0pFkU6D 56Cq4V6TkrMkdr7P5OmBX8buNdEbC4QxrjbHlHkY7jFP22ILhHtvjalk3N0xLygwX2vG OThTvEevnxtQL92RyajW8TLhaCcM6UmoS/hTgpMqKEiiJrgMjJYIhk/fWeSdpSqDCXkJ w1t1kBEHPN59CzM+r3UUx2L1OITi4eWOQa7CbdI5cXZWllNTrveAgfmRanh+l2RSrbgz TUhNhY82P3PjqhnOwhgowQLSQkuNULj0L8fNAzlmsfIkxl0qiocSk2nupT4MfFQIhZWM xaXg== X-Gm-Message-State: AEkoouubL//5LCBd7IwhN/4a6e8M8NEUbU3ijG+Ysx3Gi6f/WxQ7JF8zW194GoWpgXi1eA== X-Received: by 10.107.137.102 with SMTP id l99mr6287605iod.177.1472072585923; Wed, 24 Aug 2016 14:03:05 -0700 (PDT) Received: from moondust.nodomain.none ([75.98.19.134]) by smtp.gmail.com with ESMTPSA id g78sm4087602itb.12.2016.08.24.14.03.04 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 24 Aug 2016 14:03:05 -0700 (PDT) From: nljlistbox2@gmail.com (N. Jackson) To: Eli Zaretskii Subject: Re: bug#24291: 25.1; display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t References: <87a8g3snz6.fsf@moondust.awandering> <83fupvfsvi.fsf@gnu.org> <87lgznqnpy.fsf@moondust.awandering> <838tvmgacc.fsf@gnu.org> Date: Wed, 24 Aug 2016 18:03:03 -0300 In-Reply-To: <838tvmgacc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 24 Aug 2016 05:38:27 +0300") Message-ID: <87d1kx283c.fsf@moondust.awandering> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 24291 Cc: 24291@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) At 05:38 +0300 on Wednesday 2016-08-24, Eli Zaretskii wrote: >> From: nljlistbox2@gmail.com (N. Jackson) >> Cc: 24291@debbugs.gnu.org >> Date: Tue, 23 Aug 2016 16:39:21 -0300 >> >> I can't change the order because Customize puts its variables in >> alphabetical order. > > You can use setq instead. Hi Eli, I'm not clear what you're telling me here. If you're saying that there is a workaround available to me, then thank you. Yes, indeed setq works. If you are saying that there is no problem because the user can use setq instead of using Customize, then I think I disagree. To me it doesn't make sense for Emacs to have a variable that is "Customizable" if using Customize to set it doesn't work reliably. N. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 24 22:40:24 2016 Received: (at 24291) by debbugs.gnu.org; 25 Aug 2016 02:40:25 +0000 Received: from localhost ([127.0.0.1]:39588 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bckae-0002P1-No for submit@debbugs.gnu.org; Wed, 24 Aug 2016 22:40:24 -0400 Received: from eggs.gnu.org ([208.118.235.92]:39153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bckad-0002Op-Oz for 24291@debbugs.gnu.org; Wed, 24 Aug 2016 22:40:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bckaT-00039x-Q3 for 24291@debbugs.gnu.org; Wed, 24 Aug 2016 22:40:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58752) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bckaT-00039X-Mc; Wed, 24 Aug 2016 22:40:13 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3889 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bckaR-0002vO-TO; Wed, 24 Aug 2016 22:40:12 -0400 Date: Thu, 25 Aug 2016 05:40:31 +0300 Message-Id: <83oa4hefkw.fsf@gnu.org> From: Eli Zaretskii To: nljlistbox2@gmail.com (N. Jackson) In-reply-to: <87d1kx283c.fsf@moondust.awandering> (nljlistbox2@gmail.com) Subject: Re: bug#24291: 25.1; display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t References: <87a8g3snz6.fsf@moondust.awandering> <83fupvfsvi.fsf@gnu.org> <87lgznqnpy.fsf@moondust.awandering> <838tvmgacc.fsf@gnu.org> <87d1kx283c.fsf@moondust.awandering> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: 24291 Cc: 24291@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.3 (-----) > From: nljlistbox2@gmail.com (N. Jackson) > Cc: 24291@debbugs.gnu.org > Date: Wed, 24 Aug 2016 18:03:03 -0300 > > At 05:38 +0300 on Wednesday 2016-08-24, Eli Zaretskii wrote: > > >> From: nljlistbox2@gmail.com (N. Jackson) > >> Cc: 24291@debbugs.gnu.org > >> Date: Tue, 23 Aug 2016 16:39:21 -0300 > >> > >> I can't change the order because Customize puts its variables in > >> alphabetical order. > > > > You can use setq instead. > > Hi Eli, > > I'm not clear what you're telling me here. > > If you're saying that there is a workaround available to me, then thank > you. Yes, indeed setq works. > > If you are saying that there is no problem because the user can use > setq instead of using Customize, then I think I disagree. To me it > doesn't make sense for Emacs to have a variable that is "Customizable" > if using Customize to set it doesn't work reliably. Knowing me and my attitude towards Emacs, what do you think I'm saying? From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 02 03:10:18 2017 Received: (at 24291) by debbugs.gnu.org; 2 Oct 2017 07:10:18 +0000 Received: from localhost ([127.0.0.1]:43377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyurq-0000yp-4j for submit@debbugs.gnu.org; Mon, 02 Oct 2017 03:10:18 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyuro-0000ya-AJ for 24291@debbugs.gnu.org; Mon, 02 Oct 2017 03:10:16 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B9A8416022A; Mon, 2 Oct 2017 00:10:10 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id vB6ndsLIhtMc; Mon, 2 Oct 2017 00:10:09 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id B764B160D8D; Mon, 2 Oct 2017 00:10:09 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id yQe_FEpTochw; Mon, 2 Oct 2017 00:10:09 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.154.18.85]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 94ACC16022A; Mon, 2 Oct 2017 00:10:09 -0700 (PDT) To: "N. Jackson" From: Paul Eggert Subject: Re: display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t Organization: UCLA Computer Science Department Message-ID: <3bbf5f86-6506-f8aa-e5c6-97a553ee5352@cs.ucla.edu> Date: Mon, 2 Oct 2017 00:10:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------A42FA5460D4EC6D7A1F9264D" Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 24291 Cc: 24291@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) This is a multi-part message in MIME format. --------------A42FA5460D4EC6D7A1F9264D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit This seems to be a clear bug in time.el, as a customizable variable's initial value should not depend on that of another customizable variable. Proposed patch attached. --------------A42FA5460D4EC6D7A1F9264D Content-Type: text/x-patch; name="0001-Fix-customization-of-zoneinfo-style-world-list.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0001-Fix-customization-of-zoneinfo-style-world-list.patch" >From 59ad540379c79271c373c1556d38f67aa13944e6 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 2 Oct 2017 00:05:47 -0700 Subject: [PATCH] Fix customization of zoneinfo-style-world-list A customizable variable's initial value cannot depend on that of another customizable variable, since the variables are initialized in other than textual order. Problem reported by N. Jackson (Bug#24291). * lisp/time.el (display-time-world-list): Default to t, a special value that expands to zoneinfo-style-word-list if that works, and to legacy-style-word-list otherwise. (time--display-world-list): New function. (display-time-world, display-time-world-timer): Use it. --- lisp/time.el | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/lisp/time.el b/lisp/time.el index 5c0eac0..c8726a9 100644 --- a/lisp/time.el +++ b/lisp/time.el @@ -160,24 +160,33 @@ legacy-style-world-list :type '(repeat (list string string)) :version "23.1") -(defcustom display-time-world-list - ;; Determine if zoneinfo style timezones are supported by testing that - ;; America/New York and Europe/London return different timezones. - (let ((nyt (format-time-string "%z" nil "America/New_York")) - (gmt (format-time-string "%z" nil "Europe/London"))) - (if (string-equal nyt gmt) - legacy-style-world-list - zoneinfo-style-world-list)) +(defcustom display-time-world-list t "Alist of time zones and places for `display-time-world' to display. Each element has the form (TIMEZONE LABEL). TIMEZONE should be in a format supported by your system. See the documentation of `zoneinfo-style-world-list' and `legacy-style-world-list' for two widely used formats. LABEL is -a string to display as the label of that TIMEZONE's time." +a string to display as the label of that TIMEZONE's time. + +If the value is t instead of an alist, use the value of +`zoneinfo-style-world-list' if it works on this platform, and of +`legacy-style-world-list' otherwise." + :group 'display-time :type '(repeat (list string string)) :version "23.1") +(defun time--display-world-list () + (if (listp display-time-world-list) + display-time-world-list + ;; Determine if zoneinfo style timezones are supported by testing that + ;; America/New York and Europe/London return different timezones. + (let ((nyt (format-time-string "%z" nil "America/New_York")) + (gmt (format-time-string "%z" nil "Europe/London"))) + (if (string-equal nyt gmt) + legacy-style-world-list + zoneinfo-style-world-list)))) + (defcustom display-time-world-time-format "%A %d %B %R %Z" "Format of the time displayed, see `format-time-string'." :group 'display-time @@ -548,7 +557,7 @@ display-time-world (not (get-buffer display-time-world-buffer-name))) (run-at-time t display-time-world-timer-second 'display-time-world-timer)) (with-current-buffer (get-buffer-create display-time-world-buffer-name) - (display-time-world-display display-time-world-list) + (display-time-world-display (time--display-world-list)) (display-buffer display-time-world-buffer-name (cons nil '((window-height . fit-window-to-buffer)))) (display-time-world-mode))) @@ -556,7 +565,7 @@ display-time-world (defun display-time-world-timer () (if (get-buffer display-time-world-buffer-name) (with-current-buffer (get-buffer display-time-world-buffer-name) - (display-time-world-display display-time-world-list)) + (display-time-world-display (time--display-world-list))) ;; cancel timer (let ((list timer-list)) (while list -- 2.7.4 --------------A42FA5460D4EC6D7A1F9264D-- From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 02 03:11:56 2017 Received: (at control) by debbugs.gnu.org; 2 Oct 2017 07:11:56 +0000 Received: from localhost ([127.0.0.1]:43381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyutQ-00011e-I2 for submit@debbugs.gnu.org; Mon, 02 Oct 2017 03:11:56 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:49948) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dyutO-00011R-IS for control@debbugs.gnu.org; Mon, 02 Oct 2017 03:11:54 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 4596916022A for ; Mon, 2 Oct 2017 00:11:49 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id F2mhZpmQM3aR for ; Mon, 2 Oct 2017 00:11:47 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id A3F66160D8D for ; Mon, 2 Oct 2017 00:11:47 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id XFfbp8AojYfj for ; Mon, 2 Oct 2017 00:11:47 -0700 (PDT) Received: from [192.168.1.9] (unknown [47.154.18.85]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 8A3ED16022A for ; Mon, 2 Oct 2017 00:11:47 -0700 (PDT) To: control@debbugs.gnu.org From: Paul Eggert Subject: 24291 has a patch Organization: UCLA Computer Science Department Message-ID: Date: Mon, 2 Oct 2017 00:11:47 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) tags 24291 patch From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 02 12:01:25 2017 Received: (at 24291) by debbugs.gnu.org; 2 Oct 2017 16:01:25 +0000 Received: from localhost ([127.0.0.1]:44378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz39o-0004zy-UD for submit@debbugs.gnu.org; Mon, 02 Oct 2017 12:01:25 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz39l-0004zi-VJ for 24291@debbugs.gnu.org; Mon, 02 Oct 2017 12:01:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dz39c-00038u-BP for 24291@debbugs.gnu.org; Mon, 02 Oct 2017 12:01:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:41950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dz39c-00038n-8H; Mon, 02 Oct 2017 12:01:12 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2003 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dz39b-0001bs-MF; Mon, 02 Oct 2017 12:01:12 -0400 Date: Mon, 02 Oct 2017 19:00:56 +0300 Message-Id: <83efql35fr.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert In-reply-to: <3bbf5f86-6506-f8aa-e5c6-97a553ee5352@cs.ucla.edu> (message from Paul Eggert on Mon, 2 Oct 2017 00:10:09 -0700) Subject: Re: display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t References: <3bbf5f86-6506-f8aa-e5c6-97a553ee5352@cs.ucla.edu> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 24291 Cc: nljlistbox2@gmail.com, 24291@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) > Cc: 24291@debbugs.gnu.org, Eli Zaretskii > From: Paul Eggert > Date: Mon, 2 Oct 2017 00:10:09 -0700 > > This seems to be a clear bug in time.el, as a customizable variable's initial > value should not depend on that of another customizable variable. Proposed patch > attached. LGTM, thanks. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 02 12:08:09 2017 Received: (at 24291-done) by debbugs.gnu.org; 2 Oct 2017 16:08:09 +0000 Received: from localhost ([127.0.0.1]:44386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz3GK-0005A3-Vz for submit@debbugs.gnu.org; Mon, 02 Oct 2017 12:08:09 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:46684) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz3GJ-00059g-NB for 24291-done@debbugs.gnu.org; Mon, 02 Oct 2017 12:08:08 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 42CAE160E09; Mon, 2 Oct 2017 09:08:02 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id lQHYjMc9JfO2; Mon, 2 Oct 2017 09:08:01 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 92DEE160E0F; Mon, 2 Oct 2017 09:08:01 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id PTiXubmWEXVW; Mon, 2 Oct 2017 09:08:01 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 7984D160E0D; Mon, 2 Oct 2017 09:08:01 -0700 (PDT) Subject: Re: display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t To: Eli Zaretskii References: <3bbf5f86-6506-f8aa-e5c6-97a553ee5352@cs.ucla.edu> <83efql35fr.fsf@gnu.org> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <08612f5e-0c09-a284-1cfe-246e93232faa@cs.ucla.edu> Date: Mon, 2 Oct 2017 09:08:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <83efql35fr.fsf@gnu.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 24291-done Cc: nljlistbox2@gmail.com, 24291-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) OK, I installed it on emacs-26 and am closing the bug. From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 02 13:01:06 2017 Received: (at 24291) by debbugs.gnu.org; 2 Oct 2017 17:01:06 +0000 Received: from localhost ([127.0.0.1]:44444 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz45a-0006WZ-0i for submit@debbugs.gnu.org; Mon, 02 Oct 2017 13:01:06 -0400 Received: from mail-io0-f196.google.com ([209.85.223.196]:38184) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dz45Y-0006Vy-Hw for 24291@debbugs.gnu.org; Mon, 02 Oct 2017 13:01:04 -0400 Received: by mail-io0-f196.google.com with SMTP id e9so3427423iod.5 for <24291@debbugs.gnu.org>; Mon, 02 Oct 2017 10:01:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:message-id:user-agent :mime-version; bh=g8/wk1d0vhIAihmrSLyi5U0VHXWgpYb9LE2uf+bdrg8=; b=gZBfkPQI26kavCYCSDLXkKBQwqs55KdG93OUdCtlSUjGySNmRuwEFIc9j80MIrXId2 usIU6IRaizX9ibZD87Pts3k4xj0jTj0CNuFSZqoA9qjbIhxKzQbtCFbWXGzr8tlH1I7m bbCgC2+7TT0oy/m1Qq5tprruhjy9jvKFu3VL3++/riaXq5gH/ok9DBKH6TWYuicDcF8Q b1zGzhf2Dq/KxQIhYGP/1U4BTpVC51kDXXuX/ciyJbZNOnIY87JBpv42+c8unutH0Ovo uQ6DX1TZ0HhwebzmKMyF9V4mvLp+h0DkhynrN9bkGT8QjDT0vmH7ukWHrwHBRMpaH4WG VkFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:message-id :user-agent:mime-version; bh=g8/wk1d0vhIAihmrSLyi5U0VHXWgpYb9LE2uf+bdrg8=; b=WVVAPsbn+Rf6GrRrvuwf0wIpK4SYZXBVEyEsAwR9t6HPj3s/TW8nk70nXba42hlio+ xqJrEbwvu37R26Y9P68tscN7dP6JON6ZPcWWA2HX637+t8B6JU1tSOWrhg0TbxrHEXlU MPOJ42hQPJCUeRpKI0N7Fiyn8iGqokiu8X47AMF5ldcWJpPoNxAfDpcMwMOgG92F/001 xoat90CAJPS49OgCN7rEGwI5Zh5u6Ti/EKmLQHSuoTItJmjfyvA+WFDcDAySOMp/ZoFy 4vJLYdkuqjHXvar90l1rdQVuTNuBgbDODTpRy0bj7Nzqyeyt4maRppUjN0dglYTt7OHB KWQg== X-Gm-Message-State: AMCzsaW+i5yHnqaIOWWUPqSNmy1Gi8byigvc5YczBwmpwDj3N7msnaB7 LZloDV7OxAaoGY9/JNFLz+0= X-Google-Smtp-Source: AOwi7QDTGkPexbC6PtRSg3TGiaBatra+k9k4BQ7X2JaZ5pGVGG7rPMyEAjR1nZTSy+PdQQGogk6OVg== X-Received: by 10.107.184.139 with SMTP id i133mr25619859iof.278.1506963656881; Mon, 02 Oct 2017 10:00:56 -0700 (PDT) Received: from moondust.localdomain.nodomain.none ([72.143.113.194]) by smtp.gmail.com with ESMTPSA id l191sm4643584ioe.22.2017.10.02.10.00.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Oct 2017 10:00:56 -0700 (PDT) From: nljlistbox2@gmail.com (N. Jackson) To: Paul Eggert Subject: Re: display-time-world seems to ignore zoneinfo-style-world-list when display-time-mode is t References: <3bbf5f86-6506-f8aa-e5c6-97a553ee5352@cs.ucla.edu> Date: Mon, 02 Oct 2017 13:00:55 -0400 Message-ID: <87k20d32ns.fsf@moondust.localdomain> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 24291 Cc: 24291@debbugs.gnu.org, Eli Zaretskii X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.0 (--) Hello Paul, At 00:10 -0700 on Monday 2017-10-02, Paul Eggert wrote: > > This seems to be a clear bug in time.el, as a customizable > variable's initial value should not depend on that of another > customizable variable. Proposed patch attached. I have just tested your proposed patch, and it fixes the problem here. (I'm on a recent version of the emacs-26 branch: In GNU Emacs 26.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.17) of 2017-10-02 built on moondust.localdomain Repository revision: 8b2ab5014b2c1641bb62efa63b9ee54b4c056b5a Windowing system distributor 'Fedora Project', version 11.0.11903000 System Description: Fedora release 25 (Twenty Five) .) Thank you. N. From unknown Sat Aug 16 16:06:58 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 31 Oct 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator