[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/help-mode.el [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/help-mode.el [lexbind] |
Date: |
Tue, 14 Oct 2003 19:51:59 -0400 |
Index: emacs/lisp/help-mode.el
diff -c emacs/lisp/help-mode.el:1.11.4.1 emacs/lisp/help-mode.el:1.11.4.2
*** emacs/lisp/help-mode.el:1.11.4.1 Fri Apr 4 01:20:06 2003
--- emacs/lisp/help-mode.el Tue Oct 14 19:51:05 2003
***************
*** 386,409 ****
(goto-char (point-min))
;; Find a header and the column at which the command
;; name will be found.
(while (re-search-forward "^key +binding\n\\(-+ +\\)-+\n\n"
nil t)
(let ((col (- (match-end 1) (match-beginning 1))))
(while
! ;; Ignore single blank lines in table, but not
! ;; double ones, which should terminate it.
! (and (not (looking-at "\n\\s-*\n"))
! (progn
! (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 'help-function
sym))))
! (zerop (forward-line)))))))))
! (set-syntax-table stab))
;; Delete extraneous newlines at the end of the docstring
(goto-char (point-max))
(while (and (not (bobp)) (bolp))
--- 386,413 ----
(goto-char (point-min))
;; Find a header and the column at which the command
;; name will be found.
+
+ ;; If the keymap substitution isn't the last thing in
+ ;; the doc string, and if there is anything on the
+ ;; same line after it, this code won't recognize the end of it.
(while (re-search-forward "^key +binding\n\\(-+ +\\)-+\n\n"
nil t)
(let ((col (- (match-end 1) (match-beginning 1))))
(while
! (and (not (eobp))
! ;; Stop at a pair of blank lines.
! (not (looking-at "\n\\s-*\n")))
! ;; Skip a single blank line.
! (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 'help-function sym))))
! (forward-line))))))
! (set-syntax-table stab))
;; Delete extraneous newlines at the end of the docstring
(goto-char (point-max))
(while (and (not (bobp)) (bolp))
***************
*** 588,591 ****
--- 592,596 ----
(provide 'help-mode)
+ ;;; arch-tag: 850954ae-3725-4cb4-8e91-0bf6d52d6b0b
;;; help-mode.el ends here
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/lisp/help-mode.el [lexbind],
Miles Bader <=