aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2017-08-18 11:47:29 +0300
committerEli Zaretskii2017-08-18 11:47:29 +0300
commit99b3250d04288260e3a6db864cda910d8093bee1 (patch)
tree80eef2552f4ff996bcb1a5647f1fc8f8a592823a
parenta1ed97e5108450853fb983d96e4b14c26393231b (diff)
downloademacs-99b3250d04288260e3a6db864cda910d8093bee1.tar.gz
emacs-99b3250d04288260e3a6db864cda910d8093bee1.zip
Non-ASCII support for man page section and header names
* lisp/man.el (Man-name-regexp, Man-page-header-regexp) (Man-heading-regexp): Replace ASCII character classes by equivalent classes that allow non-ASCII characters. Suggested by Grégory Mounié <Gregory.Mounie@imag.fr>. (Bug#27978)
-rw-r--r--lisp/man.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/man.el b/lisp/man.el
index 0e1c92956b3..13efc21b03d 100644
--- a/lisp/man.el
+++ b/lisp/man.el
@@ -278,7 +278,7 @@ Used in `bookmark-set' to get the default bookmark name."
278 :type 'hook 278 :type 'hook
279 :group 'man) 279 :group 'man)
280 280
281(defvar Man-name-regexp "[-a-zA-Z0-9_­+][-a-zA-Z0-9_.:­+]*" 281(defvar Man-name-regexp "[-[:alnum:]_­+][-[:alnum:]_.:­+]*"
282 "Regular expression describing the name of a manpage (without section).") 282 "Regular expression describing the name of a manpage (without section).")
283 283
284(defvar Man-section-regexp "[0-9][a-zA-Z0-9+]*\\|[LNln]" 284(defvar Man-section-regexp "[0-9][a-zA-Z0-9+]*\\|[LNln]"
@@ -286,13 +286,13 @@ Used in `bookmark-set' to get the default bookmark name."
286 286
287(defvar Man-page-header-regexp 287(defvar Man-page-header-regexp
288 (if (string-match "-solaris2\\." system-configuration) 288 (if (string-match "-solaris2\\." system-configuration)
289 (concat "^[-A-Za-z0-9_].*[ \t]\\(" Man-name-regexp 289 (concat "^[-[:alnum:]_].*[ \t]\\(" Man-name-regexp
290 "(\\(" Man-section-regexp "\\))\\)$") 290 "(\\(" Man-section-regexp "\\))\\)$")
291 (concat "^[ \t]*\\(" Man-name-regexp 291 (concat "^[ \t]*\\(" Man-name-regexp
292 "(\\(" Man-section-regexp "\\))\\).*\\1")) 292 "(\\(" Man-section-regexp "\\))\\).*\\1"))
293 "Regular expression describing the heading of a page.") 293 "Regular expression describing the heading of a page.")
294 294
295(defvar Man-heading-regexp "^\\([A-Z][A-Z0-9 /-]+\\)$" 295(defvar Man-heading-regexp "^\\([[:upper:]][[:upper:]0-9 /-]+\\)$"
296 "Regular expression describing a manpage heading entry.") 296 "Regular expression describing a manpage heading entry.")
297 297
298(defvar Man-see-also-regexp "SEE ALSO" 298(defvar Man-see-also-regexp "SEE ALSO"