Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e5e99776
Commit
e5e99776
authored
Apr 01, 2008
by
Glenn Morris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Commentary): Point to calendar.el.
(calendar-persian-date-string): Reduce nesting of some lets.
parent
b36e906d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
lisp/calendar/cal-persia.el
lisp/calendar/cal-persia.el
+8
-9
No files found.
lisp/calendar/cal-persia.el
View file @
e5e99776
...
...
@@ -27,8 +27,7 @@
;;; Commentary:
;; This collection of functions implements the features of calendar.el and
;; diary.el that deal with the Persian calendar.
;; See calendar.el.
;;; Code:
...
...
@@ -148,13 +147,13 @@ Gregorian date Sunday, December 31, 1 BC."
(
calendar-absolute-from-gregorian
(
or
date
(
calendar-current-date
)))))
(
y
(
extract-calendar-year
persian-date
))
(
m
(
extract-calendar-month
persian-date
))
)
(
let
(
(
monthname
(
aref
persian-calendar-month-name-array
(
1-
m
)))
(
day
(
int-to-string
(
extract-calendar-day
persian-date
)))
(
dayname
nil
)
(
month
(
int-to-string
m
))
(
year
(
int-to-string
y
))
)
(
mapconcat
'eval
calendar-date-display-form
""
)))
)
(
m
(
extract-calendar-month
persian-date
))
(
monthname
(
aref
persian-calendar-month-name-array
(
1-
m
)))
(
day
(
int-to-string
(
extract-calendar-day
persian-date
)))
(
year
(
int-to-string
y
)
)
(
month
(
int-to-string
m
))
dayname
)
(
mapconcat
'eval
calendar-date-display-form
""
)))
;;;###cal-autoload
(
defun
calendar-print-persian-date
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment