# HG changeset patch # User Juanma Barranquero # Date 1144313064 0 # Node ID a77e27984bb12fe3129b28855d88958015bde617 # Parent 3bc8ba8f08a1ee41271ddc1aec00ed80fad5fd35 (WoMan-xref-man-page): Fix call to `substring'. diff -r 3bc8ba8f08a1 -r a77e27984bb1 lisp/woman.el --- a/lisp/woman.el Thu Apr 06 02:56:05 2006 +0000 +++ b/lisp/woman.el Thu Apr 06 08:44:24 2006 +0000 @@ -381,7 +381,7 @@ ;; code fragments, general interest, etc.: ;; Jari Aalto ;; Dean Andrews -;; Juanma Barranquero +;; Juanma Barranquero ;; Karl Berry ;; Jim Chapman ;; Kin Cho @@ -426,14 +426,14 @@ (require 'man) (require 'button) -(define-button-type 'WoMan-xref-man-page +(define-button-type 'WoMan-xref-man-page :supertype 'Man-abstract-xref-man-page 'func (lambda (arg) (woman ;; `woman' cannot deal with arguments that contain a ;; section name, like close(2), so strip the section name. (if (string-match Man-reference-regexp arg) - (subqstring arg 0 (match-end 1)) + (substring arg 0 (match-end 1)) arg)))) (eval-when-compile ; to avoid compiler warnings