diff options
| author | Dave Love | 1999-08-07 11:45:06 +0000 |
|---|---|---|
| committer | Dave Love | 1999-08-07 11:45:06 +0000 |
| commit | 9f79084ca21a822b0c43aba7b4b478587ec0806c (patch) | |
| tree | 822198a46055738008bafd73e633c67e2e85ccef | |
| parent | 85960a7cdad09f13ed28d25ac30a6b8e577f54ca (diff) | |
| download | emacs-9f79084ca21a822b0c43aba7b4b478587ec0806c.tar.gz emacs-9f79084ca21a822b0c43aba7b4b478587ec0806c.zip | |
(Man-softhyphen-to-minus): Revert previous change. Avoid unibyte to
multibyte conversion of search-forward (from Handa), but avoid the
replacement if the language is Latin-N.
| -rw-r--r-- | lisp/man.el | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/lisp/man.el b/lisp/man.el index 27860b5c0a2..4befb416149 100644 --- a/lisp/man.el +++ b/lisp/man.el | |||
| @@ -660,13 +660,15 @@ See the variable `Man-notify-method' for the different notification behaviors." | |||
| 660 | ))) | 660 | ))) |
| 661 | 661 | ||
| 662 | (defun Man-softhyphen-to-minus () | 662 | (defun Man-softhyphen-to-minus () |
| 663 | ;; \255 is some kind of dash in Latin-1. | 663 | ;; \255 is some kind of dash in Latin-N. Versions of Debian man, at |
| 664 | (goto-char (point-min)) | 664 | ;; least, emit it even when not in a Latin-N locale. |
| 665 | (if enable-multibyte-characters | 665 | (unless (eq t (compare-strings "latin-" 0 nil |
| 666 | (while (search-forward "\255" nil t) | 666 | current-language-environment 0 6 t)) |
| 667 | (if (= (preceding-char) ?\255) | 667 | (goto-char (point-min)) |
| 668 | (replace-match "-"))) | 668 | (let ((str "\255")) |
| 669 | (while (search-forward "\255" nil t) (replace-match "-")))) | 669 | (if enable-multibyte-characters |
| 670 | (setq str (string-as-multibyte str))) | ||
| 671 | (while (search-forward str nil t) (replace-match "-"))))) | ||
| 670 | 672 | ||
| 671 | (defun Man-fontify-manpage () | 673 | (defun Man-fontify-manpage () |
| 672 | "Convert overstriking and underlining to the correct fonts. | 674 | "Convert overstriking and underlining to the correct fonts. |