/
ChangeLog
3023 lines (2370 loc) · 124 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-05-08 Takashi Masuda <masutaka@nifty.com>
* twittering-mode.el (twittering-update-jojo): 自分のツイートには返
信しないようにした。
* twittering-mode.el (twittering-update-jojo): do not reply to
tweets posted by the current user itself.
2010-05-08 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-jojo-mode-p): confirm that the
buffer has not been killed.
2010-05-06 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: Fix the format specifier "%r" for direct
message.
(twittering-status-to-status-datum): add `recipient-screen-name'
as a element of a status.
(twittering-xmltree-to-status): store `recipient_screen_name'
without modificaiton.
(twittering-generate-status-formater-base): replace "%r" with
`recipient-screen-name' if it exists.
2010-05-05 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: Use a dummy buffer to prevent the cursor
from moving without intention after invoking `url-retrieve'.
(twittering-url-request-dummy-buffer-name): new constant for dummy
buffer.
(twittering-resolve-url-request): switch to the dummy buffer just
after killing the content buffer generated by `url-retrieve'. This
prevents multiple threads from having different cursor points for
the same buffer.
2010-05-05 Takashi Masuda <masutaka@nifty.com>
* twittering-mode.el: twittering-jojo-mode の判定ミスを修正。
(twittering-add-statuses-to-timeline-data): 判定方法を変更した。
(twittering-jojo-mode-p): new function
* twittering-mode.el: `twittering-jojo-mode' for each spec is
correctly referred in order to decide whether to invoke
`twittering-update-jojo'.
(twittering-add-statuses-to-timeline-data): correct the condition
for invoking `twittering-update-jojo'.
(twittering-jojo-mode-p): new function.
2010-05-04 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-ask-post): renamed
`twittering-request-confirmation-on-posting'.
* twittering-mode.el (twittering-edit-post-status): correct the
condition for requesting confirmation on posting a status.
2010-05-03 Takashi Masuda <masutaka@nifty.com>
* twittering-mode.el: Tweet する時に y-or-n-p で問い合わせを出来る
ようにした。デフォルトは聞かれない。
(twittering-ask-post): new variable
* twittering-mode.el: Add confirmation on posting a status edited
in pop-up buffer. It is disabled on default.
(twittering-ask-post): new variable.
* twittering-mode.el: `V' の補完対象に :direct_messages や :home を
追加した。
(twittering-read-timeline-spec-with-completion): dummy-hist に追加。
* twittering-mode.el: Add some primary timeline specs, such as
":direct_messages" and ":home", to candidates of completion.
(twittering-read-timeline-spec-with-completion): add some timeline
specs to dummy-hist.
2010-05-03 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-edit-setup-help): generate help
message by using `substitute-command-keys'.
* twittering-mode.el: The format specifier "@" can receive the
time format string, which is used to format the time of
sufficiently old statuses.
(twittering-generate-status-formater-base): add new parameter
'time-format' to the specifier "@".
(twittering-make-passed-time-string): receive new argument
`time-format'.
* twittering-mode.el: Functions for retrieving URLs asynchronously
are added.
(twittering-url-data-hash): new variable for retrieved data.
(twittering-url-request-list): new variable for additional requests.
(twittering-url-request-sentinel-hash): new variable for sentinels.
(twittering-internal-url-queue): new variable.
(twittering-url-request-resolving-p): new variable.
(twittering-url-request-retry-limit): new variable.
(twittering-remove-redundant-queries): new function.
(twittering-resolve-url-request): new function.
(twittering-url-retrieve-async): new function.
* twittering-mode.el: Icons are retrieved asynchronously.
(twittering-icon-prop-hash): new variable.
(twittering-image-data-table): removed.
(twittering-get-display-spec-for-icon): new function.
(twittering-convert-image-data): new function.
(twittering-error-icon-data-pair): new constant.
(twittering-create-image-pair): new function.
(twittering-register-image-data): new function.
(twittering-make-slice-spec): new function.
(twittering-make-display-spec-for-icon): rearranged.
(twittering-make-icon-string): new function.
(twittering-retrieve-image): removed.
(twittering-generate-status-formater-base): use
`twittering-make-icon-string'.
(twittering-image-stack): removed.
(twittering-image-type): removed.
(twittering-image-type-cache): removed.
2010-05-01 Immad Naseer <immad.naseer@gmail.com>
* twittering-mode.el: New interactive functions for direct
messages are added.
(twittering-direct-messages-timeline): new function.
(twittering-sent-direct-messages-timeline): new function.
2010-04-25 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: Fix mode-line to display the rate limit.
(twittering-mode-line-buffer-identification): add the remaining
number of API requests if `twittering-display-remaining' is
non-nil.
* twittering-mode.el: Stop keeping undo information for buffers
managed by `twittering-mode'. Thanks to irie for pointing it out.
(twittering-mode-setup): call `buffer-disable-undo'.
* twittering-mode.el: Verify the account in advance of retrieving
statuses.
(twittering-account-authorization): new variable.
(twittering-account-authorized-p): new function.
(twittering-account-authorization-queried-p): new function.
(twittering-prepare-account-info): new function for completing
username and password.
(twittering-verify-credentials): new function.
(twittering-http-get-verify-credentials-sentinel): new function.
(twittering-get-managed-buffer): start the timer after
authorization.
(twittering-mode-init-global): initialize neither
`twittering-username' nor `twittering-password'.
(twittering-mode): call `twittering-prepare-account-info'.
(twittering-get-and-render-timeline): ignore requests unless
authorization is completed.
(twittering-update-active-buffers): do not retrieve statuses
unless authorization is completed.
(twittering-visit-timeline): verify the account.
(twittering-get-username): use `twittering-username' directly.
(twittering-get-password): use `twittering-password' directly.
(twittering-username-active): removed.
(twittering-password-active): removed.
* twittering-mode.el: `twittering-visit-timeline' initializes
global variables if necessary.
(twittering-visit-timeline): initialize global variables and
prepare account information.
(twittering-mode): delegate the initialization to
`twittering-visit-timeline'.
(twittering-mode-init-global): renamed
`twittering-initialize-global-variables-if-necessary'.
* twittering-mode.el: Support multiple timelines on initialization.
(twittering-initial-timeline-spec-string): mean multiple timelines
if the value is a list of strings.
(twittering-mode): support multiple timeline specs on
initialization.
2010-04-24 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: Reimplement indicators.
(twittering-ssl-indicator-image): new constant.
(twittering-modeline-ssl): defined as a constant, which is
initialized on loading `twittering-mode.el'.
(twittering-ssl-image, twittering-ssl-indicator): removed.
(twittering-ssl-icon): removed.
(twittering-active-image, twittering-inactive-image): removed.
(twittering-active-indicator, twittering-inactive-indicator):
removed.
(twittering-icon-directory): removed.
(twittering-active-icon, twittering-inactive-icon): removed.
(twittering-display-image-p): removed.
(twittering-init-mode-line-icons): removed. Images are initialized
as constants on loading `twittering-mode.el'.
(twittering-active-indicator-image): new constant.
(twittering-inactive-indicator-image): new constant.
(twittering-modeline-active): defined as a constat.
(twittering-modeline-inactive): likewise.
(twittering-mode-init-global): remove the call of
`twittering-init-mode-line-icons'.
* twittering-mode.el: Display the buffer state as
`mode-line-buffer-identification' instead of `mode-name'.
(twittering-mode-line-buffer-identification): new function for
generating a mode-line string for `twittering-mode'.
(twittering-mode-string): removed.
(twittering-modeline-ssl): remove brackets from the mode-line
string.
(twittering-modeline-active): use a whitespace with `display' face
as a mode-line string.
(twittering-modeline-inactive): remove brackets from the mode-line
string.
(twittering-update-mode-line): call `force-mode-line-update' only.
(twittering-mode-setup): initialize `mode-name' and
`mode-line-buffer-identification'.
2010-04-19 Takashi Masuda <masutaka@nifty.com>
* twittering-mode.el : 関数名が古かったので、リネーム。
(twittering-init-mode-line-icons):
(twittering-mode-init-global):
twittering-init-active-inactive-icons から
twittering-init-mode-line-icons にリネーム。
* twittering-mode.el : rename old functions.
(twittering-init-mode-line-icons): rename
`twittering-init-active-inactive-icons'
`twittering-init-mode-line-icons'.
* twittering-mode.el : SSL と ACTIVE/INACTIVE の状態をモードライン
アイコンに表示するようにした。-nw 時は文字列を表示する。
(twittering-update-mode-line): mode-line-buffer-identification の設
定を追加。INACTIVE と ssl の mode-name への設定を削除した。
(twittering-display-image-p): 新規マクロ
(twittering-init-active-inactive-icons): 新規関数
(twittering-mode-init-global):
twittering-init-active-inactive-icons を呼ぶように修正。
* twittering-mode.el : display graphical indicators for SSL and
ACTIVE/INACTIVE state on mode-line.
(twittering-update-mode-line): add graphical indicators to
`mode-line-buffer-identification' instead of `mode-name'.
(twittering-display-image-p): new macro.
(twittering-init-active-inactive-icons): new function.
(twittering-mode-init-global): call
`twittering-init-active-inactive-icons'.
* icons/ssl.xpm: 上記に伴い Mew から拝借。
* icons/ssl.xpm: imported from Mew.
* offline.patch: 上記に伴い削除。元々私がブログに公開したものを
Hayamizu 氏が拾って下さったもの。
* offline.patch: removed. (Mr.Hayamizu imported it, which
originated from Masuda's blog.)
2010-04-19 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-buffer-from-spec): return nil
if the corresponding buffer has been already killed.
(twittering-update-unread-status-info): do not count statuses for
a killed buffer.
(twittering-http-get-default-sentinel): do not render a timeline
for a killed buffer.
2010-04-17 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: Reimplement support of multiple buffers. The
timeline spec and active-mode flag of each managed buffer are
stored as buffer-local variables.
(twittering-timeline-spec): new buffer-local variable.
(twittering-timeline-spec-string): new buffer-local variable.
(twittering-active-mode): new buffer-local variable.
(twittering-buffer-info-list): redefined as a list of buffers.
(twittering-get-buffer-list): follow the redefinition of
`twittering-buffer-info-list'.
(twittering-get-active-buffer-list): likewise.
(twittering-buffer-p): likewise.
(twittering-get-buffer-from-spec): likewise.
(twittering-unregister-buffer): likewise.
(twittering-unregister-killed-buffer): likewise.
(twittering-buffer-active-p): use buffer-local
`twittering-active-mode'.
(twittering-get-timeline-spec-for-buffer): use buffer-local
`twittering-timeline-spec'.
(twittering-get-timeline-spec-string-for-buffer): use buffer-local
`twittering-timeline-spec-string'.
(twittering-register-buffer): removed. Its body is integrated into
`twittering-get-managed-buffer'.
(twittering-replace-spec-string-for-buffer): set buffer-local
`twittering-timeline-spec-string' directly.
(twittering-set-active-flag-for-buffer): use
`twittering-toggle-activate-buffer'.
(twittering-toggle-activate-buffer): set buffer-local
`twittering-active-mode' directly.
(twittering-get-managed-buffer): rearranged.
(twittering-mode-setup): set up `twittering-timeline-spec',
`twittering-timeline-spec-string' and `twittering-active-mode'.
And register the current buffer to `twittering-buffer-info-list'.
* twittering-mode.el: Add functions to switch timelines.
(twittering-switch-to-next-timeline): new function.
(twittering-switch-to-previous-timeline): new function.
(twittering-mode-map): bind "f" and "b" to
`twittering-switch-to-next-timeline' and
`twittering-switch-to-previous-timeline', respectively.
2010-04-09 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-mode-init-global): initialize
faces without using `copy-face' because it does not change the
default face for new frames.
2010-04-07 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: Fix a bug on updating timeline history.
(twittering-http-get-default-sentinel): call
`twittering-add-timeline-history' with correct timeline spec
string.
(twittering-add-timeline-history): receive timeline spec string
instead of timeline spec.
* twittering-mode.el (twittering-mode-setup): omit redundant call
of `run-hook'.
* twittering-mode.el (twittering-direct-message): fix a lack of
separator. Thanks to Takashi Masuda.
2010-04-06 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-new-tweets-spec): new variable
for timeline spec on running `twittering-new-tweets-hook'.
* twittering-mode.el: Add an experimental notifier for unread
statuses on mode-line. You can enable it by invoking
`twittering-enable-unread-status-notifier'. To disable it, invoke
`twittering-disable-unread-status-notifier'.
(twittering-unread-status-info): new variable.
(twittering-reset-unread-status-info-if-necessary): new function.
(twittering-set-number-of-unread): new function.
(twittering-make-unread-status-notifier-string): new function.
(twittering-update-unread-status-info): new function.
(twittering-enable-unread-status-notifier): new function.
(twittering-disable-unread-status-notifier): new function.
* twittering-mode.el: Support fixed fill-column for the format
specifier "%FILL{...}". Thanks to William Xu.
(twittering-fill-column): new variable.
2010-04-04 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: Improve compatibility with global-font-lock mode.
(twittering-mode-init-global): use `bold' instead of
`font-lock-string-face' if it has not been bound yet.
`twittering-mode' does not require loading `font-lock'.
(twittering-mode-setup): prevent `global-font-lock-mode' enabling
`font-lock-mode' by using buffer-local `font-lock-global-modes'.
`twittering-mode' can be used with/without any configuration for
font-lock mode.
* twittering-mode.el: Replace hard-coded hostnames with
variables and functions. Thanks to William Xu.
(twittering-api-host): new variable.
(twittering-api-search-host): new variable.
(twittering-web-host): new variable.
(twittering-get-search-url): new function.
(twittering-make-clickable-status-datum): call
`twittering-get-search-url' instead of using hard-coded hostname.
* twittering-mode.el (twittering-start-http-session-curl): do not
overwrite headers that `curl' will define internally. Thanks to
William Xu.
2010-04-03 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-buffer-active-p): renamed
`twittering-buffer-related-p'.
* twittering-mode.el (twittering-start): check the value of
`twittering-timer-for-redisplaying' before setting timer.
* twittering-mode.el: Multiple buffers are supported.
(twittering-buffer-info-list): new variable for managing multiple
buffers.
(twittering-buffer): both of the function and the variable are
removed.
(twittering-update-mode-line): remove timeline spec from mode-line
because it is displayed as the name of buffer.
(twittering-switch-timeline): removed.
(twittering-get-buffer-list): new function.
(twittering-get-active-buffer-list): new function.
(twittering-buffer-related-p): modified to support multiple buffers.
(twittering-buffer-p): new function.
(twittering-buffer-active-p): new function.
(twittering-get-buffer-from-spec): new function.
(twittering-get-buffer-from-spec-string): new function.
(twittering-get-timeline-spec-for-buffer): new function.
(twittering-get-timeline-spec-string-for-buffer): new function.
(twittering-current-timeline-spec): return timeline spec for the
current buffer.
(twittering-current-timeline-spec-string): return timeline spec
string for the current buffer.
(twittering-register-buffer): new function.
(twittering-unregister-buffer): new function.
(twittering-unregister-killed-buffer): new function.
(twittering-replace-spec-string-for-buffer): new function.
(twittering-set-active-flag-for-buffer): new function.
(twittering-toggle-activate-buffer): new function.
(twittering-activate-buffer): new function.
(twittering-deactivate-buffer): new function.
(twittering-kill-buffer): new function.
(twittering-generate-new-buffer): new function.
(twittering-switch-timeline): removed.
(twittering-get-managed-buffer): new function.
(twittering-mode-map): `twittering-toggle-activate-buffer' is
bound to "a". `twittering-kill-buffer' is bound to "q" instead of
`twittering-suspend'.
(twittering-mode-init-global): new function for initializing
global variables.
(twittering-initialized): new variable.
(twittering-mode-setup): new function for initializing a buffer
being managed by `twittering-mode'.
(twittering-mode): reimplemented.
(twittering-icon-mode): support multiple buffers.
(twittering-http-get-default-sentinel): render the retrieved
statuses on the buffer bound to the timeline spec.
(twittering-redisplay-status-on-buffer): support multiple buffers.
(twittering-redisplay-status-on-each-buffer): new function.
(twittering-render-timeline): require the target buffer.
(twittering-timer-action): support multiple buffers.
(twittering-get-tweets): support multiple buffers.
(twittering-get-and-render-timeline): retrieve and render the
timeline bound to the current buffer.
(twittering-start): use `twittering-update-active-timeline'
instead of `twittering-current-timeline-noninteractive' for
`twittering-timer'.
(twittering-toggle-reverse-mode): support multiple buffers.
(twittering-friends-timeline): call `twittering-visit-timeline'
instead of `twittering-get-and-render-timeline'.
(twittering-home-timeline): likewise.
(twittering-replies-timeline): likewise.
(twittering-public-timeline): likewise.
(twittering-user-timeline): likewise.
(twittering-other-user-timeline): likewise.
(twittering-other-user-timeline-interactive): likewise.
(twittering-other-user-list-interactive): likewise.
(twittering-search): likewise.
(twittering-update-active-buffers): new function for retrieving
timelines for active buffers.
(twittering-current-timeline): retrieve statuses for current
buffer.
(twittering-erase-old-statuses): erase statuses of the timeline
bound to the current buffer.
(twittering-visit-timeline): switch to the buffer generated by
`twittering-get-managed-buffer'.
* twittering-mode.el (twittering-update-server-info): update
mode-lines for all buffers managed by `twittering-mode' if
`twittering-display-remaining' is non-nil.
2010-03-30 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-response-header): return nil
if an empty line as a separater is not found in the given buffer.
(twittering-http-default-sentinel): generate `header-info' only if
`header' is non-nil.
2010-03-29 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-url-wrapper): new wrapper
function for using URL library with proxy configuration for
`twittering-mode'.
(twittering-url-insert-file-contents): likewise.
(twittering-url-retrieve-synchronously): likewise.
(twittering-setup-proxy): call `url-scheme-get-property' to avoid
`url-proxy-services' to be reset.
(twittering-retrieve-image): use the wrapper function instead of
a function in URL library.
(twittering-tinyurl-get): likewise.
* twittering-mode.el (twittering-update-status-from-minibuffer):
fix infinite loop on updating a status from minibuffer.
* twittering-mode.el (twittering-start-http-session-curl): modify
the order of arguments for `curl', where the URL is placed last.
2010-03-25 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-status-url): change the
format of a URL of a certain status into that used in the web
interface on `http://twitter.com/'.
2010-03-24 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-register-process): store timeline
spec string.
(twittering-get-and-render-timeline): register a process together
with timeline spec string.
(twittering-release-process): use `delq' instead of `delete'.
(twittering-get-timeline-spec-string-from-process): new function
for registered timeline spec string.
* twittering-mode.el (twittering-http-get-default-sentinel):
display the timeline spec string in notification.
2010-03-23 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-mode-map): bind "SPC" and "C-v" to
`twittering-scroll-up', and bind "<backspace>" and "M-v" to
`twittering-scroll-down'.
(twittering-scroll-up): new function. Thanks to Jim Crossley.
(twittering-scroll-down): new function.
2010-03-20 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
`@' and username which is passed from callers.
(twittering-update-status-from-minibuffer): Likewise.
(twittering-generate-status-formater-base): Make the specifier
"%r" work similarly to web interface.
2010-03-19 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-retrieve-image): Use
`create-image'.
2010-03-19 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-regexp-hash): New defvar.
(twittering-regexp-atmark): Likewise.
(twittering-extract-timeline-spec): Use these.
(twittering-make-clickable-status-datum): Likewise.
2010-03-19 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-remove-inactive-processes): add
`exit' and `signal' to `inactive-statuses'.
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'.
* twittering-mode.el (twittering-http-default-sentinel): Check
process-status before processing sentinel.
* twittering-mode.el (twittering-make-clickable-status-datum): Add
a text property `goto-spec'.
(twittering-other-user-timeline): Refer it.
(twittering-make-clickable-status-datum): Add a text property
`screen-name-in-text' to both `user-name' and `user-screen-name'.
(twittering-make-clickable-status-datum): No longer add text
properties `hashtag-in-text' and `uri-in-text'.
(twittering-enter): Don't refer these properties.
(twittering-make-clickable-status-datum): Reduce loops.
* twittering-mode.el (twittering-follow): Copy username and clear
its text properties before using it for display on minibuffer.
(twittering-other-user-list-interactive): Likewise.
(twittering-read-list-name): Likewise.
(twittering-native-retweet): Likewise for text.
(twittering-favorite): Likewise for text.
2010-03-17 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-generate-status-formater-base):
fix the formater for "%FACE[...]{...}".
2010-03-13 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el: Improve a support of sending direct
messages.
* twittering-mode.el (twittering-update-status-from-pop-up-buffer):
Use twitter API which is related of direct_messages if necessary.
(twittering-update-status-from-minibuffer): Likewise.
(twittering-timeline-spec-is-direct-messages-p): New defun.
(twittering-reply-recipient): Rename from
`twittering-reply-to-id'.
(twittering-update-status-from-pop-up-buffer): Adjust callers.
(twittering-render-timeline): Add a text property `belongs-spec'.
(twittering-update-status-from-pop-up-buffer): Add optional
arguments `username' and `spec'.
(twittering-update-status-from-minibuffer): Likewise.
(twittering-enter): Adjust callers.
* twittering-mode.el (twittering-edit-setup-help): Add optional
arguments `username' and `spec'.
(twittering-update-status-from-pop-up-buffer): Call it here.
(twittering-edit-mode): Don't call it here.
* twittering-mode.el (twittering-direct-message): Call
`twittering-read-username-with-completion'.
* twittering-mode.el (twittering-make-display-spec-for-icon): Use
`create-animated-image' if present (on Emacs24 or later).
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 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el: Add a support of direct messages (which was
originally written by me in 2010-02-16)
* twittering-mode.el (twittering-xmltree-to-status): Convert a XML
tree retrieved with "direct_messages{,/sent}" request into a list
of status alists which is retrieved from a standard timeline.
(twittering-host-method-to-timeline-spec): Add condition for
`direct_messages' and `direct_messages_sent'.
(twittering-timeline-spec-to-host-method): Modify condition for
`direct_messages' and `direct_messages_sent'.
* twittering-mode.el (twittering-status-format): Modify the
meaning of the specifier "%r" to display a recipient on both
`direct_messages' and `direct_messages_sent'.
* twittering-mode.el (twittering-format-status): Add `url'
property for `direct_messages' and `direct_messages_sent'.
(twittering-get-status-url): Change the second argument ID as
optional.
(twittering-make-clickable-status-datum): Call it.
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.