Commit a069f509 authored by Eli Zaretskii's avatar Eli Zaretskii

(Man-default-man-entry): Remove the leading `*' from the word at point.

parent 87209357
2003-09-28 Evgeni Dobrev <evgeni_dobrev@developer.bg> (tiny patch)
* man.el (Man-default-man-entry): Remove the leading `*' from the
word at point.
2003-09-26 Lute Kamstra <Lute.Kamstra@cwi.nl>
* bindings.el (mode-line-position): Mention size indication in
......
......@@ -572,6 +572,9 @@ This guess is based on the text surrounding the cursor."
(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 *strcat(... , remove the '*'
(if (string-match "^*" word)
(setq word (substring word 1)))
;; If looking at something like ioctl(2) or brc(1M), include the
;; section number in the returned value. Remove text properties.
(concat word
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment