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
f58790da
Commit
f58790da
authored
Feb 26, 1999
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(help-xref-info-regexp): Allow linebreaks and capital.
(help-make-xrefs): Do Info case first.
parent
6c8719f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
lisp/help.el
lisp/help.el
+9
-9
No files found.
lisp/help.el
View file @
f58790da
...
...
@@ -938,7 +938,7 @@ The words preceding the quoted symbol can be used in doc strings to
distinguish references to variables, functions and symbols."
)
(
defvar
help-xref-info-regexp
"\\<
info\\s-+node\\s-
`\\([^']+\\)'"
"\\<
[Ii]nfo[ \t\n]+node[ \t\n]+
`\\([^']+\\)'"
"Regexp matching doc string references to an Info node."
)
(
defun
help-setup-xref
(
item
interactive-p
)
...
...
@@ -980,6 +980,14 @@ that."
;; The following should probably be abstracted out.
(
unwind-protect
(
progn
;; Info references
(
save-excursion
(
while
(
re-search-forward
help-xref-info-regexp
nil
t
)
(
let
((
data
(
match-string
1
)))
(
save-match-data
(
unless
(
string-match
"^([^)]+)"
data
)
(
setq
data
(
concat
"(emacs)"
data
))))
(
help-xref-button
1
#'
info
data
))))
;; Quoted symbols
(
save-excursion
(
while
(
re-search-forward
help-xref-symbol-regexp
nil
t
)
...
...
@@ -1003,14 +1011,6 @@ that."
(
help-xref-button
6
#'
describe-variable
sym
))
((
fboundp
sym
)
(
help-xref-button
6
#'
describe-function
sym
)))))))
;; Info references
(
save-excursion
(
while
(
re-search-forward
help-xref-info-regexp
nil
t
)
(
let
((
data
(
match-string
1
)))
(
save-match-data
(
unless
(
string-match
"^([^)]+)"
data
)
(
setq
data
(
concat
"(emacs)"
data
))))
(
help-xref-button
1
#'
info
data
))))
;; An obvious case of a key substitution:
(
save-excursion
(
while
(
re-search-forward
...
...
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