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
baaacd92
Commit
baaacd92
authored
Apr 08, 2019
by
Stefan Monnier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* nadvice.el: Add ourselves to package--builtin-versions
parent
0d5e8361
Pipeline
#1204
failed with stage
in 60 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
lisp/emacs-lisp/nadvice.el
lisp/emacs-lisp/nadvice.el
+7
-0
No files found.
lisp/emacs-lisp/nadvice.el
View file @
baaacd92
...
...
@@ -36,6 +36,11 @@
;;; Code:
;; The autoloads.el mechanism which adds package--builtin-versions
;; maintenance to loaddefs.el doesn't work for preloaded packages (such
;; as this one), so we have to do it by hand!
(
push
(
purecopy
'
(
nadvice
1
0
))
package--builtin-versions
)
;;;; Lightweight advice/hook
(
defvar
advice--where-alist
'
((
:around
"\300\301\302\003#\207"
5
)
...
...
@@ -241,6 +246,8 @@ different, but `function-equal' will hopefully ignore those differences.")
(
if
(
local-variable-p
var
)
(
symbol-value
var
)
(
setq
advice--buffer-local-function-sample
;; This function acts like the t special value in buffer-local hooks.
;; FIXME: Provide an `advice-bottom' function that's like
;; `advice-cd*r' but also follows through this proxy.
(
lambda
(
&rest
args
)
(
apply
(
default-value
var
)
args
)))))
(
eval-and-compile
...
...
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