+2000-08-16 Miles Bader <miles@gnu.org>
+
+ * progmodes/sql.el: Add compatibility definition onf
+ comint-line-beginning-position.
+
2000-08-15 Gerd Moellmann <gerd@gnu.org>
* buff-menu.el (list-buffers-noselect): Set `buffer' as well as
used for the default `font-lock-defaults' value in `sql-mode'. This
can be changed by some entry functions to provide more hilighting.")
+\f
+;;; Compatibility functions
+
+(if (not (fboundp 'comint-line-beginning-position))
+ ;; comint-line-beginning-position is defined in Emacs 21
+ (defun comint-line-beginning-position ()
+ "Returns the buffer position of the beginning of the line, after any prompt.
+The prompt is assumed to be any text at the beginning of the line matching
+the regular expression `comint-prompt-regexp', a buffer local variable."
+ (save-excursion (comint-bol nil) (point))))
+
\f
;;; Small functions