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
007be42a
Commit
007be42a
authored
Jul 02, 1998
by
Richard M. Stallman
Browse files
(texinfo-anchor): New function.
parent
c69bfc14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
lisp/textmodes/texinfmt.el
lisp/textmodes/texinfmt.el
+16
-0
No files found.
lisp/textmodes/texinfmt.el
View file @
007be42a
...
...
@@ -1132,6 +1132,22 @@ Leave point after argument."
(
insert
?\n
)
(
setq
texinfo-last-node-pos
(
point
))))
(
put
'anchor
'texinfo-format
'texinfo-anchor
)
(
defun
texinfo-anchor
()
(
let
(
anchor-string
(
here
(
-
(
point
)
7
))
; save location of beginning of `@anchor'
(
arg
(
texinfo-parse-arg-discard
)))
(
delete-char
1
)
; since a space is left after -discard
(
forward-paragraph
)
(
let
((
end
(
point
)))
(
if
(
save-excursion
(
backward-word
1
)
(
search-forward
"@refill"
end
t
))
(
setq
anchor-string
"@anchor-yes-refill"
)
(
setq
anchor-string
"@anchor-no-refill"
)))
(
goto-char
here
)
(
insert
anchor-string
"{"
arg
"}"
)))
(
put
'menu
'texinfo-format
'texinfo-format-menu
)
(
defun
texinfo-format-menu
()
(
texinfo-discard-line
)
...
...
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