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
612df640
Commit
612df640
authored
Sep 01, 2020
by
Andrea Corallo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Have cl-declare set function speed prop
parent
c3ddcf73
Pipeline
#6712
failed with stage
in 83 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/byte-run.el
+4
-0
lisp/emacs-lisp/cl-macs.el
lisp/emacs-lisp/cl-macs.el
+7
-4
No files found.
lisp/emacs-lisp/byte-run.el
View file @
612df640
...
...
@@ -258,6 +258,9 @@ The return value is undefined.
(
cons
'prog1
(
cons
def
declarations
))
def
))))))
(
defvar
defun-last-function-name
nil
"Last function name macroexpanded by `defun'."
)
;; Now that we defined defmacro we can use it!
(
defmacro
defun
(
name
arglist
&optional
docstring
&rest
body
)
"Define NAME as a function.
...
...
@@ -280,6 +283,7 @@ The return value is undefined.
(
and
(
listp
arglist
)
(
null
(
delq
t
(
mapcar
#'
symbolp
arglist
)))))
(
error
"Malformed arglist: %s"
arglist
))
(
setq
defun-last-function-name
name
)
(
let
((
decls
(
cond
((
eq
(
car-safe
docstring
)
'declare
)
(
prog1
(
cdr
docstring
)
(
setq
docstring
nil
)))
...
...
lisp/emacs-lisp/cl-macs.el
View file @
612df640
...
...
@@ -2374,10 +2374,13 @@ values. For compatibility, (cl-values A B C) is a synonym for (list A B C).
'
((
0
nil
)
(
1
t
)
(
2
t
)
(
3
t
))))
(
safety
(
assq
(
nth
1
(
assq
'safety
(
cdr
spec
)))
'
((
0
t
)
(
1
t
)
(
2
t
)
(
3
nil
)))))
(
if
speed
(
setq
cl--optimize-speed
(
car
speed
)
byte-optimize
(
nth
1
speed
)))
(
if
safety
(
setq
cl--optimize-safety
(
car
safety
)
byte-compile-delete-errors
(
nth
1
safety
)))))
(
when
speed
(
setq
cl--optimize-speed
(
car
speed
)
byte-optimize
(
nth
1
speed
))
(
function-put
defun-last-function-name
'speed
cl--optimize-speed
))
(
when
safety
(
setq
cl--optimize-safety
(
car
safety
)
byte-compile-delete-errors
(
nth
1
safety
)))))
((
and
(
eq
(
car-safe
spec
)
'warn
)
(
boundp
'byte-compile-warnings
))
(
while
(
setq
spec
(
cdr
spec
))
...
...
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