Changeset 138 for lang/elisp
- Timestamp:
- 06/18/09 14:19:32 (15 years ago)
- Location:
- lang/elisp/twittering-mode/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/elisp/twittering-mode/trunk/ChangeLog
r137 r138 1 2009-06-18 Tsuyoshi CHO <Tsuyoshi.CHO+develop@Gmail.com> 2 3 * twittering-mode.el (twittering-sign-simple-string) 4 (twittering-sign-string-default-function) 5 (twittering-sign-string-function, twittering-sign-string): Add 6 new. 7 (twittering-update-status-if-not-blank): Fix params, support sign. 8 1 9 2009-06-18 Tsuyoshi CHO <Tsuyoshi.CHO+develop@Gmail.com> 2 10 -
lang/elisp/twittering-mode/trunk/twittering-mode.el
r137 r138 6 6 ;; Author: Y. Hayamizu <y.hayamizu@gmail.com> 7 7 ;; Tsuyoshi CHO <Tsuyoshi.CHO+develop@Gmail.com> 8 ;; Alberto Garcia <agarcia@igalia.com> 8 9 ;; Created: Sep 4, 2007 9 10 ;; Version: 0.4 10 11 ;; Keywords: twitter web 11 12 ;; URL: http://lambdarepos.svnrepository.com/share/trac.cgi/browser/lang/elisp/twittering-mode 12 13 ;; Modified by Alberto Garcia <agarcia@igalia.com> to add the following methods:14 ;; twittering-replies-timeline15 ;; twittering-public-timeline16 ;; twittering-user-timeline17 ;; twittering-current-timeline(-(non)interractive)18 ;; twittering-other-user-timeline19 ;; twittering-other-user-timeline-interactive20 13 21 14 ;; This file is free software; you can redistribute it and/or modify … … 54 47 (require 'parse-time) 55 48 56 (defconst twittering-mode-version "0. 7")49 (defconst twittering-mode-version "0.8") 57 50 58 51 (defun twittering-mode-version () … … 170 163 twittering-mode-version)) 171 164 165 (defvar twittering-sign-simple-string nil) 166 167 (defun twittering-sign-string-default-function () 168 "Tweet append sign string:simple " 169 (if twittering-sign-simple-string 170 (concat " [" twittering-sign-simple-string "]") 171 "")) 172 172 173 (defvar twittering-user-agent-function 'twittering-user-agent-default-function) 174 (defvar twittering-sign-string-function 'twittering-sign-string-default-function) 173 175 174 176 (defun twittering-user-agent () 175 177 "Return User-Agent header string." 176 178 (funcall twittering-user-agent-function)) 179 180 (defun twittering-sign-string () 181 "Return Tweet sign string." 182 (funcall twittering-sign-string-function)) 177 183 178 184 ;;; to show image files … … 943 949 (if (string-match "^\\s-*\\(?:@[-_a-z0-9]+\\)?\\s-*$" status) 944 950 nil 945 (let ((parameters (append `(("status" . ,status) 946 ("source" . "twmode")) 947 (if reply-to-id 948 `(("in_reply_to_status_id" 949 . ,reply-to-id)))))) 951 (setq status (concat status (twittering-sign-string))) 952 (let ((parameters `(("status" . ,status) 953 ("source" . "twmode") 954 ,@(if reply-to-id 955 `(("in_reply_to_status_id" 956 . ,reply-to-id)))))) 950 957 (twittering-http-post "statuses" "update" parameters)) 951 958 t))