Mercurial > emacs
diff lisp/man.el @ 52324:c97fe9557de4
(Man-default-man-entry): Strip text properties when
snarfing parts of entry because `format' preserves properties.
author | John Paul Wallington <jpw@pobox.com> |
---|---|
date | Sun, 24 Aug 2003 18:08:01 +0000 |
parents | 3146f91c8c99 |
children | 40544f522d02 |
line wrap: on
line diff
--- a/lisp/man.el Sun Aug 24 15:26:13 2003 +0000 +++ b/lisp/man.el Sun Aug 24 18:08:01 2003 +0000 @@ -569,19 +569,16 @@ (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))))))) ;; ======================================================================