*** filladapt.el.orig Mon Nov 22 02:28:49 1999 --- filladapt.el Mon Nov 22 03:30:29 1999 *************** *** 18,23 **** --- 18,28 ---- ;;; ;;; Send bug reports to kyle_jones@wonderworks.com + ;; This version has been patched to add the + ;; filladapt-token-match-empty feature. Patch made by Martin + ;; Stjernholm ; see + ;; for details. + ;; LCD Archive Entry: ;; filladapt|Kyle Jones|kyle_jones@wonderworks.com| ;; Minor mode to adaptively set fill-prefix and overload filling functions| *************** *** 324,329 **** --- 329,341 ---- (const spaces)))) :group 'filladapt) + (defcustom filladapt-token-match-empty '(beginning-of-line end-of-line) + "List of tokens that may match the empty string. + Normally a token is ignored if it matches the empty string. This list + contains the tokens that should be excluded from that rule." + :type '(repeat symbol) + :group 'filladapt) + (defvar filladapt-function-table (let ((assoc-list (list (cons 'fill-paragraph (symbol-function 'fill-paragraph)) *************** *** 665,671 **** (setq token-table filladapt-token-table done t) (while token-table ! (if (null (looking-at (car (car token-table)))) (setq token-table (cdr token-table)) (goto-char (match-end 0)) (setq token-list (cons (list (nth 1 (car token-table)) --- 677,686 ---- (setq token-table filladapt-token-table done t) (while token-table ! (if (or (null (looking-at (car (car token-table)))) ! (and (not (memq (car (cdr (car token-table))) ! filladapt-token-match-empty)) ! (eq (match-beginning 0) (match-end 0)))) (setq token-table (cdr token-table)) (goto-char (match-end 0)) (setq token-list (cons (list (nth 1 (car token-table))