From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.bugs Subject: bug#26331: numerical timezones require hardwiring Date: Sat, 1 Apr 2017 17:43:34 -0700 Message-ID: References: <871stc9uv1.fsf@jidanni.org> <87wpb33bgz.fsf@jidanni.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1491093914 4043 195.159.176.226 (2 Apr 2017 00:45:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 2 Apr 2017 00:45:14 +0000 (UTC) Cc: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson To: 26331@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 02 02:45:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuTdh-0000B3-Ih for geb-bug-gnu-emacs@m.gmane.org; Sun, 02 Apr 2017 02:45:05 +0200 Original-Received: from localhost ([::1]:53240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuTdn-0005MY-Jp for geb-bug-gnu-emacs@m.gmane.org; Sat, 01 Apr 2017 20:45:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60122) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cuTdh-0005LF-N8 for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 20:45:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cuTde-0006DY-Id for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 20:45:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cuTde-0006DJ-Dr for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 20:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cuTde-0005V7-8o for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2017 20:45:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Mastro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Apr 2017 00:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26331 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 26331-submit@debbugs.gnu.org id=B26331.149109384321059 (code B ref 26331); Sun, 02 Apr 2017 00:45:02 +0000 Original-Received: (at 26331) by debbugs.gnu.org; 2 Apr 2017 00:44:03 +0000 Original-Received: from localhost ([127.0.0.1]:56165 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuTch-0005Ta-1j for submit@debbugs.gnu.org; Sat, 01 Apr 2017 20:44:03 -0400 Original-Received: from mail-qt0-f175.google.com ([209.85.216.175]:36791) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cuTce-0005Sc-W0 for 26331@debbugs.gnu.org; Sat, 01 Apr 2017 20:44:01 -0400 Original-Received: by mail-qt0-f175.google.com with SMTP id r45so90101177qte.3 for <26331@debbugs.gnu.org>; Sat, 01 Apr 2017 17:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=+lUYZK5ZbLEvzNq+90vdVPgXhr4nDjouBb+L2Xb8pjg=; b=PUcRo2Hsi+bPDJeGE7IeY5wLCmDN5voS09BYLD54LIAJOYjxgtbQGjY1pThIHQQyoR T5XKIEs0IAeWI/zjanbEIPTLajDHUujxhmSvocOu/skU5x2mBFER2Clb34R6CNyK0JJe Z0OLtpApKjKp8d+InJ92xl84x+CouNPUPAHdtOWsJ1yBBdojQ4SUM/GN27oB5VGhQQrM 6EWKK4AkfWzw//JZee8fGClCvcGFHMfS6TDLePm2RJ3iwRrtkEXzf/Ri54kTVQMnozVG aW5PRjAFRvx1qNX0yO0dA3eHO9DCoSY7VdLRjbUCPZ+LJqSzphWZM3h5VGF5BtTiEOU/ DSgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=+lUYZK5ZbLEvzNq+90vdVPgXhr4nDjouBb+L2Xb8pjg=; b=hPi+ipX/URwkcLS9Wh38kfzc5OnQVDHwXvhzw8+EgnJJC6/ywmYBk/ibapCWWoSxkA Dq3RzkIDa8YpKFUOVQBeFgEJa+cXfwZsILXeSql+OpHAtFxXxXLti5UMSw+0heYPALY3 YNIM8O7Q94mKmameP0OLb01MuyM8L2qwcMNCh2fMIeD5ovHXdzxvspUjdI8jeTxzBF1w uOddlFKEp8wm0As6Dix+rVBnFtOo/g3ttuYEbgyDupaA7wvnYXhyaXOKJN78yIdOnyL1 712+42Paqb7P4q2zH0oy1krvdWRX7nLu15exKytZE2LJMZAKZ5Qo676sOM3FPBkg8Wci dgrw== X-Gm-Message-State: AFeK/H0HtilXecag0Tvs3a8kDZhp5I0OguUFdPoZzOOzBRF4ZNOaPUTYDmnVD26BSjG4SriJvsRzgGg/Fhq2Ig== X-Received: by 10.237.48.228 with SMTP id 91mr10915482qtf.292.1491093835361; Sat, 01 Apr 2017 17:43:55 -0700 (PDT) Original-Received: by 10.237.49.162 with HTTP; Sat, 1 Apr 2017 17:43:34 -0700 (PDT) In-Reply-To: <87wpb33bgz.fsf@jidanni.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131193 Archived-At: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson wrote: > I mean how to make emacs only look for and change time stamps in HTML fil= es. Right. Here's what I mean: (eval-after-load 'sgml-mode '(add-hook 'html-mode-hook (lambda () (set (make-local-variable 'time-stamp-pattern) "-8/>Last modified: %Y-%02m-%02d %02H:%02M:%02S \\+0800") (set (make-local-variable 'time-stamp-time-zone) "Asia/Taipei") (add-hook 'before-save-hook 'time-stamp nil t) ;; <- Here ))) It will add `time-stamp' to `before-save-hook' buffer-locally in all `html-mode' buffers. John