aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Potortì1995-02-03 12:07:37 +0000
committerFrancesco Potortì1995-02-03 12:07:37 +0000
commitc448c1349f5d5f4de977420766f4febf4aadcbfa (patch)
treef6dad650c2a26518e085edcc985dfe9689b845f9
parent2b050fec1ec0c72d0e972337d40cee69aea36d42 (diff)
downloademacs-c448c1349f5d5f4de977420766f4febf4aadcbfa.tar.gz
emacs-c448c1349f5d5f4de977420766f4febf4aadcbfa.zip
* man.el (Man-default-man-entry): Remove text properties from result.
-rw-r--r--lisp/man.el20
1 files changed, 11 insertions, 9 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 719b12ee9d1..4f8c5655c09 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -3,8 +3,8 @@
3;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 1994 Free Software Foundation, Inc.
4 4
5;; Author: Barry A. Warsaw <bwarsaw@cen.com> 5;; Author: Barry A. Warsaw <bwarsaw@cen.com>
6;; Last-Modified: $Date: 1994/11/09 12:38:31 $ 6;; Last-Modified: $Date: 1994/11/22 04:37:43 $
7;; Version: $Revision: 1.59 $ 7;; Version: $Revision: 1.60 $
8;; Keywords: help 8;; Keywords: help
9;; Adapted-By: ESR, pot 9;; Adapted-By: ESR, pot
10 10
@@ -480,13 +480,15 @@ default section number is selected from `Man-auto-section-alist'."
480 (progn (skip-chars-forward "-a-zA-Z0-9_.") (point)))) 480 (progn (skip-chars-forward "-a-zA-Z0-9_.") (point))))
481 481
482 ;; If looking at something like ioctl(2) or brc(1M), include the 482 ;; If looking at something like ioctl(2) or brc(1M), include the
483 ;; section number in the returned value. 483 ;; section number in the returned value. Remove text properties.
484 (concat 484 (let ((result (concat
485 default-title 485 default-title
486 (if (looking-at 486 (if (looking-at
487 (concat "[ \t]*([ \t]*\\(" Man-section-regexp "\\)[ \t]*)")) 487 (concat "[ \t]*([ \t]*\\("
488 (format "(%s)" (Man-match-substring 1))) 488 Man-section-regexp "\\)[ \t]*)"))
489 )))) 489 (format "(%s)" (Man-match-substring 1))))))
490 (set-text-properties 0 (length result) nil result)
491 ))))
490 492
491 493
492;; ====================================================================== 494;; ======================================================================