aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2003-06-01 17:09:32 +0000
committerAndreas Schwab2003-06-01 17:09:32 +0000
commit665a7c3b517835ffd5b123bf85ceaa6201ebc8ca (patch)
treec2a9897b20a0e69a9015431402681cd2e96a7f94
parent30f95ef531c9acaeda37e4d09a1332688aa98e12 (diff)
downloademacs-665a7c3b517835ffd5b123bf85ceaa6201ebc8ca.tar.gz
emacs-665a7c3b517835ffd5b123bf85ceaa6201ebc8ca.zip
(Man-name-regexp): Also match Latin-1 soft hyphen.
(Man-build-references-alist): Handle Latin-1 soft hyphen.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/man.el8
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4eeb925a4df..85c477489a9 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12003-06-01 Andreas Schwab <schwab@suse.de>
2
3 * man.el (Man-name-regexp): Also match Latin-1 soft hyphen.
4 (Man-build-references-alist): Handle Latin-1 soft hyphen.
5
12003-05-31 Stephen Eglen <stephen@gnu.org> 62003-05-31 Stephen Eglen <stephen@gnu.org>
2 7
3 * iswitchb.el (iswitchb-buffer-ignore): Update custom type to 8 * iswitchb.el (iswitchb-buffer-ignore): Update custom type to
diff --git a/lisp/man.el b/lisp/man.el
index 0c26ca4deb8..e7622f13200 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -1,6 +1,6 @@
1;;; man.el --- browse UNIX manual pages 1;;; man.el --- browse UNIX manual pages -*- coding: iso-8859-1 -*-
2 2
3;; Copyright (C) 1993, 1994, 1996, 1997, 2001 Free Software Foundation, Inc. 3;; Copyright (C) 1993, 1994, 1996, 1997, 2001, 2003 Free Software Foundation, Inc.
4 4
5;; Author: Barry A. Warsaw <bwarsaw@cen.com> 5;; Author: Barry A. Warsaw <bwarsaw@cen.com>
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -241,7 +241,7 @@ the associated section number."
241(defvar Man-cooked-hook nil 241(defvar Man-cooked-hook nil
242 "Hook run after removing backspaces but before `Man-mode' processing.") 242 "Hook run after removing backspaces but before `Man-mode' processing.")
243 243
244(defvar Man-name-regexp "[-a-zA-Z0-9_][-a-zA-Z0-9_.]*" 244(defvar Man-name-regexp "[-a-zA-Z0-9_­][-a-zA-Z0-9_.­]*"
245 "Regular expression describing the name of a manpage (without section).") 245 "Regular expression describing the name of a manpage (without section).")
246 246
247(defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]" 247(defvar Man-section-regexp "[0-9][a-zA-Z+]*\\|[LNln]"
@@ -999,7 +999,7 @@ The following key bindings are currently in effect in the buffer:
999 ;; Update len, in case a reference spans 999 ;; Update len, in case a reference spans
1000 ;; more than two lines (paranoia). 1000 ;; more than two lines (paranoia).
1001 len (1- (length word)))) 1001 len (1- (length word))))
1002 (if (= (aref word len) ?-) 1002 (if (memq (aref word len) '(?-))
1003 (setq hyphenated (substring word 0 len))) 1003 (setq hyphenated (substring word 0 len)))
1004 (if (string-match Man-reference-regexp word) 1004 (if (string-match Man-reference-regexp word)
1005 (aput 'Man-refpages-alist word)))) 1005 (aput 'Man-refpages-alist word))))