point-at-eol.
(ecomplete-highlight-match-line): Use `highlight', because that
face exists in both Emacs and XEmacs.
* message.el (message-display-abbrev): Use point-at-bol.
2006-04-30 Lars Magne Ingebrigtsen <larsi@gnus.org>
+ * ecomplete.el (ecomplete-highlight-match-line): Use
+ point-at-eol.
+ (ecomplete-highlight-match-line): Use `highlight', because that
+ face exists in both Emacs and XEmacs.
+
+ * message.el (message-display-abbrev): Use point-at-bol.
+
* mail-source.el: Don't require timer/timer-funcs.
* gnus-async.el: Ditto.
(goto-char (point-min))
(forward-line line)
(save-restriction
- (narrow-to-region (point) (line-end-position))
+ (narrow-to-region (point) (point-at-eol))
(while (not (eobp))
;; Put the 'region face on any charactes on this line that
;; aren't already highlighted.
(unless (get-text-property (point) 'face)
- (put-text-property (point) (1+ (point)) 'face 'region))
+ (put-text-property (point) (1+ (point)) 'face 'highlight))
(forward-char 1)))
(buffer-string)))
(defun message-display-abbrev (&optional choose)
"Display the next possible abbrev for the text before point."
(interactive (list t))
- (when (and (member (char-after (line-beginning-position)) '(?C ?T ? ))
+ (when (and (member (char-after (point-at-bol)) '(?C ?T ? ))
(message-point-in-header-p)
(save-excursion
(save-restriction