Gnus development mailing list
 help / color / mirror / Atom feed
From: Didier Verna <verna@inf.enst.fr>
Subject: [PATCH] Ebola is gone (was: Ebola is back)
Date: 26 Nov 1998 11:13:55 +0100	[thread overview]
Message-ID: <qyjsof6g3rw.fsf@metheny.enst.fr> (raw)


	I've localized the Ebola warnings. It's in parse-time.el: the variable 
parse-time-syntax contains chars except, for signs (+ and -) which contained 1 
and -1. Here's a fix:

1998-11-26  Didier Verna  <verna@inf.enst.fr>

	* parse-time.el (parse-time-syntax): Put only chars in the array
	(?p for plus and ?- for minus)
	(parse-integer): don't use parse-time-syntax for computing the
	sign, do it directly.

--- parse-time.el.orig	Thu Nov 26 11:02:29 1998
+++ parse-time.el	Thu Nov 26 11:26:47 1998
@@ -56,8 +56,8 @@
 	do (aset parse-time-syntax i ?A))
   (loop for i from ?a to ?z
 	do (aset parse-time-syntax i ?a))
-  (aset parse-time-syntax ?+ 1)
-  (aset parse-time-syntax ?- -1)
+  (aset parse-time-syntax ?+ ?p)
+  (aset parse-time-syntax ?- ?m)
   (aset parse-time-syntax ?: ?d)
   )
 
@@ -78,10 +78,12 @@
 	(end (or end (length string))))
     (when (< index end)
       (let ((sign (aref string index)))
-	(if (or (eq sign ?+) (eq sign ?-))
-	    (setq sign (parse-time-string-chars sign)
-		  index (1+ index))
-	  (setq sign 1))
+	(cond ((eq sign ?+)
+	       (setq sign 1 index (1+ index)))
+	      ((eq sign ?-)
+	       (setq sign -1 index (1+ index)))
+	      (t
+	       (setq sign 1)))
 	(while (and (< index end)
 		    (setq digit (digit-char-p (aref string index))))
 	  (setq integer (+ (* integer 10) digit)


-- 
    /     /   _   _       Didier Verna        http://www.inf.enst.fr/~verna/
 - / / - / / /_/ /      E.N.S.T. INF C201.1      mailto:verna@inf.enst.fr
/_/ / /_/ / /__ /        46 rue Barrault        Tel.   (33) 01 45 81 73 46
                      75634 Paris  cedex 13     Fax.   (33) 01 45 81 31 19


             reply	other threads:[~1998-11-26 10:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-26 10:13 Didier Verna [this message]
1998-11-26 17:07 ` Hrvoje Niksic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=qyjsof6g3rw.fsf@metheny.enst.fr \
    --to=verna@inf.enst.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).