Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f008086f
Commit
f008086f
authored
Feb 25, 2012
by
Andreas Schwab
Browse files
* calendar/parse-time.el (parse-time-string): Allow extractor to
return nil.
parent
d268b4fe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
20 deletions
+26
-20
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/calendar/parse-time.el
lisp/calendar/parse-time.el
+21
-20
No files found.
lisp/ChangeLog
View file @
f008086f
2012-02-25 Andreas Schwab <schwab@linux-m68k.org>
* calendar/parse-time.el (parse-time-string): Allow extractor to
return nil.
2012-02-25 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-file-name-for-operation): Add
...
...
lisp/calendar/parse-time.el
View file @
f008086f
...
...
@@ -193,28 +193,29 @@ unknown are returned as nil."
(
predicate
(
pop
rule
))
(
parse-time-val
))
(
when
(
and
(
not
(
nth
(
car
slots
)
time
))
;not already set
(
setq
parse-time-val
(
cond
((
and
(
consp
predicate
)
(
not
(
eq
(
car
predicate
)
'lambda
)))
(
and
(
numberp
parse-time-elt
)
(
<=
(
car
predicate
)
parse-time-elt
)
(
<=
parse-time-elt
(
cadr
predicate
))
parse-time-elt
))
((
symbolp
predicate
)
(
cdr
(
assoc
parse-time-elt
(
symbol-value
predicate
))))
((
funcall
predicate
)))))
(
setq
parse-time-val
(
cond
((
and
(
consp
predicate
)
(
not
(
eq
(
car
predicate
)
'lambda
)))
(
and
(
numberp
parse-time-elt
)
(
<=
(
car
predicate
)
parse-time-elt
)
(
<=
parse-time-elt
(
cadr
predicate
))
parse-time-elt
))
((
symbolp
predicate
)
(
cdr
(
assoc
parse-time-elt
(
symbol-value
predicate
))))
((
funcall
predicate
)))))
(
setq
exit
t
)
(
while
slots
(
let
((
new-val
(
and
rule
(
let
((
this
(
pop
rule
)))
(
if
(
vectorp
this
)
(
parse-integer
parse-time-elt
(
aref
this
0
)
(
aref
this
1
))
(
funcall
this
)))
)))
(
rplaca
(
nthcdr
(
pop
slots
)
time
)
(
or
new-val
parse-time
-val
))))))))
)
(
let
((
new-val
(
if
rule
(
let
((
this
(
pop
rule
)))
(
if
(
vectorp
this
)
(
parse-integer
parse-time-elt
(
aref
this
0
)
(
aref
this
1
))
(
funcall
this
)))
parse-time-val
))
)
(
rplaca
(
nthcdr
(
pop
slots
)
time
)
new
-val
))))))))
time
))
(
provide
'parse-time
)
...
...
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