/
ChangeLog
1786 lines (1360 loc) · 74.1 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-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.
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.
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 "" 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.
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-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.
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".
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 (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-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-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.
2010-01-22 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-fill-string): add new function
for generating filled string.
(twittering-format-status): use `twittering-fill-string'.
(twittering-render-timeline): remove unnecessary binding of the
variable `fill-column'.
2010-01-22 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el: Add search support (which was originally
written by Kensuke Matsuzaki in December 2009)
* twittering-mode.el (twittering-json-to-status-datum): Add code
for native retweets.
(twittering-http-get-search-sentinel): Sync with HEAD.
(twittering-get-response-body-string): Likewise.
* twittering-mode.el (twittering-get-tweets): Rewrite to match
this to the new-timeline spec.
(twittering-get-search): Call `twittering-get-tweets' instead of
`twittering-http-get'
(twittering-search): Call `twittering-get-search' instead of
`twittering-get-tweets'.
* twittering-mode.el (twittering-timeline-spec-to-string): Add a
condition for search-mode.
(twittering-extract-timeline-spec): Likewise.
(twittering-timeline-spec-to-host-method): Likewise.
(twittering-host-method-to-timeline-spec): Likewise.
* twittering-mode.el (twittering-http-get): Add an adjusting code.
In search-mode, a `method' variable is now contains a query word
for internal use. For this reason, we must adjust it before pass
it into `twittering-start-http-session'.
2010-01-21 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el: Add a fail statement to work again under
Emacs21 without Mule-UCS.
(toplevel): Don't abort if require failed.
(twittering-ucs-to-char): Return `?' explicitly if `decode-char'
failed.
* twittering-mode.el (twittering-get-tweets): Rename from
`twittering-get-twits'.
(twittering-get-and-render-timeline): Adjust callers.
(twittering-new-tweets-hook): Fix a docstring.
2010-01-21 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-render-timeline): reduce
redundant calls of `goto-char'.
* twittering-mode.el (twittering-render-timeline): fix logic for
inserting statuses not to duplicate the last status.
2010-01-20 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-get-default-sentinel): Show
the reason phrase with status code if status code is not equal to
"200"; same as `twittering-http-post-default-sentinel'.
(twittering-http-get-list-index-sentinel): Likewise.
* twittering-mode.el (twittering-http-status-line-regexp): New
defconst to share this between several functions. The regexp
pattern to obey to RFC 2616.
(twittering-http-get-default-sentinel): Use it.
(twittering-http-post-default-sentinel): Likewise.
(twittering-http-get-list-index-sentinel): Likewise.
* twittering-mode.el (twittering-tinyurl-get): Remove an
unnecessary call to `concat'.
* twittering-mode.el (twittering-update-jojo): Make a tweet by
`twittering-ucs-to-char' instead of `string-as-multibyte'.
2010-01-19 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-first-status-head): add.
(twittering-goto-first-status): add.
(twittering-mode-map): bind `twittering-goto-first-status' to "H"
instead of `begininng-of-buffer'.
(twittering-render-timeline): use `twittering-goto-first-status'.
2010-01-18 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-ucs-to-char): Add a workaround
with navi2ch prior to 1.8.3, which is currently last release
version as of 2010-01-18. The problem is fixed in navi2ch dated
2010-01-16 or later, but not released yet.
2010-01-17 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-format-status): fix the regexp
for the specifier "%FILL{...}" to accept pairs of braces inside of
"{...}".
* twittering-mode.el (twittering-format-status): add new format
decorator "%FACE[face-name]{...}", which decorates braced strings
with the specified face.
* twittering-mode.el (twittering-render-timeline): support
additional rendering.
(twittering-http-get-default-sentinel): send the additional
argument `same-timeline' to `twittering-render-timeline'.
(twittering-status-id<): add new function for comparing two ids.
(twittering-status-id=): likewise.
2010-01-16 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-get-response-header): Delete an
adjusting code bacause `with-current-buffer' that can accept both
a buffer and a buffer name.
(twittering-get-response-body): Likewise.
2010-01-16 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-format-status): fix incorrect
destructive modification of the replacement table for the
specifier "%FILL{...}".
2010-01-16 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-edit-setup-help): use 0-witdh
overlay to display help.
(twittering-edit-mode, twittering-edit-post-status): do not use
newline chars for help-overlay anymore.
(twittering-edit-post-status): probihit posting over 140 chars
tweets.
2010-01-15 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el: changed URL
2010-01-15 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-edit-buffer): New defvar.
(twittering-update-status-from-pop-up-buffer): Use it.
* twittering-mode.el (twittering-buffer-active-p): New defun.
(twittering-http-get-default-sentinel): Call it to show a
non-critical message on minibuffer only when current buffer is
twittering-mode related buffer.
(twittering-http-post-default-sentinel): Likewise.
(twittering-get-response-body): Likewise.
* twittering-mode.el (twittering-buffer-active-p): Delete an
unnecessary code which is added for keep a backward compatibility.
2010-01-15 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-next-status-head): add a
function finding the next head of status with `id' property. This
replaces `twittering-get-next-username-face-pos'.
(twittering-goto-next-status): use
`twittering-get-next-status-head' instead of
`twittering-get-next-username-face-pos'.
(twittering-goto-next-status-of-user): likewise.
* twittering-mode.el (twittering-get-previous-status-head): add a
function finding the previous head of status with `id'
property. This replaces
`twittering-get-previous-username-face-pos'.
(twittering-goto-previous-status): use
`twittering-get-previous-status-head' instead of
`twittering-get-previous-username-face-pos'.
(twittering-goto-previous-status-of-user): likewise.
2010-01-15 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-mode-identity): add. Identify
'twittering-mode.el' by $Id$ tag.
2010-01-14 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-remove-duplicates): check
availability of `delete-dups' by `fboundp' instead of
`emacs-major-version'.
2010-01-14 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-format-status): add docstring
2010-01-15 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-update-status-function): add
(twittering-update-status-from-pop-up-buffer): renamed from
twittering-edit-status
(twittering-update-status-interactive, twittering-enter)
(twittering-organic-retweet, twittering-direct-message): use
twittering-update-status-function
(twittering-mode-map): bind 'u' to
twittering-update-status-interactive
2010-01-13 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-format-string): fix the search of
the key string following the prefix from a string including
newlines.
* twittering-mode.el (twittering-format-status): remove a
newline as a separator of tweets.
(twittering-render-timeline): insert a newline as a separator of
tweets.
* twittering-mode.el (twittering-format-status): add new format
specifier "%T", which is converted to the raw text.
* twittering-mode.el (twittering-format-status): add new format
specifier "%FILL{...}", which applies `fill-region-as-paragraph'
to the strings in braces.
* twittering-mode.el (twittering-status-format): use '%FILL{...}'
and '%T' for the default value instead of '%t'.
2010-01-12 Yuto Hayamizu <y.hayamizu@gmail.com>
* test/run-test.sh (exit_status): add 'emacs' command to test
target emacsen
2010-01-12 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-format-status): fill the text
with strings following "%t".
2010-01-12 Yuto Hayamizu <y.hayamizu@gmail.com>
* test/test-twittering-mode.el (test-icon-mode): removed use of
twittering-tmp-dir
2010-01-12 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-start-http-session): Call
`twittering-find-curl-program' only when `twittering-use-ssl' is
non-nil.
* twittering-mode.el (twittering-wget-buffer): Delete function.
(twittering-wget-buffer): Delete variable.
2010-01-11 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-convert-program): initialize
without confirming whether `convert' comes from ImageMagick.
(twittering-mode-init-variables): confirm whether the found
`convert' is a part of ImageMagick or GraphicsMagick if
`twittering-use-convert' is non-nil. If the program does not come
from ImageMagick or GraphicsMagick, `twittering-use-convert' is
changed into nil.
2010-01-10 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-convert-program): checks whether
'convert' is a part of ImageMagick. Windows XP has 'convert.exe'
in WINDOWS/system32, which is a partition converter.
(twittering-use-convert): use the value of
twittering-convert-program
2010-01-11 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-status-format): modify the
meaning of the specifier "%t" to remove implicit filling as a
paragraph.
(twittering-render-timeline): remove implicit filling a text as a
paragraph. In addition, a newline as a delimiter is added by
`twittering-format-status'.
(twittering-format-status): with "%t", fill a text as a paragraph.
This function adds a newline at the end of status instead of
`twittering-render-timeline'. Then, the newline as a delimiter
also has the same text properties as the body of the tweet.
2010-01-10 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-remove-duplicates): add for
portability.
(twittering-completing-read): add a modified version of
`completing-read' that can accept candidates as a list of a string
on Emacs21.
(twittering-set-current-hashtag): use `twittering-completing-read'
instead of `completing-read'.
(twittering-read-username-with-completion): likewise.
(twittering-read-list-name): likewise.
(twittering-read-timeline-spec-with-completion): likewise.
2010-01-10 Yuto Hayamizu <y.hayamizu@gmail.com>
* test/test-twittering-mode.el (test-status-not-blank-p): add a
testcase reproducing the bug of twittering-status-not-blank-p.
* twittering-mode.el (twittering-use-native-retweet): renamed from
twittering-use-native-retweets
(twittering-status-not-blank-p): bug fix: return nil if a status
is ended by '@foo'.
* twittering-mode.el (twittering-edit-post-status): add trailing
newlines to new history element because help-overlay need it.
* twittering-mode.el (twittering-make-display-spec-for-icon):
returns nil if the type of the image is not supported.
2010-01-09 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-status-to-status-datum): Change
retweet related variables to local scope from global one.
* twittering-mode.el (twittering-extract-timeline-spec): Change
syntax of error message to fit the GNU Emacs Lisp convention.
(twittering-timeline-spec-to-host-method): Likewise.
(twittering-get-and-render-timeline): Likewise.
* twittering-mode.el (twittering-extract-timeline-spec): Remove an
unnecessary call to `format' because all arguments of `error' pass
to `format'.
(twittering-timeline-spec-to-host-method): Likewise.
(twittering-get-and-render-timeline): Likewise.
* twittering-mode.el (twittering-read-username-with-completion):
Convert a list of username strings to an alist before calling
`completing-read' to work on Emacs21; same as
`twittering-read-timeline-spec-with-completion'.
* twittering-mode.el (twittering-icon-path): Delete function.
2010-01-09 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-edit-mode): setup
twittering-warning-overlay and after-change-functions
(twittering-edit-length-check): add. check length and set warning
overlay if the length exceeds 140 chars.
(twittering-edit-mode-map): fix keymap
(twittering-edit-extract-status): add. extract status from pop-up
buffer by removing trailing whitespace chars.
(twittering-edit-post-status): use edit-extract-status.
(twittering-edit-status): takes reply-to-id as a second argument
(twittering-enter, twittering-organic-retweet)
(twittering-direct-message, twittering-reply-to-user): use
twittering-edit-status
(twittering-edit-post-status): bug fix.
2010-01-09 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-http-get-list-index-sentinel):
`save-excursion' had no effect because of the following
`set-buffer'. This is fixed so that `save-excursion' saves the
state of `temp-buffer'.
(twittering-get-response-header): Likewise.
(twittering-get-response-body): Likewise.
(twittering-tinyurl-get): Likewise.
(twittering-tinyurl-get): `buffer' are killed even if
`search-forward-regexp' fails.
2010-01-09 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-edit-setup-help): add to setup
help overlay in pop-up buffer
(twittering-edit-next-history, twittering-edit-previous-history):
use twittering-edit-setup-help
2010-01-08 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-percent-encode): bug fix:
'\n','\r','\t' were not encoded correctly.
2010-01-08 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-use-show-minibuffer-length): Add
suggestion into a docstring.
2010-01-08 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-status-not-blank-p): bug fix:
always return nil with strings with trailing newline.
(twittering-edit-next-history): add.
(twittering-edit-previous-history, twittering-edit-history): add
history for pop-up buffer
(twittering-edit-mode-map): defined key for next/previous-history
(twittering-edit-mode): initialize local variables for history
(twittering-edit-mode): setup help string overlay
(twittering-edit-post-status): don't close buffer if tweet is
empty
2010-01-08 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-image-type): Try to detect image
type with `image-type-from-data' at first.
(twittering-retrieve-image): Do not invoke `convert' if Emacs
supports the image type and resize is not required.
2010-01-08 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-tmp-dir): delete
(twittering-icon-mode): don't make temp dir
(twittering-image-data-table): add. hash table where image data
are stored. key:(<url> . <size>),value:(<type> . <binary-data>)
(twittering-use-wget): delete
(twittering-image-type): re-implemented. Now it just returns a
type of a given image.
(twittering-make-display-spec-for-icon): Now it receives image URL
as an argument.
(twittering-retrieve-image): Now it receives image URL as an
argument.
(twittering-url-copy-file-async): delete
(twittering-retrieve-image-without-wget): delete
(twittering-retrieve-image-with-wget): delete
(twittering-retrieve-image): changed default image type from png
to xpm
(twittering-image-type): bug fix in the case of bitmap
(twittering-retrieve-image): handle error of determining image
type.
(twittering-image-type): let case-fold-search is t.
* url-emacs21/*: add url library for emacs21
2010-01-07 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-url-reserved-p): bug fix: some
reserved characters considered unreserved. Thanks to IMAI
Toshiyuki
(twittering-cert-file): add
(twittering-ensure-ca-cert): generate temporary file for CA certificate
2010-01-06 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-http-get-default-sentinel): Move
`debug-printf' to outside of `unwind-protect' because we expect
that mostly code of this function should be executed by way of
BODYFORM of `unwind-protect', not UNWINDFORM.
(twittering-http-post-default-sentinel): Likewise.
* twittering-mode.el (twittering-http-get-list-index-sentinel): Add
`debug-printf' same as `twittering-http-get-default-sentinel'.
* twittering-mode.el (twittering-status-not-blank-p): Fix and
modify a regexp pattern.
2010-01-06 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el
(twittering-read-timeline-spec-with-completion): return nil for
an invalid timeline spec string. The function is unified with
`twittering-read-timeline-spec-string-with-completion'. If the
argument `as-string' is non-nil, it returns a spec string.
(twittering-update-mode-line): the delimiter followed by a
timeline spec string on mode-line is changed to a whitespace.
(twittering-timeline-spec-bookmark): new variable for timeline
spec bookmark.
(twittering-extract-timeline-spec): support timeline spec
bookmark.
(twittering-equal-string-as-timeline): add.
(twittering-get-and-render-timeline): accept a timeline spec
string as well as a S-expression.
`twittering-last-requested-timeline-spec' will be updated even if
the requested spec essentially equals to the current one.
(twittering-initial-timeline-spec): replaced by
`twittering-initial-timeline-spec-string'.
(twittering-last-requested-timeline-spec): replaced by
`twittering-last-requested-timeline-spec-string'.
(twittering-last-retrieved-timeline-spec): replaced by
`twittering-last-retrieved-timeline-spec-string'.
(twittering-initial-timeline-spec-string): added to replace
`twittering-initial-timeline-spec'.
(twittering-last-requested-timeline-spec-string): added to replace
`twittering-last-requested-timeline-spec'.
(twittering-last-retrieved-timeline-spec-string): added to replace
`twittering-last-retrieved-timeline-spec'.
(twittering-last-timeline-spec-string): removed.
(twittering-visit-timeline): call
`twittering-get-and-render-timeline' with a timeline spec string
just as it has been input by the user.
(twittering-extract-timeline-spec): `bookmark' is renamed `alias'.
(twittering-timeline-spec-alias): this variable replaces
`twittering-timeline-spec-bookmark'.
* test/test-twittering-mode.el (timeline-spec): add tests of
timeline spec normalization.
2010-01-04 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-get-response-header): Change
syntax of error message to fit the GNU Emacs Lisp convention.
(twittering-get-response-body): Likewise.
(twittering-tinyurl-get): Likewise.
* twittering-mode.el (twittering-start-http-session): Change
syntax of question message to fit the GNU Emacs Lisp convention.
* twittering-mode.el (twittering-user-agent-default-function): Use
`format' instead of `concat' to easy understand.
(twittering-sign-string-default-function): Likewise.
* twittering-mode.el (twittering-start-http-session): Remove an
unnecessary call to `format' because all arguments of `error' pass
to `format'.
(twittering-make-http-request): Likewise.
(twittering-url-copy-file-async): Likewise.
2010-01-04 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-last-requested-timeline-spec):
new variable storing the last requested timeline spec.
(twittering-last-retrieved-timeline-spec): new variable storing
the last successfully retrieved timeline spec.
(twittering-last-timeline-retrieved): removed.
(twittering-last-host): removed.
(twittering-last-method): removed.
(twittering-convert-last-timeline-retrieved): removed.
(twittering-last-timeline-spec): removed.
(twittering-get-twits): do not update the information of the last
request.
(twittering-get-and-render-timeline): update the information of
the last request instead of `twittering-get-twits'.
(twittering-current-timeline): replace `twittering-get-twits' by
`twittering-get-and-render-timeline'.
(twittering-erase-old-statuses): replace `twittering-get-twits' by
`twittering-get-and-render-timeline'.
(twittering-initial-timeline-spec): new variable.
2010-01-03 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el, test/test-twittering-mode.el: rebase the
`timeline-spec' branch. The new timeline spec based on
S-expression is introduced.
* twittering-mode.el (twittering-timeline-spec-to-string): add.
(twittering-extract-timeline-spec): add.
(twittering-string-to-timeline-spec): add.
(twittering-timeline-spec-singlep): add.
(twittering-timeline-spec-to-host-method): add.
(twittering-host-method-to-timeline-spec): add.
(twittering-last-timeline-spec): add.
(twittering-last-timeline-spec-string)
(twittering-add-timeline-history): modified for new timeline spec.
(twittering-update-mode-line): modified for new timeline spec.
(twittering-get-twits-with-timeline-spec): modified for new
timeline spec.
(twittering-read-timeline-spec-string-with-completion): add.
(twittering-read-timeline-spec-with-completion): modified for new
timeline spec.
(twittering-get-timeline, twittering-get-list): replaced with
`twittering-get-twits-with-timeline-spec'.
(twittering-get-and-render-timeline): renamed from
`twittering-get-twits-with-timeline-spec'.
* test/test-twittering-mode.el (timeline-spec): add tests for new
timeline spec.
2010-01-03 Michael D. Ivey <ivey@gweezlebur.com>
* twittering-mode.el (twittering-retweet): Add support for native
retweets
2010-01-03 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode.el (twittering-tinyurl-get): more descriptive
error message
(twittering-url-copy-file-async): more descriptive error message
2010-01-02 Alberto Garcia <agarcia@igalia.com>
* twittering-mode.el (twittering-start-http-ssl-session):
Set noninteractive using lexical-let so the HTTP sentinel can
receive its value and `twittering-new-tweets-hook' works
correctly.
2010-01-02 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-use-show-minibuffer-length): New
defvar to enable/disable a function which is show the number of
charactors in minibuffer.
(twittering-update-status-from-minibuffer): Refer it to add/remove
hooks.
2009-12-30 Yuto Hayamizu <y.hayamizu@gmail.com>
* test/server.rb: add. Twitter API and Proxy mock server
* twittering-mode.el (twittering-get-response-header)
(twittering-get-response-body): Raise an error on broken
responses.
2009-12-30 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-get-response-header): On failure,
the function returns an empty string instead of the whole contents
of the buffer.
(twittering-get-response-body): When the function fails to find
the tail of header, it returns nil without trying to parse a
region.
(twittering-find-proxy): add new function for
finding proxy.
(twittering-setup-proxy): add new function for configuring
`twittering-proxy-server' and `twittering-proxy-port' if they have
not been configured yet.
(twittering-mode-init-variables): invokes
`twittering-setup-proxy'.
2009-12-30 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-get-response-header): Correct a
reference to an unbound object. This problem was found by highmt.
2009-12-30 Yuto Hayamizu <y.hayamizu@gmail.com>
* test/el-test-runner.el (with-network): add macro. body of
with-network is executed only when 'NETWORK' env var is set.
* twittering-mode.el (twittering-image-type): No temporary files
for resing images. Use standard in/out and temporary buffers
instead.
(twittering-convert-fix-size): set 48px as the default size of
icon images.
2009-12-30 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el (twittering-image-type): Don't generate
redundant temporary files. The image format is specified by
the command line instead of a file extension.
2009-12-30 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-image-type): Don't set a third
argument of `make-temp-file' to work on Emacs21.
2009-12-29 Satoshi Yatagawa <yata_github@y.hauN.org>
* twittering-mode.el (twittering-get-response-header): Add an
optional third argument for `search-forward-regexp'.
2009-12-29 Yuto Hayamizu <y.hayamizu@gmail.com>
* twittering-mode 0.9.0 release
* twittering-mode.el (twittering-start-http-session): check if
curl can use https or not.
(twittering-get-response-body): bug fix: goto the beginning of
buffer before search-forward. 'xml-parse-region' doesn't return