Commit 5590a224 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(reposition-window): Fix whitespace-skipping regexp.

(reposition-window): Don't err if comment-height = 0.

Don't repeat at load time any bindings that are autoloaded.
parent 9b9f9c9d
......@@ -73,8 +73,8 @@ first comment line visible (if point is in a comment)."
(if (not (eobp)) (forward-char 1))
(end-of-defun -1)
;; Skip whitespace, newlines, and form feeds.
(re-search-forward "[^\\s \n\014]")
(backward-char 1)
(if (re-search-forward "[^ \t\n\f]" nil t)
(backward-char 1))
(point))
here)))
(defun-height
......@@ -169,8 +169,7 @@ first comment line visible (if point is in a comment)."
;;(repos-debug-macro "4")
))))
;;;###autoload
(define-key esc-map "\C-l" 'reposition-window)
;;;###autoload (define-key esc-map "\C-l" 'reposition-window)
;;; Auxiliary functions
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment