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
6c5acd7f
Commit
6c5acd7f
authored
Aug 24, 2003
by
John Paul Wallington
Browse files
(Man-default-man-entry): Strip text properties when
snarfing parts of entry because `format' preserves properties.
parent
fa1d74c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
lisp/man.el
lisp/man.el
+3
-6
No files found.
lisp/man.el
View file @
6c5acd7f
...
...
@@ -569,19 +569,16 @@ This guess is based on the text surrounding the cursor."
(
skip-chars-backward
"-a-zA-Z0-9._+:"
)
(
let
((
start
(
point
)))
(
skip-chars-forward
"-a-zA-Z0-9._+:"
)
(
setq
word
(
buffer-substring
start
(
point
))))
(
setq
word
(
buffer-substring
-no-properties
start
(
point
))))
(
if
(
string-match
"[._]+$"
word
)
(
setq
word
(
substring
word
0
(
match-beginning
0
))))
;; If looking at something like ioctl(2) or brc(1M), include the
;; section number in the returned value. Remove text properties.
(
forward-word
1
)
;; Use `format' here to clear any text props from `word'.
(
format
"%s%s"
word
(
concat
word
(
if
(
looking-at
(
concat
"[ \t]*([ \t]*\\("
Man-section-regexp
"\\)[ \t]*)"
))
(
format
"(%s)"
(
match-string
1
))
""
)))))
(
format
"(%s)"
(
match-string-no-properties
1
)))))))
;; ======================================================================
...
...
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