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
d5ba8197
Commit
d5ba8197
authored
Dec 04, 2005
by
Juri Linkov
Browse files
(easy-mmode-define-navigation): Put `definition-name' properties on the
constructed function names next-sym and prev-sym.
parent
cc793355
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lisp/emacs-lisp/easy-mmode.el
lisp/emacs-lisp/easy-mmode.el
+3
-1
No files found.
lisp/emacs-lisp/easy-mmode.el
View file @
d5ba8197
...
...
@@ -515,6 +515,7 @@ found, do widen first and then call NARROWFUN with no args after moving."
(
unless
(
pos-visible-in-window-p
endpt
nil
t
)
(
recenter
'
(
0
))))))
,
re-narrow-maybe
)))
(
put
',next-sym
'definition-name
',base
)
(
defun
,
prev-sym
(
&optional
count
)
,
(
format
"Go to the previous COUNT'th %s"
(
or
name
base-name
))
(
interactive
)
...
...
@@ -524,7 +525,8 @@ found, do widen first and then call NARROWFUN with no args after moving."
,
check-narrow-maybe
(
unless
(
re-search-backward
,
re
nil
t
count
)
(
error
"No previous %s"
,
name
))
,
re-narrow-maybe
))))))
,
re-narrow-maybe
)))
(
put
',prev-sym
'definition-name
',base
))))
(
provide
'easy-mmode
)
...
...
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