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
3a6ade8a
Commit
3a6ade8a
authored
Mar 14, 1994
by
Karl Heuer
Browse files
(Info-insert-dir): Use printable escapes instead of embedding literal control
chars in the source.
parent
e357be4c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
lisp/info.el
lisp/info.el
+6
-6
No files found.
lisp/info.el
View file @
3a6ade8a
...
...
@@ -391,10 +391,10 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
(
let
(
beg
nodename
end
)
(
forward-line
1
)
(
setq
beg
(
point
))
(
search-backward
"\n
"
)
(
search-backward
"\n
\^_
"
)
(
search-forward
"Node: "
)
(
setq
nodename
(
Info-following-node-name
))
(
search-forward
"\n
"
nil
'move
)
(
search-forward
"\n
\^_
"
nil
'move
)
(
beginning-of-line
)
(
setq
end
(
point
))
(
setq
nodes
(
cons
(
list
nodename
other
beg
end
)
nodes
))))))
...
...
@@ -405,7 +405,7 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
(
let
((
menu-items
'
(
"top"
))
(
nodes
nodes
)
(
case-fold-search
t
)
(
end
(
save-excursion
(
search-forward
"
"
nil
t
)
(
point
))))
(
end
(
save-excursion
(
search-forward
"
\^_
"
nil
t
)
(
point
))))
(
while
nodes
(
let
((
nodename
(
car
(
car
nodes
))))
(
or
(
member
(
downcase
nodename
)
menu-items
)
...
...
@@ -421,16 +421,16 @@ In standalone mode, \\<Info-mode-map>\\[Info-exit] exits Emacs itself."
(
let
((
nodename
(
car
(
car
nodes
))))
(
goto-char
(
point-min
))
;; Find the like-named node in the main buffer.
(
if
(
re-search-forward
(
concat
"\n
.*\n.*Node: "
(
if
(
re-search-forward
(
concat
"\n
\^_
.*\n.*Node: "
(
regexp-quote
nodename
)
"[,\n\t]"
)
nil
t
)
(
progn
(
search-forward
"\n
"
nil
'move
)
(
search-forward
"\n
\^_
"
nil
'move
)
(
beginning-of-line
))
;; If none exists, add one.
(
goto-char
(
point-max
))
(
insert
"
\nFile: dir\tnode: "
nodename
"\n\n* Menu:\n\n"
))
(
insert
"
\^_
\nFile: dir\tnode: "
nodename
"\n\n* Menu:\n\n"
))
;; Merge the text from the other buffer's menu
;; into the menu in the like-named node in the main buffer.
(
apply
'insert-buffer-substring
(
cdr
(
car
nodes
)))
...
...
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