diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-01-24 02:47:47 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-01-24 02:47:47 +0000 |
commit | fa99c6ef4361988b1d6cdcbbc19fc63fc8d79c68 (patch) | |
tree | 0647f20a4df5a3f858c3c7760becadbfddb71c39 | |
parent | bf94a68452be9384745d5ff3dd8af7107f8fcb86 (diff) | |
download | emacs-fa99c6ef4361988b1d6cdcbbc19fc63fc8d79c68.tar.gz |
(calendar-french-single-byteify): Function deleted.
(calendar-goto-french-date): Don't call calendar-french-single-byteify.
Delete local var oldval.
(calendar-print-french-date): Don't bind enable-multibyte-characters.
-rw-r--r-- | lisp/calendar/cal-french.el | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/lisp/calendar/cal-french.el b/lisp/calendar/cal-french.el index a9c030aaaaa..9972f3ce22d 100644 --- a/lisp/calendar/cal-french.el +++ b/lisp/calendar/cal-french.el @@ -190,39 +190,23 @@ Defaults to today's date if DATE is not given." (defun calendar-print-french-date () "Show the French Revolutionary calendar equivalent of the selected date." (interactive) - (let ((f (calendar-french-date-string (calendar-cursor-to-date t))) - (enable-multibyte-characters t)) + (let ((f (calendar-french-date-string (calendar-cursor-to-date t)))) (if (string-equal f "") (message "Date is pre-French Revolution") (message "French Revolutionary date: %s" f)))) -;; Convert a multibyte string to a singlebyte string -;; that represents the same characters in Latin-1. -(defun calendar-french-single-byteify (string) - (if enable-multibyte-characters - string - (apply 'concat-chars - (mapcar (function (lambda (char) (logand char 255))) - (let ((enable-multibyte-characters t)) - (string-to-list string)))))) - (defun calendar-goto-french-date (date &optional noecho) "Move cursor to French Revolutionary date DATE. Echo French Revolutionary date unless NOECHO is t." (interactive - (let ((oldval enable-multibyte-characters) - (accents (french-calendar-accents)) + (let ((accents (french-calendar-accents)) (months (french-calendar-month-name-array)) (special-days (french-calendar-special-days-array))) - (setq months (mapcar 'calendar-french-single-byteify months)) - (setq special-days - (mapcar 'calendar-french-single-byteify special-days)) (let* ((year (progn (calendar-read (if accents - (calendar-french-single-byteify - "Année de la Révolution (>0): ") + "Année de la Révolution (>0): " "Anne'e de la Re'volution (>0): ") '(lambda (x) (> x 0)) (int-to-string @@ -259,8 +243,7 @@ Echo French Revolutionary date unless NOECHO is t." 1 (calendar-read (if accents - (calendar-french-single-byteify - "Décade (1-3): ") + "Décade (1-3): " "De'cade (1-3): ") '(lambda (x) (memq x '(1 2 3)))))) (day (if (> month 12) |