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
f3189b6d
Commit
f3189b6d
authored
Jun 29, 2019
by
Phil Sainty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup! Add so-long library
Use internal function naming for advice.
parent
1519d01c
Pipeline
#2217
failed with stage
in 90 minutes and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/so-long.el
lisp/so-long.el
+3
-3
No files found.
lisp/so-long.el
View file @
f3189b6d
...
...
@@ -1214,9 +1214,9 @@ Use \\[so-long-customize] to configure the behaviour."
(
or
(
so-long-original
'major-mode
)
"<unknown>"
)
(
substitute-command-keys
"\\[so-long-revert]"
))))
(
defun
so-long-change-major-mode
()
(
defun
so-long-
-
change-major-mode
()
;; Advice, enabled with:
;; (advice-add 'so-long-mode :before #'so-long-change-major-mode)
;; (advice-add 'so-long-mode :before #'so-long-
-
change-major-mode)
;;
;; n.b. `major-mode-suspend' and `major-mode-restore' are new in Emacs 27, and
;; related to what we're doing here; but it's not worth going to the effort of
...
...
@@ -1233,7 +1233,7 @@ This advice acts before `so-long-mode', with the previous mode still active."
;; Remember the original major mode, regardless.
(
so-long-remember
'major-mode
)))
(
advice-add
'so-long-mode
:before
#'
so-long-change-major-mode
)
(
advice-add
'so-long-mode
:before
#'
so-long-
-
change-major-mode
)
(
defun
so-long-after-change-major-mode
()
"Run by `so-long-mode' in `after-change-major-mode-hook'.
...
...
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