 ;;   at searches and direct messagse
 ;; * refresh is broken on some pages, and needs to be handled better.
 ;; * split protocol from urls, so people can choose which way they want
-;;   to go.  (especially if htey don't have the right https cli utils)
+;;   to go.  (especially if they don't have the right https cli utils)
 ;; * titlebar shows up at the bottom once in awhile.
 
 ;; Please report bugs to the twit emacs wiki page at:



;;* helper write
(defun twit-insert-with-overlay-attributes (text attributes)
"Helper function to insert text into a buffer with an overlay.

Inserts TEXT into buffer, add an overlay and apply ATTRIBUTES to the overlay."
  (let ((start (point)))
    (insert text)
    (let ((overlay (make-overlay start (point))))
      (dolist (spec attributes)
			  (overlay-put overlay (car spec) (cdr spec))))))

;;* image var
(defvar twit-user-image-list 'nil

		(url-request-data (concat "source=twit.el"
								  "&user=" (url-hexify-string user)
								  "&text=" (url-hexify-string msg)))
		(url-request-headers twit-request-headers)
		(url-show-status nil))
	(if twit-debug (twit-alert url-request-data))
	(url-retrieve twit-direct-msg-send-url 'twit-handle-post (list twit-direct-success-msg twit-post-failed-msg))))

