aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuanma Barranquero2006-04-06 08:44:24 +0000
committerJuanma Barranquero2006-04-06 08:44:24 +0000
commit2b54c197fecaa595087af22336f8b48384400913 (patch)
tree77f4a534e1e798611cd2e458fc9f20292f9a59cb /lisp
parentf634ee8e35475bf3c60610130bce17fa333cac7f (diff)
downloademacs-2b54c197fecaa595087af22336f8b48384400913.tar.gz
emacs-2b54c197fecaa595087af22336f8b48384400913.zip
(WoMan-xref-man-page): Fix call to `substring'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/woman.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/woman.el b/lisp/woman.el
index 1aa5ce25716..2392d0bfa4c 100644
--- a/lisp/woman.el
+++ b/lisp/woman.el
@@ -381,7 +381,7 @@
381;; code fragments, general interest, etc.: 381;; code fragments, general interest, etc.:
382;; Jari Aalto <jari.aalto@cs.tpu.fi> 382;; Jari Aalto <jari.aalto@cs.tpu.fi>
383;; Dean Andrews <dean@dra.com> 383;; Dean Andrews <dean@dra.com>
384;; Juanma Barranquero <barranquero@laley-actualidad.es> 384;; Juanma Barranquero <lekktu@gmail.com>
385;; Karl Berry <kb@cs.umb.edu> 385;; Karl Berry <kb@cs.umb.edu>
386;; Jim Chapman <jchapman@netcomuk.co.uk> 386;; Jim Chapman <jchapman@netcomuk.co.uk>
387;; Kin Cho <kin@neoscale.com> 387;; Kin Cho <kin@neoscale.com>
@@ -426,14 +426,14 @@
426 426
427(require 'man) 427(require 'man)
428(require 'button) 428(require 'button)
429(define-button-type 'WoMan-xref-man-page 429(define-button-type 'WoMan-xref-man-page
430 :supertype 'Man-abstract-xref-man-page 430 :supertype 'Man-abstract-xref-man-page
431 'func (lambda (arg) 431 'func (lambda (arg)
432 (woman 432 (woman
433 ;; `woman' cannot deal with arguments that contain a 433 ;; `woman' cannot deal with arguments that contain a
434 ;; section name, like close(2), so strip the section name. 434 ;; section name, like close(2), so strip the section name.
435 (if (string-match Man-reference-regexp arg) 435 (if (string-match Man-reference-regexp arg)
436 (subqstring arg 0 (match-end 1)) 436 (substring arg 0 (match-end 1))
437 arg)))) 437 arg))))
438 438
439(eval-when-compile ; to avoid compiler warnings 439(eval-when-compile ; to avoid compiler warnings