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
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
0488694c
Commit
0488694c
authored
Aug 12, 1997
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(diary-entry-time): Bind case-fold-search to nil.
parent
85c92290
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
21 deletions
+22
-21
lisp/calendar/diary-lib.el
lisp/calendar/diary-lib.el
+22
-21
No files found.
lisp/calendar/diary-lib.el
View file @
0488694c
...
@@ -882,6 +882,7 @@ A value of 0 in any position of the pattern is a wildcard."
...
@@ -882,6 +882,7 @@ A value of 0 in any position of the pattern is a wildcard."
For example, returns 1325 for 1:25pm. Returns -9999 if no time is recognized.
For example, returns 1325 for 1:25pm. Returns -9999 if no time is recognized.
The recognized forms are XXXX or X:XX or XX:XX (military time), XXam or XXpm,
The recognized forms are XXXX or X:XX or XX:XX (military time), XXam or XXpm,
and XX:XXam or XX:XXpm."
and XX:XXam or XX:XXpm."
(
let
((
case-fold-search
nil
))
(
cond
((
string-match
;; Military time
(
cond
((
string-match
;; Military time
"^[ \t]*\\([0-9]?[0-9]\\):?\\([0-9][0-9]\\)\\(\\>\\|[^ap]\\)"
s
)
"^[ \t]*\\([0-9]?[0-9]\\):?\\([0-9][0-9]\\)\\(\\>\\|[^ap]\\)"
s
)
(
+
(
*
100
(
string-to-int
(
+
(
*
100
(
string-to-int
...
@@ -902,7 +903,7 @@ and XX:XXam or XX:XXpm."
...
@@ -902,7 +903,7 @@ and XX:XXam or XX:XXpm."
(
string-to-int
(
substring
s
(
match-beginning
2
)
(
match-end
2
)))
(
string-to-int
(
substring
s
(
match-beginning
2
)
(
match-end
2
)))
(
if
(
equal
?a
(
downcase
(
aref
s
(
match-beginning
3
))))
(
if
(
equal
?a
(
downcase
(
aref
s
(
match-beginning
3
))))
0
1200
)))
0
1200
)))
(
t
-9999
)))
;; Unrecognizable
(
t
-9999
)
)))
;; Unrecognizable
(
defun
list-sexp-diary-entries
(
date
)
(
defun
list-sexp-diary-entries
(
date
)
"Add sexp entries for DATE from the diary file to `diary-entries-list'.
"Add sexp entries for DATE from the diary file to `diary-entries-list'.
...
...
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