]> code.delx.au - gnu-emacs/commitdiff
(help-make-xrefs): Handle more cases when looking for
authorAndreas Schwab <schwab@suse.de>
Mon, 10 May 1999 12:49:39 +0000 (12:49 +0000)
committerAndreas Schwab <schwab@suse.de>
Mon, 10 May 1999 12:49:39 +0000 (12:49 +0000)
commands in a keymap description.

lisp/help.el

index cf7a62a3437473ade11abf0cf8f1985d2c5ff63b..1d6a3426b88b7ffa4aae1916a0bc0448c32d1c4f 100644 (file)
@@ -1034,20 +1034,19 @@ that."
                     (while
                         ;; Ignore single blank lines in table, but not
                         ;; double ones, which should terminate it.
-                        (and (looking-at "^\n?[^\n\t ]")
+                        (and (not (looking-at "\n\n"))
                              (progn
-                               (if (and (> (move-to-column col) 0)
-                                        (looking-at "\\(\\sw\\|-\\)+$"))
+                              (and (eolp) (forward-line))
+                              (end-of-line)
+                              (skip-chars-backward "^\t\n")
+                               (if (and (>= (current-column) col)
+                                        +(looking-at "\\(\\sw\\|-\\)+$"))
                                    ;; 
                                    (let ((sym (intern-soft (match-string 0))))
                                      (if (fboundp sym)
                                          (help-xref-button 
                                           0 #'describe-function sym))))
-                               t)
-                             (progn
-                              (end-of-line)
-                              (zerop (forward-line)))
-                             (move-to-column 0)))))))
+                              (zerop (forward-line)))))))))
           (set-syntax-table stab))
         ;; Make a back-reference in this buffer if appropriate.
         (when help-xref-stack