From 5a49942338fd48e5be2cbc0f19e46a4c8fd39e4d Mon Sep 17 00:00:00 2001 From: tomo Date: Sat, 6 Sep 2008 15:10:03 +0000 Subject: [PATCH] (format-time-string): Fix problem on GNU Emacs 22.2 . --- poe.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/poe.el b/poe.el index 89c097e..42ca153 100644 --- a/poe.el +++ b/poe.el @@ -1,6 +1,7 @@ ;;; poe.el --- Portable Outfit for Emacsen -;; Copyright (C) 1995,1996,1997,1998,1999 Free Software Foundation, Inc. +;; Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2005 +;; Free Software Foundation, Inc. ;; Author: MORIOKA Tomohiko ;; Shuhei KOBAYASHI @@ -1484,7 +1485,7 @@ Not fully compatible especially when invalid format is specified." ;; Emacs 19.29-19.34/XEmacs: `format-time-string' neither supports the ;; format string "%z" nor the third argument `universal'. -(unless (string-match "\\`[\\-\\+][0-9]+\\'" +(unless (string-match "\\`[---+][0-9]+\\'" (format-time-string "%z" (current-time))) (defadvice format-time-string (before support-timezone-in-numeric-form-and-3rd-arg -- 1.7.10.4