comparison lisp/man.el @ 4334:b39cd3621215

* man.el (Man-find-section): HP/UX man pages have section names indented by a single space; recognize them.
author Jim Blandy <jimb@redhat.com>
date Thu, 29 Jul 1993 04:02:54 +0000
parents dfabe5b99500
children 09cb5e07f8a3
comparison
equal deleted inserted replaced
4333:c356a81e1a46 4334:b39cd3621215
653 (defun Man-find-section (section) 653 (defun Man-find-section (section)
654 "Move point to SECTION if it exists, otherwise don't move point. 654 "Move point to SECTION if it exists, otherwise don't move point.
655 Returns t if section is found, nil otherwise." 655 Returns t if section is found, nil otherwise."
656 (let ((curpos (point))) 656 (let ((curpos (point)))
657 (goto-char (point-min)) 657 (goto-char (point-min))
658 (if (re-search-forward (concat "^" section) (point-max) t) 658 (if (re-search-forward (concat "^\\s-?" section) (point-max) t)
659 (progn (beginning-of-line) t) 659 (progn (beginning-of-line) t)
660 (goto-char curpos) 660 (goto-char curpos)
661 nil) 661 nil)
662 )) 662 ))
663 663