/
ChangeLog
2422 lines (1865 loc) · 98.9 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2010-03-18 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-other-user-list-interactive):
Revert part of 2010-03-12 change to prevent an overwrite of a
message which is outputted by `twittering-read-list-name'.
2010-03-17 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-generate-status-formater-base):
fix the formater for "%FACE[...]{...}".
2010-03-12 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-get-default-sentinel):
Revert part of 2010-03-06 change because the scheduled removing of
public_timeline from twitter API had been canceled on 2010-03-11.
* twittering-mode.el (twittering-other-user-list-interactive): Fix
condition to detect a null string.
(twittering-other-user-timeline-interactive): Likewise.
(twittering-extract-timeline-spec): Modify the condition for
detecting a null string same as others.
(twittering-get-replied-statuses): Likewise.
(twittering-generate-status-formater-base): Likewise.
(twittering-search): Likewise.
(twittering-follow): Likewise.
(twittering-direct-message): Add the condition for `username' is
nil.
(twittering-reply-to-user): Likewise.
(twittering-other-user-list-interactive): Likewise for
`list-name'.
2010-03-11 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-update-status-format): kill
newly generated `*Compile-Log*' buffer if it is empty.
* twittering-mode.el (twittering-mode-init-variables): initialize
account information explicitly.
(twittering-get-username): simplified.
(twittering-get-password): simplified.
2010-03-11 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-render-timeline): Call
`twittering-show-replied-statuses' if necessary.
(twittering-show-replied-tweets): New defvar.
(twittering-get-replied-statuses): Add optional argument `count'.
(twittering-show-replied-statuses): Likewise.
(twittering-have-replied-statuses-p): New defun.
(twittering-show-replied-statuses): Add optional argument
`interactive'.
(twittering-hide-replied-statuses): Likewise.
(twittering-toggle-show-replied-statuses): Adjust callers.
(twittering-show-replied-statuses): Show a reason to do nothing.
(twittering-hide-replied-statuses): Likewise.
* twittering-mode.el (twittering-get-replied-statuses): Fix
condition because `replied-id' always non-nil.
(twittering-hide-replied-statuses): Fix condition to avoid an
infinite loop.
* twittering-mode.el (twittering-hide-replied-statuses): Go to the
head of parent status before hiding replied statuses.
* twittering-mode.el (twittering-default-show-replied-tweets): New
defvar.
(twittering-render-timeline): Use it instead of
`twittering-show-replied-tweets'.
(twittering-toggle-show-replied-statuses): Pass
`twittering-show-replied-tweets' into
`twittering-show-replied-statuses'.
(twittering-show-replied-tweets): Add a docstring.
2010-03-11 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-lookup-http-start-function):
rearranged.
2010-03-10 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-lookup-http-start-function):
Don't use `booleanp' to work on Emacs21.
* twittering-mode.el (twittering-mode-map): Use `kbd' macro same
as other keymaps.
* twittering-mode.el (twittering-goto-next-status): Show a
progress message.
(twittering-goto-previous-status): Likewise.
2010-03-10 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-fill-string): receive adjustment
width as the second argument.
(twittering-update-status-format): support formating status with a
prefix.
(twittering-generate-formater): likewise.
(twittering-generate-status-formater-base): likewise.
(twittering-generate-format-status-function): likewise.
(twittering-update-filled-string): likewise.
(twittering-format-status-for-redisplay): new function for
redisplaying a formated status with a prefix.
* twittering-mode.el (twittering-find-status): new function for
finding a status from an ID.
(twittering-get-replied-statuses): new function for making a list
of replied statuses.
(twittering-mode-map): add
`twittering-toggle-show-replied-statuses' to keymap as "r".
(twittering-replied-statuses-visible-p): new function.
(twittering-show-replied-statuses): new function.
(twittering-hide-replied-statuses): new function.
(twittering-toggle-show-replied-statuses): new function.
(twittering-get-id-at): new function.
(twittering-get-current-status-head): new function.
2010-03-09 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-redisplay-status-on-buffer): call
`func' with the region.
(twittering-make-passed-time-string): restore the original
properties.
* twittering-mode.el (twittering-timeline-data-table): store ID
table and referring ID table, too.
(twittering-current-timeline-id-table): new function.
(twittering-add-statuses-to-timeline-data): store updated ID
tables.
* twittering-mode.el (twittering-generate-status-formater-base):
redisplay filled string including substring that should be
redisplayed.
(twittering-update-filled-string): new function for updating
filled string with `need-to-be-update' property.
2010-03-07 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-edit-replace-at-point): New defun
to call `twittering-edit-length-check' forcefully.
(twittering-edit-mode-map): Bind F4 to it instead of
`twittering-tinyurl-replace-at-point'.
(twittering-edit-length-check): Make all arguments optional.
2010-03-06 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-server-info-alist): new variable
for storing server information.
(twittering-http-status-line-regexp): removed.
* twittering-mode.el (twittering-display-remaining): new variable
for specifying whether the remaining of rate limit should be
displayed on the mode line or not.
(twittering-update-mode-line): display the remaining of rate limit
if `twittering-display-remaining' is non-nil.
(twittering-get-ratelimit-remaining): new function.
(twittering-get-ratelimit-limit): new function.
2010-03-06 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el: Use the new versioned API endpoint at
"api.twitter.com/1" instead of the legacy API endpoint to fit
twitter API specification as of 2010-02-17.
(twittering-timeline-spec-to-host-method): Likewise.
(twittering-host-method-to-timeline-spec): Likewise.
(twittering-edit-post-status): Likewise.
(twittering-update-status-from-minibuffer): Likewise.
(twittering-manage-friendships): Likewise.
(twittering-manage-favorites): Likewise.
(twittering-update-lambda): Likewise.
(twittering-update-jojo): Likewise.
(twittering-http-post): Update a comment.
* twittering-mode.el (twittering-http-get-default-sentinel): Add
an additional information which is related to obsolete
public_timeline.
* twittering-mode.el (twittering-http-post): Set parameter
`source' here.
(twittering-edit-post-status): Adjust callers.
(twittering-update-status-from-minibuffer): Likewise.
(twittering-manage-friendships): Likewise.
(twittering-manage-favorites): Likewise.
(twittering-update-lambda): Likewise.
(twittering-update-jojo): Likewise.
(twittering-native-retweet): Likewise.
* twittering-mode.el (twittering-http-default-sentinel): Call
`twittering-switch-timeline' and `twittering-release-process' only
when `proc' is non-nil.
* twittering-mode.el (twittering-http-get-default-sentinel):
Change style of an additional error message.
(twittering-http-get-list-index-sentinel): Likewise.
(twittering-http-post-default-sentinel): Likewise.
2010-03-03 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-toggle-reverse-mode): invoke
`twittering-render-timeline' correctly.
* twittering-mode.el (twittering-make-display-spec-for-icon): add
2 pixels margin to icons in order to make the cursor stand out.
2010-03-01 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-generate-formater): changed into
a function.
(twittering-generate-status-formater-base): likewise.
(twittering-generate-format-status-function): likewise.
* twittering-mode.el (twittering-find-curl-program): replace
`find' with `memq' in order to execute this function without
loading `cl-seq.el' .
(twittering-start-http-session): likewise.
(twittering-goto-next-thing): likewise.
2010-02-28 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-format-status-function-source):
new variable for the status format used for generating
`twittering-format-status-function'.
(twittering-format-status-function): new variable for
byte-compiled formating function.
(twittering-parse-format-string): new function.
(twittering-generate-formater): new macro for generating a lambda
expression for given a format string and specifiers.
(twittering-generate-status-formater-base): new macro for
generating a lambda expression for given a format string.
(twittering-generate-format-status-function): new macro for
generating format status function.
(twittering-update-status-format): new function for adjusting
`twittering-format-status-function' with the current value of
`twittering-status-format'.
(twittering-mode-init-variables): invoke
`twittering-update-status-format'.
(twittering-render-timeline): call
`twittering-update-status-format' before rendering statuses.
(twittering-format-status): changed into a function receiving one
argument. It only calls `twittering-format-status-function'.
2010-02-27 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-retweet): If `C-u' prefix is
given, `twittering-use-native-retweet' is temporarily reversed
before use.
(twittering-follow): Handle a prefix `C-u' correctly.
(twittering-favorite): Likewise.
* twittering-mode.el (twittering-edit-cancel-status): Show a
message when cancelling a request.
(twittering-native-retweet): Likewise.
(twittering-follow): Likewise.
(twittering-favorite): Likewise.
2010-02-26 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-fill-string): Calculate a column
with `fill-prefix'.
2010-02-25 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-format-status): Use the return
value of the flet'ed function `attr' directly for the specifier
"%L", forgotten in the 2010-02-18 changing.
* twittering-mode.el (twittering-retrieve-image): Check the return
value of `call-process-region'.
(twittering-make-display-spec-for-icon): Check the return value of
`twittering-retrieve-image'.
* twittering-mode.el (twittering-format-status): Don't check
`twittering-image-data-table' here.
(twittering-format-status): Don't define `profile-image' as
flet'ed function for the specifier "%i".
* twittering-mode.el (twittering-get-tweets): Don't call
`twittering-retrieve-image' here.
* twittering-mode.el (twittering-retrieve-image): Bind
`url-show-status' locally to inhibit showing a progress message.
(twittering-tinyurl-get): Likewise.
* twittering-mode.el (twittering-image-type): Don't use the
external command `file' because Emacs can display only an image
which is recongnized by `image-type-from-data'.
(twittering-retrieve-image): Don't look up
`twittering-image-data-table' here.
(twittering-make-display-spec-for-icon): Call
`twittering-retrieve-image' only when `gethash' returns nil.
2010-02-22 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-atom-xmltree-to-status-datum):
Call `twittering-decode-html-entities' to decode entities
properly.
* twittering-mode.el (twittering-get-error-message): Change the
first argument to `buffer' from `proc'.
(twittering-http-get-default-sentinel): Adjust callers.
(twittering-http-get-list-index-sentinel): Likewise.
(twittering-http-post-default-sentinel): Likewise.
2010-02-20 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-current-timeline-spec): Check
`spec-string' is a string before calling
`twittering-string-to-timeline-spec'.
(twittering-get-and-render-timeline): Likewise.
(twittering-read-timeline-spec-with-completion): Likewise.
* twittering-mode.el (twittering-read-timeline-spec-with-completion):
Return nil explicitly when `twittering-string-to-timeline-spec'
return nil.
* twittering-mode.el (twittering-retrieve-image): Use `unless'
instead of `when'.
(twittering-icon-mode): Likewise.
(twittering-scroll-mode): Likewise.
(twittering-jojo-mode): Likewise.
(twittering-toggle-reverse-mode): Likewise.
2010-02-19 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-delete-ca-cert-file): New defun.
(twittering-ensure-ca-cert): Add it as a hook into
`kill-emacs-hook'.
* twittering-mode.el (twittering-get-error-message): New defun to
pickup an error message from a xmltree.
(twittering-http-get-default-sentinel): Use it.
(twittering-http-get-list-index-sentinel): Likewise.
(twittering-http-post-default-sentinel): Likewise.
* twittering-mode.el (twittering-http-get-list-index-sentinel):
Call `twittering-get-response-body' instead of `xml-parse-region'.
2010-02-19 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-set-window-end): use
`window-text-height' instead of `window-body-height' for Emacs21.
2010-02-18 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-native-retweet): Add a margin for
wide characters.
(twittering-favorite): Likewise.
* twittering-mode.el (twittering-extract-timeline-spec): Delete an
unused argument to `error'.
* twittering-mode.el (twittering-format-status): Use the return
value of the flet'ed function `attr' directly for the specifier
"%r".
(twittering-format-status): Reverse condition for the specifier
"%R".
* twittering-mode.el (twittering-lookup-http-start-function): New
defun to decide a connection method from currently available
methods.
(twittering-connection-type-table): New defvar.
(twittering-connection-type-order): Likewise.
* twittering-mode.el (twittering-curl-program): New defvar to
cache a result of `twittering-find-curl-program'.
(twittering-start-http-session-curl-p): New defun.
(twittering-start-http-session-curl-https-p): Likewise.
(twittering-start-http-session-curl): Rename from
`twittering-start-http-ssl-session'.
(twittering-start-http-session-native): Rename from
`twittering-start-http-non-ssl-session'.
2010-02-18 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-current-timeline-spec): return
nil if `twittering-current-timeline-spec-string' returns nil.
(twittering-current-timeline-data): return nil if
`twittering-current-timeline-spec' returns nil.
(twittering-extract-timeline-spec): raise an error if the argument
`str' is nil.
2010-02-17 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-extract-timeline-spec): Check STR
is non-nil first for avoiding an error caused by `string-match'.
* twittering-mode.el (twittering-icon-mode): Add an argument "P"
to `interactive'.
(twittering-scroll-mode): Likewise.
(twittering-jojo-mode): Likewise.
(twittering-toggle-reverse-mode): Likewise.
2010-02-16 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-timeline-spec-to-string): Replace
`-' with `_' in symbol name `direct-messages' and
`direct-messages-sent' to fit the parameters of twitter API.
(twittering-extract-timeline-spec): Likewise.
(twittering-timeline-spec-primary-p): Likewise.
(twittering-timeline-spec-to-host-method): Likewise.
(twittering-timeline-spec-alias): Likewise in a comment.
* twittering-mode.el (twittering-icon-mode): Call
`twittering-update-mode-line' and `twittering-render-timeline'
only when mode was changed.
(twittering-scroll-mode): Likewise.
(twittering-jojo-mode): Likewise.
(twittering-toggle-reverse-mode): Likewise.
2010-02-16 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-first-status-head): return
nil if no statuses are rendered in the current buffer.
(twittering-goto-first-status): go to the beginning of buffer if
no statuses are rendered in the current buffer.
(twittering-render-timeline): render tweets from the beginning of
buffer if no statuses are rendered.
* twittering-mode.el (twittering-reverse-mode): new variable for
reverse alignment of tweets in timeline.
(twittering-update-mode-line): add "reverse" to mode-line.
(twittering-render-timeline): support reverse alignment of
statuses.
(twittering-toggle-reverse-mode): new interactive function to
toggle reverse mode.
(twittering-goto-next-status): support reverse mode.
(twittering-goto-previous-status): likewise.
(twittering-set-window-end): add new function.
2010-02-15 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-get-list-index-sentinel):
Get a listname from `slug' element which is only in `list' node.
2010-02-15 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-and-render-timeline): copy
spec-string and clear its text properties.
* twittering-mode.el (twittering-http-default-sentinel): use
buffer object directly.
(twittering-http-get-default-sentinel): likewise.
* twittering-mode.el (twittering-current-timeline): keep the
current timeline spec string.
* twittering-mode.el (twittering-switch-timeline): adjust the
current timeline spec string to the given `spec-string' even if
they mean the same timeline.
* twittering-mode.el (twittering-http-get-default-sentinel):
invoke `twittering-render-timeline' only if necessary.
(twittering-add-statuses-to-timeline-data): return newly retrieved
statuses.
* twittering-mode.el (twittering-render-timeline): receive
`timeline-data' as an optional argument.
(twittering-http-get-default-sentinel): invoke
`twittering-render-timeline' with new statuses.
2010-02-14 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-usernames-from-timeline): new
function for collecting user screen names in a timeline.
(twittering-make-list-from-assoc): removed.
(twittering-read-username-with-completion): use
`twittering-get-usernames-from-timeline' instead of
`twittering-make-list-from-assoc'.
(twittering-read-timeline-spec-with-completion): likewise.
2010-02-14 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-get-list-index-sentinel):
Parse current-buffer as a xmltree.
2010-02-14 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-current-timeline-spec-string):
new variable for storing the current timeline spec string.
(twittering-last-requested-timeline-spec-string): removed.
(twittering-last-retrieved-timeline-spec-string): removed.
(twittering-set-current-timeline-spec-string): new function for
referring the current timeline spec string.
(twittering-current-timeline-spec-string): new function for
referring the current timeline spec.
(twittering-switch-timeline-if-necessary): new function for
switching timeline.
(twittering-mode-init-variables): explicitly initialize the
current timeline spec.
(twittering-http-get-default-sentinel): store the retrieved
timeline even if it is not the current timeline.
(twittering-get-and-render-timeline): switch timeline just after
requested.
(twittering-erase-old-statuses): reimplemented.
(twittering-update-mode-line): use
`twittering-current-timeline-spec-string'.
(twittering-add-timeline-history): likewise.
(twittering-current-timeline): likewise.
(twittering-goto-next-status): likewise.
* twittering-mode.el (twittering-add-statuses-to-timeline-data):
integrated with `twittering-cache-status-datum'.
(twittering-cache-status-datum): removed.
2010-02-13 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-mode-init-variables): make local
variables by using `make-local-variable' in order to initialize
the variables with the global values when invoking
`twittering-mode'. You can initialize `twittering-icon-mode',
`twittering-jojo-mode' and `twittering-scroll-mode' by using
`setq' in your `.emacs'.
2010-02-12 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-format-status): remove a newline
from `icon-string' that underlies the icon image.
(twittering-status-format): add a newline to the default value in
order to keep the interval of displayed tweets.
2010-02-12 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-get-tweets): Add optional
argument `since_id'.
(twittering-get-and-render-timeline): Adjust callers.
(twittering-get-tweets): Set parameter `since_id' instead of
`since' because twitter API had dropped support for `since'
parameter on 2009-04-08.
(twittering-http-get-default-sentinel): Modify the condition for
if retrieving statuses is nil.
(twittering-erase-old-statuses): Don't add parameter `since'.
(twittering-status-to-status-datum): No longer use
`twittering-timeline-last-update'.
(twittering-get-and-render-timeline): Likewise.
(twittering-timeline-last-update): Delete variable.
(twittering-local-strftime, twittering-global-strftime): Delete
functions.
(twittering-setftime): Delete function.
* twittering-mode.el (twittering-get-status-from-http-response):
No longer make a reverse list.
(twittering-http-get-default-sentinel): Adjust callers.
2010-02-12 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el
(twittering-find-processes-for-timeline-spec): new function for
finding processes retrieving a specific timeline spec.
(twittering-remove-inactive-processes): new function for removing
inactive processes from `twittering-process-info-alist'.
(twittering-process-active-p): new function for checking whether
the processes for a specific timeline spec are active or not.
(twittering-get-and-render-timeline): use
`twittering-process-active-p' instead of referring
`twittering-process-info-alist' directly.
* twittering-mode.el (twittering-http-get-default-sentinel): run
`twittering-new-tweets-hook' even if the retrieval is
non-interactive.
* twittering-mode.el (twittering-timeline-data): removed.
(twittering-current-timeline-spec): new function for the current
timeline spec.
(twittering-current-timeline-data): new function for the current
timeline data.
(twittering-remove-timeline-data): new function for clearing a
specific timeline data from `twittering-timeline-data-table`.
(twittering-add-statuses-to-timeline-data): new function for
adding statuses to `twittering-timeline-data-table'.
(twittering-http-get-default-sentinel): use
`twittering-add-statuses-to-timeline-data'.
(twittering-cache-status-datum): change the third argument into
non-optional because the global `twittering-timeline-data' is
obsoleted.
(twittering-get-and-render-timeline): do not modify
`twittering-timeline-data'.
(twittering-render-timeline): use
`twittering-current-timeline-data' instead of
`twittering-timeline-data'.
(twittering-erase-old-statuses): likewise.
(twittering-read-username-with-completion): likewise.
(twittering-read-timeline-spec-with-completion): likewise.
2010-02-11 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-fill-string): load "kinsoku.el"
in advance if necessary.
2010-02-11 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el: No longer clear fetched timeline when
switching to another timeline.
* twittering-mode.el (twittering-timeline-data-table): New defvar.
(twittering-http-get-default-sentinel): Save current timeline into
`twittering-timeline-data-table' when retrieving it successfully.
(twittering-get-and-render-timeline): Load target timeline from
`twittering-timeline-data-table' when switching to another
timeline.
2010-02-10 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-status-not-blank-p): Fix the
regexp for case of "text @user".
* test/test-twittering-mode.el (test-status-not-blank-p): Add a
testcase.
* twittering-mode.el (twittering-setup-proxy): Return t explicitly
when the proxy related configurations are consistent.
(twittering-toggle-proxy): Call `twittering-setup-proxy'.
2010-02-09 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-get-default-sentinel): Get a
buffer associate with the process from calling `process-buffer'
instead of `current-buffer'.
* twittering-mode.el (twittering-edit-cancel-status): Confirm
before calling `twittering-edit-close' when an edit buffer was
modified.
(twittering-update-status-from-pop-up-buffer): Mark an edit buffer
as unmodified.
* twittering-mode.el (twittering-edit-length-check): Calculate
length of a tweet with a sign string.
* twittering-mode.el (twittering-native-retweet): Truncate a tweet
by width instead of length.
(twittering-favorite): Likewise.
* twittering-mode.el (twittering-http-default-sentinel): Get a
buffer associate with the process from calling `process-buffer'
instead of taking from an argument.
(twittering-http-default-sentinel): Delete an unnecessary
argument.
(twittering-start-http-ssl-session): Adjust callers.
(twittering-start-http-non-ssl-session): Likewise.
2010-02-09 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-goto-previous-status): simplified.
* twittering-mode.el (twittering-goto-next-status): retrieve
additional statuses if the function is called at the end of the
buffer.
* twittering-mode.el (twittering-render-timeline): use `insert'
when inserting a status at the end of the buffer in order to keep
the marker pointing the end of the buffer.
* twittering-mode.el (twittering-render-timeline): move the
position correctly even if the buffer is invisible.
2010-02-08 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-default-sentinel): Delete a
call to `twittering-release-process' in the BODYFORM to avoid a
double release.
2010-02-08 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-http-default-sentinel): call
`twittering-release-process' even if some errors happen.
(twittering-http-get-default-sentinel): remove invocation of
`twittering-release-process'.
2010-02-08 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-get-default-sentinel): Call
`twittering-release-process' when status code is not equal to
"200", forgotten in the 2010-02-06 changing.
* twittering-mode.el (twittering-status-to-status-datum): Change
`regex-index' variable to local scope from global one.
(twittering-status-to-status-datum): Rename `regex-index' to
`regexp-index'.
* twittering-mode.el (debug-print): Reduce redundant calls of
`insert' because it can take multiple arguments.
(debug-printf): Remove an unnecessary call to `concat' because
`insert' can take multiple arguments.
* twittering-mode.el (twittering-extract-timeline-spec): Fix the
regexp for "search" timeline spec; same as for "filter".
* twittering-mode.el (twittering-make-clickable-status-datum):
When trying to add a text property to `source', check it is
non-nil first for avoiding an error caused by `string-match'.
2010-02-07 Tadashi MATSUO <tad@mymail.twin.jp>
* test/test-twittering-mode.el (test-format-status): replace the
format specifier "%t" with "%T".
* twittering-mode.el (twittering-extract-timeline-spec): fix the
regexp for "filter" timeline spec.
* test/test-twittering-mode.el (timeline-spec): add a test for
trailing backslashes.
* twittering-mode.el (twittering-extract-timeline-spec): add error
messages for some conditions.
* twittering-mode.el
(twittering-read-timeline-spec-with-completion): fix the regexp
for judging whether a list name is required or not.
* twittering-mode.el
(twittering-read-timeline-spec-with-completion): catch errors on
interpreting timeline spec string.
2010-02-07 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-get): Add an optional
argument for a response data format.
(twittering-http-post): Likewise.
(twittering-get-list-index): Adjust callers.
(twittering-http-post): Delete unused argument `contents'.
* twittering-mode.el (twittering-http-get-default-sentinel): Check
status-code here instead of `twittering-http-default-sentinel'.
(twittering-http-get-list-index-sentinel): Likewise.
(twittering-http-post-default-sentinel): Likewise.
(twittering-http-default-sentinel): Adjust callers.
* twittering-mode.el (twittering-http-get-list-index-sentinel):
Set a null string explicitly if user does not have a list.
2010-02-06 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-default-sentinel): New defun
to share code between `twittering-http-get-default-sentinel',
`twittering-http-get-list-index-sentinel', and
`twittering-http-post-default-sentinel'.
(twittering-http-get-default-sentinel): Adjust function.
(twittering-http-get-list-index-sentinel): Likewise.
(twittering-http-post-default-sentinel): Likewise.
(twittering-start-http-ssl-session): Adjust callers.
(twittering-start-http-non-ssl-session): Likewise.
2010-02-06 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-edit-post-status): Don't add
parameter `in_reply_to_status_id' if the tweet does not begin
with `@'.
(twittering-update-status-from-minibuffer): Likewise.
* twittering-mode.el (twittering-status-not-blank-p): Fix a regexp
pattern for USER.
(twittering-status-to-status-datum): Likewise.
(twittering-http-get-list-index-sentinel): Change a regexp pattern
for LISTNAME.
2010-02-06 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-and-render-timeline): ignore
non-interactive request if a process is waiting for responses.
* twittering-mode.el (twittering-mode): set `buffer-read-only' to
t explicitly.
(twittering-render-timeline): bind `buffer-read-only' with `let*'
locally.
2010-02-05 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-update-status-from-pop-up-buffer):
Use the current hashtag if set; same as
`twittering-update-status-from-minibuffer'.
2010-02-05 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-format-status): replace a lacked
property by an empty string.
* twittering-mode.el (twittering-get-status-from-http-response):
use ATOM format instead of JSON format.
(twittering-atom-xmltree-to-status-datum): new function for
converting an entry of ATOM into a status alist.
(twittering-atom-xmltree-to-status): new function for converting a
XML tree of ATOM into a list of status alists.
(twittering-json-to-status-datum): removed.
(twittering-json-to-status): removed.
(twittering-get-tweets): retrieve "search" timeline in ATOM format
instead of JSON format.
(twittering-get-and-render-timeline): remove dependence on
`json.el'.
(twittering-search): likewise.
2010-02-04 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-status-to-status-datum): assign a
retweet the ID issued when it is retweeted. `source-id', which is
the ID of the original tweet, is also assigned to the retweet.
(twittering-cache-status-datum): do not register multiple retweets
referring the same tweet.
* twittering-mode.el (twittering-http-get-default-sentinel): make
a hash table for already retrieved IDs.
(twittering-cache-status-datum): use a hash table of IDs to avoid
registering redundant tweets.
* twittering-mode.el (twittering-status-to-status-datum): fix
lacked binding of `source-id' and `source-created-at'.
* twittering-mode.el (twittering-cache-status-datum): register IDs
with ID-TABLE when a tweet is added to DATA-VAR. This prevents
duplicated tweets in one retrieval from being registered.
2010-02-03 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-http-get-default-sentinel): sort
`twittering-timeline-data' by ID.
2010-02-03 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-status-to-status-datum): Don't
rewrite `created-at' by a same name element in `retweeted_status'
node.
2010-02-02 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-get-response-body): Add an
optional second argument to share code between this and
`twittering-get-response-body-string'.
(twittering-get-response-body-string): Delete function.
(twittering-get-status-from-http-response): Adjust callers.
2010-02-02 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-http-get-default-sentinel): use
`twittering-get-status-from-http-response'.
(twittering-get-status-from-http-response): new function for
extracting statuses from HTTP response.
(twittering-get-tweets): use
`twittering-http-get-default-sentinel' for the "search" timeline
spec.
(twittering-http-get-search-sentinel): removed.
2010-01-31 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-http-get-default-sentinel):
rearranged.
* twittering-mode.el (twittering-start-http-ssl-session): return
the process object.
(twittering-start-http-non-ssl-session): likewise.
(twittering-get-tweets): likewise.
* twittering-mode.el (twittering-process-info-alist): new variable
for managing active process and timeline spec being retrieved by
the process.
(twittering-register-process): new function for registering a pair
of process and timeline spec.
(twittering-release-process): new function for releasing a process.
(twittering-get-timeline-spec-from-process): new function for
getting timeline spec retrieved by the given process.
(twittering-http-get-default-sentinel): discard statuses if
the retrieved spec differs from the last requested one.
(twittering-get-and-render-timeline): register a pair of the
requested timeline spec and process for retrieving it.
2010-01-30 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-fill-string): use `frame-width'
only if no windows display the `*twittering*' buffer.
* twittering-mode.el (twittering-for-each-property-region): new
function to process each region with a certain property.
* twittering-mode.el (twittering-timer-for-redisplaying): new
variable for timer of redisplaying statuses.
(twittering-timer-interval-for-redisplaying): new variable
specifying the interval of redisplaying statuses.
(twittering-redisplay-status-on-buffer): new function to redisplay
statuses on buffer.
(twittering-format-status): append `need-to-be-update' property to
the specifier "%@" and "%FILL{...}" including "%@".
(twittering-start): start the timer of redisplaying statuses.
(twittering-stop): stop the timer of redisplaying statuses.
* twittering-mode.el (twittering-make-passed-time-string): new
function to generate a string displayed as passed time of a
status.
(twittering-format-status): use
`twittering-make-passed-time-string' for the specifier "%@".
2010-01-29 Daiji Kanematsu <daijik@gmail.com>
* twittering-mode.el (toplevel): add `easy-menu-define' in order
to add the menu `Twitter'.
2010-01-29 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-fill-string): Add an extra
argument to `min' for avoiding error "Wrong number of arguments:
min, 0".
* twittering-mode.el (twittering-extract-timeline-spec): On
search-mode, return a spec only when the length of `escaped-query'
is greater than zero.
2010-01-28 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-render-timeline): simplified by
using `insert-before-markers' instead of `insert'. This removes
additional movement of points for scroll-mode.
2010-01-26 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-status-to-status-datum): Add
`original-user-name' and `original-user-screen-name' to return
an alist; fix an incomplete merge on 2010-01-22.
(twittering-json-to-status-datum): Likewise.
* twittering-mode.el (twittering-json-to-status-datum): Use
`retweeted-status-data' as variable instead of `retweeted-status';
same as `twittering-status-to-status-datum'.
2010-01-26 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (toplevel): Require 'unicode explicitly on
Emacs21. See a comment of `twittering-ucs-to-char' for more
details.
(twittering-ucs-to-char): Check (featurep 'unicode) instead of
(featurep 'mucs).
(twittering-ucs-to-char): Update comment.
* twittering-mode.el (toplevel): On Emacs21, always call
`set-terminal-coding-system'.
2010-01-25 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-format-status): Call
`twittering-make-display-spec-for-icon' only when `window-system'
is non-nil to avoid error "Non-X frame used" under Emacs which is
using a text-only terminal.
2010-01-25 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-extract-timeline-spec): add new
timeline spec string for hashtag.
2010-01-23 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-json-to-status-datum): Don't
refer to `twittering-use-native-retweet'; same as
`twittering-status-to-status-datum'.
2010-01-23 Naohiro Aota <naota@elisp.net>
* twittering-mode.el (twittering-home-timeline): Add new funciton.
2010-01-23 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-fill-string): adjust
`fill-column' to the minimum width of windows displaying
`*twittering*' buffer. Thanks to Naohiro Aota.
* twittering-mode.el (twittering-render-timeline): take account of
multiple windows displaying `*twittering*' buffer.
Thanks to Naohiro Aota.
* twittering-mode.el (twittering-format-status): fix an incorrect
index on filling text for the specifier "%t".
2010-01-24 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-extract-timeline-spec): support
functional alias.
2010-01-23 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-timeline-spec-to-host-method):
return query string as a element of returned list.
(twittering-host-method-to-timeline-spec): receive query string as
a optional argument.
(twittering-http-get): remove special adjustment for search
method, which is now unnecessary.
(twittering-get-tweets): always receive query string as an
argument for search method.
(twittering-get-search): removed.
(twittering-get-and-render-timeline): send query string if the
given spec is `search'.
(twittering-search): execute search via
`twittering-get-and-render-timeline'.
* twittering-mode.el (twittering-timeline-spec-to-string): modify
the string format of `search' spec.
(twittering-extract-timeline-spec): likewise.
2010-01-22 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-initial-timeline-spec-string):
Change value to ":home" from ":friends".
* twittering-mode.el (twittering-status-to-status-datum): Don't
refer to `twittering-use-native-retweet'.
* twittering-mode.el (twittering-http-get-list-index-sentinel):
Fix a reference to `mes' as a variable, not as a function.