Mercurial > emacs
comparison lisp/man.el @ 4203:b42338a458a5
(Man-set-fonts): Don't look for another char after
the backspace; instead look for a sequence CHAR BS CHAR BS CHAR BS...
Delete all the CHAR BS pairs found, after making the text property.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 21 Jul 1993 09:05:18 +0000 |
parents | 3e4fa4423f5a |
children | dfabe5b99500 |
comparison
equal
deleted
inserted
replaced
4202:4d0dd361b49a | 4203:b42338a458a5 |
---|---|
458 (message "")) | 458 (message "")) |
459 )) | 459 )) |
460 | 460 |
461 (defun Man-set-fonts () | 461 (defun Man-set-fonts () |
462 (goto-char (point-min)) | 462 (goto-char (point-min)) |
463 (while (re-search-forward "\\(.\b.\\)+" nil t) | 463 (while (re-search-forward "\\(.\b\\)+" nil t) |
464 (let ((st (match-beginning 0)) (en (match-end 0))) | 464 (let ((st (match-beginning 0)) (en (match-end 0))) |
465 (goto-char st) | 465 (goto-char st) |
466 (if window-system | 466 (if window-system |
467 (put-text-property st en 'face | 467 (put-text-property st (if (= en (point-max)) en (1+ en)) 'face |
468 (if (looking-at "_") 'underline 'bold))) | 468 (if (looking-at "_") 'underline 'bold))) |
469 (while (and (< (point) en) (looking-at ".\b")) | 469 (while (and (< (point) en) (looking-at ".\b")) |
470 (replace-match "") (forward-char 1))))) | 470 (replace-match ""))))) |
471 | 471 |
472 (defun Man-bgproc-sentinel (process msg) | 472 (defun Man-bgproc-sentinel (process msg) |
473 "Manpage background process sentinel." | 473 "Manpage background process sentinel." |
474 (let ((Man-buffer (process-buffer process)) | 474 (let ((Man-buffer (process-buffer process)) |
475 (delete-buff nil) | 475 (delete-buff nil) |