From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Make display-time-mode time zone configurable Date: Thu, 18 Feb 2016 20:57:48 -0800 Organization: UCLA Computer Science Department Message-ID: <56C6A0CC.1080007@cs.ucla.edu> References: <87fuwt8wek.fsf@udel.edu> <56C2A950.3080102@cs.ucla.edu> <20160219023723.GB15748@holos> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1455857909 20720 80.91.229.3 (19 Feb 2016 04:58:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Feb 2016 04:58:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Mark Oteiza Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 19 05:58:20 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aWd91-0000wR-Bu for ged-emacs-devel@m.gmane.org; Fri, 19 Feb 2016 05:58:19 +0100 Original-Received: from localhost ([::1]:48454 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWd8x-0004Qu-1M for ged-emacs-devel@m.gmane.org; Thu, 18 Feb 2016 23:58:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40631) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWd8h-0004QW-SM for emacs-devel@gnu.org; Thu, 18 Feb 2016 23:58:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aWd8d-0002Mf-RA for emacs-devel@gnu.org; Thu, 18 Feb 2016 23:57:59 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:57441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aWd8d-0002M0-KN for emacs-devel@gnu.org; Thu, 18 Feb 2016 23:57:55 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id EB8A416075E; Thu, 18 Feb 2016 20:57:53 -0800 (PST) Original-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 aCwDHnioT6IZ; Thu, 18 Feb 2016 20:57:53 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 2B8C4160D25; Thu, 18 Feb 2016 20:57:53 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-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 B5ciduqXBxLg; Thu, 18 Feb 2016 20:57:53 -0800 (PST) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 0608216075E; Thu, 18 Feb 2016 20:57:53 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 In-Reply-To: <20160219023723.GB15748@holos> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:200175 Archived-At: Mark Oteiza wrote: > lots of time-related things are fragmented across Emacs. Yes, too fragmented. People have added individual features without knowing about the other uses. > This patch just conveniently exposes the ZONE feature in > display-time-mode in the same way time-stamp-time-zone does in > time-stamp.el. Would it make sense to put a defcustom in (I guess) > time.el and have time-stamp.el use it? On second thought, probably not. time-stamp.el is about time stamps in files, where it makes sense to (for example) standardize on UTC time stamps for ease of sharing files with people in other time zones. The proposed display-time-zone, on the other hand, is about time stamps in the user display. This makes less sense to me, as the user display should use consistent time stamps and there are many other ways to display time. I suppose the use case would be something like "Although for most purposes Emacs should behave as if the time zone is X, the mode line should sometimes but not always use time zone Y". Why would the user want that? Does display-time-world address the use case you're interested in? If not, what is display-time-world missing?