[gnus git] branch master updated: m0-13-10-g7f6d990 =1= format-spec.el: Work for XEmacs
Katsumi Yamaoka <[email protected]> Mon, 11 May 2015 02:49:52 +0200
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 7f6d990bcb085e36e9dec80c9e7b830944a12c52 (commit)
from 68f412fcdd68a5d0c322fd69a5e4cf07c1209e2b (commit)
- Log -----------------------------------------------------------------
commit 7f6d990bcb085e36e9dec80c9e7b830944a12c52
Author: Katsumi Yamaoka <[email protected]>
Date: Mon May 11 00:49:29 2015 +0000
format-spec.el: Work for XEmacs
(format-spec, format-spec-make): Normalize characters into numbers in spec keys.
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 2b6ba51..3bb6464 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-11 Katsumi Yamaoka <[email protected]>
+
+ * format-spec.el (format-spec, format-spec-make): Work for XEmacs.
+ Normalize characters into numbers in spec keys.
+
2015-05-07 Katsumi Yamaoka <[email protected]>
* dgnushack.el (declare-function): Redefine it to use autoload.
diff --git a/lisp/format-spec.el b/lisp/format-spec.el
index e61978e..a275393 100644
--- a/lisp/format-spec.el
+++ b/lisp/format-spec.el
@@ -43,7 +43,7 @@ the text that it generates."
;; Valid format spec.
((looking-at "\\([-0-9.]*\\)\\([a-zA-Z]\\)")
(let* ((num (match-string 1))
- (spec (string-to-char (match-string 2)))
+ (spec (+ (string-to-char (match-string 2)) 0))
(val (assq spec specification)))
(unless val
(error "Invalid format character: `%%%c'" spec))
@@ -70,7 +70,7 @@ starting with a character."
(while pairs
(unless (cdr pairs)
(error "Invalid list of pairs"))
- (push (cons (car pairs) (cadr pairs)) alist)
+ (push (cons (+ (car pairs) 0) (cadr pairs)) alist)
(setq pairs (cddr pairs)))
(nreverse alist)))
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 5 +++++
lisp/format-spec.el | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project