From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84442 Path: news.gmane.org!not-for-mail From: "Zhao\, Gang" Newsgroups: gmane.emacs.gnus.general Subject: Re: time format on message citation line Date: Wed, 16 Apr 2014 17:28:47 +0800 Message-ID: <8738hd62sw.fsf@gmail.com> References: <87a9c4cre4.fsf@gmail.com> <87ioqq3bac.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1397640601 28887 80.91.229.3 (16 Apr 2014 09:30:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2014 09:30:01 +0000 (UTC) Cc: ding@gnus.org To: Katsumi Yamaoka Original-X-From: ding-owner+M32688@lists.math.uh.edu Wed Apr 16 11:29:52 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WaMA9-0004tb-LR for ding-account@gmane.org; Wed, 16 Apr 2014 11:29:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WaM9S-0003Uq-QX; Wed, 16 Apr 2014 04:29:06 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WaM9R-0003Uh-9D for ding@lists.math.uh.edu; Wed, 16 Apr 2014 04:29:05 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WaM9Q-0000CI-2x for ding@lists.math.uh.edu; Wed, 16 Apr 2014 04:29:04 -0500 Original-Received: from mail-pd0-f175.google.com ([209.85.192.175]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WaM9O-0002Rw-HB for ding@gnus.org; Wed, 16 Apr 2014 11:29:02 +0200 Original-Received: by mail-pd0-f175.google.com with SMTP id x10so10439829pdj.6 for ; Wed, 16 Apr 2014 02:28:55 -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:content-type; bh=wk1DUNrpzsIjS6og91oy6Ff//UuwvzsUp1bDoKEd5g4=; b=qnZRRXwEg+jB0PaG35gPaJ2aF3WmjR4UIqUh40mJUczanKOASOBpbt2MwY6eTSQJgh N3+Ty9WVpInZqPcznIfpHTvYZ420RUYi/86ARu/wE420p3Y3fUi22YLDXWN1MmvYG5bg BjjNdNCM1GUKLRJ8a9CRqt9P9rM/6xmOwhLUzNKVhmNm/SVDM8jakWRfHES+zU3v6qnO 2OqYrsDxVdk4ZHnGrzxNyQGwT8g5zueVaTphW76DzPAGXuprZboHKo0xVEp+4HKO8eQt 8GxthIzXN4wUbFTIWgsEDS6IG0YXZO7ArpT9/t5/VuwsVhABeiimZ7xz/Q51LH/Tg92A Nd5w== X-Received: by 10.68.113.194 with SMTP id ja2mr7418277pbb.30.1397640535455; Wed, 16 Apr 2014 02:28:55 -0700 (PDT) Original-Received: from will ([175.153.40.115]) by mx.google.com with ESMTPSA id cz3sm45733118pbc.9.2014.04.16.02.28.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Apr 2014 02:28:54 -0700 (PDT) In-Reply-To: (Katsumi Yamaoka's message of "Wed, 16 Apr 2014 08:34:37 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Spam-Score: -2.0 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84442 Archived-At: On Wed, 2014-04-16 at 08:34:37 +0900, Katsumi Yamaoka wrote: > On Thu, 03 Apr 2014 19:25:15 +0800, Zhao, Gang wrote: >> On Thu, 2014-04-03 at 14:18:17 +0900, Katsumi Yamaoka wrote: >>> A hack is below. Since manipulating timezone is not so easy, >>> probably we will have to do it in a similar way if we add this >>> feature to the Gnus code. > >> This really works, as showed in above citation line :) Thanks for your help. > > I've implemented the `gmm-format-time-string' function and > modified the `message-insert-formatted-citation-line' function[1] > so as to express a date string in the original author's time > zone. So, there is no longer a normal way to use the local time > zone. But who does want it to do so? Ok, here is a recipe: > > (defadvice message-insert-formatted-citation-line > (before use-local-time-zone (&optional from date tz) activate) > "Use the local time zone." > (setq tz (car (current-time-zone)))) > It's good to know it will be the default to show the original author's time zone. I think that's the more reasonable way. Thanks again for your efforts on this problem. > [1] `message-insert-formatted-citation-line' is one of predefined > functions used to generate a citation line, `... wrote:', in > a reply message like the one in this article. > To use it, customize the `message-citation-line-function' > variable and also the `message-citation-line-format' variable.