-
Notifications
You must be signed in to change notification settings - Fork 92
/
ChangeLog
7413 lines (6093 loc) · 310 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
2018-11-21 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix a typo that causes an error when using
another version Emacs. Thanks to afukumoto, who reports the
problem.
(twittering-load-user-id-db): fix a typo. Thanks
2018-09-17 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Add a variable for expiration of user IDs.
(twittering-user-id-db-expiration-date): new variable.
(twittering-register-user-id): attach a timestamp as a property
and update each property if an already registered user ID is
given.
(twittering-save-user-id-db): save only user IDs updated recently
if `twittering-user-id-db-expiration-date' is non-nil.
* twittering-mode.el: Add a history variable of user screen names.
(twittering-user-screen-name-history): new variable.
(twittering-user-screen-name-history-length): new variable.
(twittering-registered-user-screen-names): return only screen
names of users with recently updated properties.
(twittering-register-user-id): update the new variable
`(twittering-user-screen-name-history'.
2018-08-18 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix the direct message events
timeline. Each event has properties related to a recipient and a
source app.
(twittering-json-object-to-statuses-on-direct-message-events):
convert recipient information and source app information.
* twittering-mode.el: Add the database to find user information
from its screen name.
(twittering-user-screen-name-db): new variable.
(twittering-registered-user-screen-names): use the new variable
`twittering-user-screen-name-db'.
(twittering-find-user-screen-name): new function.
(twittering-register-user-id): also update the new variable
`twittering-user-screen-name-db'.
* twittering-mode.el: Send a direct message with a new API.
(twittering-http-post): add a new argument `post-body'.
(twittering-call-api-with-account): change the arguments for the
command `send-direct-message', which includes a user ID of the
recipient instead of a user screen name.
(twittering-call-api-with-account-in-api1.0): likewise.
(twittering-call-api-with-account-in-api1.1): invoke the new API
"POST direct_messages/events/new" for the command
`send-direct-message'.
(twittering-edit-post-status): call the command
`send-direct-message' with new arguments.
(twittering-update-status-from-minibuffer): likewise.
2018-08-17 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Collect user IDs and corresponding
names. They are used as candidates when completing a user screen
name. They are saved in "~/.twittering-mode-user-info.gz" in
default and they will be automatically loaded when initializing
global variables.
(twittering-add-statuses-to-timeline-data): register user IDs
found in new statuses.
(twittering-user-id-db): new variable.
(twittering-user-id-db-file): new customizable variable.
(twittering-registered-user-screen-names): new function.
(twittering-find-user): new function.
(twittering-register-user-id): new function.
(twittering-register-user-id-from-status): new function.
(twittering-save-user-id-db): new function.
(twittering-load-user-id-db): new function.
(twittering-register-account-info): register the user ID and the
screen name in the given account information.
(twittering-initialize-global-variables-if-necessary): load user
IDs and add the function `twittering-save-user-id-db' to the
`kill-emacs-hook' hook.
(twittering-read-username-with-completion): use registered user
IDs as candidates for completion.
(twittering-read-timeline-spec-with-completion): likewise.
* twittering-mode.el: Add a function to convert a timestamp string
representing a UNIX epoch time into a Emacs time object.
(twittering-epoch-timestamp-to-time): new function.
(twittering-snowflake-epoch-time): use the new function.
* twittering-mode.el: Support a new timeline spec
":direct_message_events".
(twittering-http-get-default-sentinel): use a new function for
reading direct message events timeline.
(twittering-timeline-spec-to-string): add a new timeline spec
":direct_message_events".
(twittering-extract-timeline-spec): likewise.
(twittering-timeline-spec-primary-p): likewise.
(twittering-timeline-spec-is-direct-message-events-p): new
function.
(twittering-call-api-with-account-in-api1.1): likewise.
(twittering-read-timeline-spec-with-completion): likewise.
(twittering-enter): likewise.
(twittering-extract-common-element-from-json): add special
treatment for a status without a human readable timestamp.
(twittering-json-object-to-statuses-on-direct-message-events): new
function.
2018-07-29 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Use a pipe, not a pty to communicate with a
process. This is required for a program that changes its behavior
according to output device (pipe or pty) such as curl later than
7.61.0.
(twittering-start-process-with-sentinel): bind
`process-connection-type' to nil in order to ensure that the new
process will communicate with Emacs via a pipe instead of a pty.
* twittering-mode.el: Check a decrypted result before converting
its coding-system. This is necessary because the conversion will
cause an exception when the result is nil due to a wrong
passphrase.
(twittering-read-from-encrypted-file): check the value of
`decrypted-result' before converting its coding-system.
2018-05-07 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix functions for decryption and encryption
according to the latest EasyPG. The functions for decrypting or
encrypting private information are modified with reference to the
EasyPG functions `epa-decrypt-region' and `epa-encrypt-region'.
(twittering-read-from-encrypted-file): set the pinentry-mode
option of the context and display verification result if
possible.
(twittering-write-and-encrypt): set the pinentry-mode option to
the context and fix the codes for configuring the armor and the
textmode option so that they work with the latest EasyPG.
* twittering-mode.el: Fix the arguments of curl for the versions
later than 7.55.0. Unless giving the arguments "--output -", there
is possibility that those versions output data to the standard
output as a text. Downloading an image may be failed due to such a
text output. To avoid such failure, the arguments "--output -" are
added by this commit.
(twittering-send-http-request-curl): add "--output" and "-" as
arguments of curl.
2018-01-07 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix the position of the warning overlay on
the edit buffer.
(twittering-get-weighted-length-info): new function.
(twittering-get-weighted-length): reimplemented with the new
function `twittering-get-weighted-length'.
(twittering-get-effective-length-info): new function.
(twittering-effective-length): reimplemented with the new function
`twittering-get-effective-length-info'.
(twittering-edit-length-check): put the warning overlay to the
appropriate position by using the new function
`twittering-get-effective-length-info'.
* test/test-twittering-mode.el: Add tests for calculating
effective length of a string as a tweet.
2018-01-03 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix the calculation of a weighted tweet
length where the tweet includes a URL.
(twittering-effective-length): fix the calculation of a weighted
tweet length where the tweet includes a URL.
2017-12-31 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Import the patch by Eivind Fonn.
(twittering-stop): set `twittering-timer' to nil explicitly.
* twittering-mode.el: Import the patch by Taichi KAWABATA.
(twittering-initial-timeline-spec-string): add variable number of
strings as a choice.
* twittering-mode.el: Import the patch by Ignacio Torres Masdeu.
(twittering-capable-of-encryption-p): search "gpg2" as well as
"gpg".
* LAST-VERSION, NEWS, NEWS.ja, VERSION, doc/web/index.text,
doc/web/ja.po: release 3.1.0.
* twittering-mode.el: Allow full text direct messages.
(twittering-call-api-with-account-in-api1.1): send and receive
full text direct messages.
* twittering-mode.el: Add a function to display user information
and bind "=" to it.
(twittering-mode-map): bind "=" to the function
`twittering-display-user-information'.
(twittering-display-user-information): new function.
* twittering-mode.el: Support a tweet longer than 140 characters.
(twittering-get-content-subtype-symbol-from-header-info): add
"plain" as a subtype.
(twittering-text-configuration-default): new constant.
(twittering-text-configuration-url): new constant.
(twittering-text-configuration): new variable.
(twittering-text-configuration-queried): new variable.
(twittering-prepare-text-configuration): new function.
(twittering-get-service-configuration): add support for text
configuration.
(twittering-update-service-configuration): likewise.
(twittering-update-text-configuration-sentinel): new function.
(twittering-update-text-configuration-clean-up-sentinel): new
function.
(twittering-get-maximum-message-length): refer to the current text
configuration instead of a hard-coded constant.
(twittering-get-weighted-length): new function.
(twittering-effective-length): calculate weighted tweet length
instead of simply counting number of characters.
2016-09-22 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Retrieve tweets in extended mode.
(twittering-call-api-with-account-in-api1.1): add a parameter
`tweet_mode=extended' when calling an API which returns tweets.
(twittering-extract-common-element-from-json): use `full_text'
field if the given JSON object lacks `text' field.
2016-07-11 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Render retweets posted by yourself.
(twittering-render-timeline): render a retweet if it is posted by
the current account.
* twittering-mode.el: Post a reply without confirmation even if
the reply does not include mentions.
(twittering-edit-post-status): remove confirmation.
2016-07-10 Tadashi MATSUO <[email protected]>
* update-cert.sh: Update the URL of the CA certificates.
* twittering-mode.el: Update the embedded CA certificates with the
latest https://curl.haxx.se/ca/cacert.pem .
(twittering-ca-cert-list): update the CA certificates.
* update-cert.sh: Remove 'equifax', which is no longer included in
the CA certificates.
* twittering-mode.el: Add the CA certificate of GeoTrust Global CA
as one of embedded CA certificates. The added certificate is used
for a HTTPS connection for Google URL Shortener, `goo.gl'.
(twittering-ca-cert-list): update CA certificates.
* update-cert.sh: Retrieve CA certificates of GeoTrust Global CA.
2016-07-03 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Import the patches by nabeo. The regular
expressions of HTTP/2 responses are updated so that it works well
with the latest version of curl.
(twittering-make-header-info-alist): update the regexp.
(twittering-pre-process-buffer-curl): likewise.
(twittering-oauth-get-response-alist): likewise.
* twittering-mode.el: Fix regular expressions including a literal
period ".".
(twittering-make-header-info-alist): fix a regexp.
(twittering-pre-process-buffer-curl): likewise.
(twittering-oauth-get-response-alist): likewise.
* twittering-mode.el: Accept HTTP responses generated by old
versions of curl. The regular expressions of HTTP responses are
updated so that they match headers starting with "HTTP/2.0".
(twittering-make-header-info-alist): update the regexp.
(twittering-pre-process-buffer-curl): likewise.
(twittering-oauth-get-response-alist): likewise.
2016-06-17 Tadashi MATSUO <[email protected]>
* twittering-mode.el: You can retweet your own tweets.
(twittering-native-retweet): retweet the given tweet without
regard to its author.
2016-03-14 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Render an ampersand as it is posted. An
ampersand "&" in a posted tweet is encoded to "&" in the
corresponding JSON object. The current version of twittering-mode
decodes it to "&" on rendering the tweet.
(twittering-make-gap-list): support a gap generated by an
ampersand in a text.
(twittering-decode-html-entities): decode a character entity
reference for the ampersand "&".
(twittering-extract-common-element-from-json): decode character
entity references in a text of the given tweet.
* twittering-mode.el: Fix decoding of a text in XML objects.
(twittering-normalize-raw-status): decode character entity
references in a text.
2016-03-13 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Initialize the mode-line on generating the
edit buffer.
(twittering-update-status-from-pop-up-buffer): call the function
`twittering-edit-length-check' to initialize the mode-line.
* twittering-mode.el: Update the default value of the service
configuration.
(twittering-service-configuration-default): update the default
value.
* twittering-mode.el: Update the maximum length of a direct
message.
(twittering-service-configuration-default): add the default value
of the maximum length of a direct message.
(twittering-update-service-configuration-sentinel): retrieve the
value of `dm_text_character_limit'.
(twittering-get-maximum-message-length): new function.
(twittering-edit-length-check): retrieve the maximum length by the
new function `twittering-get-maximum-message-length'.
(twittering-edit-post-status): likewise.
(twittering-update-status-from-minibuffer): likewise.
* twittering-mode.el: Add a new format specifier "%QT{...}" to
render a quoted tweet.
(twittering-status-format): update the docstring.
(twittering-json-object-to-a-status-base): add a quoted tweet as
`quoted-status' to an alist if the given json object has a quoted
tweet.
(twittering-generate-formater-for-first-spec): add new format
specifiers "%QT{...}".
* twittering-mode.el: Update the format for rendering a tweet. You
can restore it to the previous version by customizing the variable
`twittering-status-format' as
"%i %s, %@:\n%FILL[ ]{%T // from %f%L%r%R}\n ".
(twittering-status-format): update the format.
2016-02-07 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Import the patches by WJ Liu (multiSnow)
originally commited at 2015-03-15. The contribution follows:
binding "C-cC-n" to visit the mention timeline, replacing literal
strings of the Twitter host with a reference to a variable, and
using HTTP/2 if available.
(twittering-mentions-timeline): new function.
(twittering-mode-map): bind "C-cC-n" to the function
`twittering-mentions-timeline'.
(twittering-keybind-message): add a reference to
`twittering-mentions-timeline'.
(twittering-call-api-with-account-in-api1.1): replace a literal
string "api.twitter.com" with the global variable
`twittering-api-host'.
(twittering-make-header-info-alist): update a regexp so that it
also matches with a response in HTTP/2.
(twittering-pre-process-buffer-curl): likewise.
(twittering-oauth-get-response-alist): likewise.
(twittering-start-http-session-curl-http2-p): new function that
returns non-nil if HTTP/2 is available via the curl program.
(twittering-send-http-request-curl): add "--http2" option to
`curl-args' if HTTP/2 is available.
2015-09-07 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix a help message of a menu item.
(twittering-mode-menu): fix the help message for the menu item
`twittering-other-user-timeline'.
* twittering-mode.el: Update the embedded CA certificates with the
latest http://curl.haxx.se/ca/cacert.pem .
(twittering-ca-cert-list): update the CA certificates.
* twittering-mode.el: Add the CA certificates issued by DigiCert
as embedded CA certificates according to the update of the server
certificate of Twitter.
(twittering-ca-cert-list): update the CA certificates.
* update-cert.sh: Retrieve CA certificates issued by DigiCert.
2015-03-15 David A. Shamma <[email protected]>
* twittering-mode.el: Add a pretty menubar menu. The keywords
`:link' and `:prefix' are also added to the definition of the
customization group of twittering-mode.
(twittering-mode-menu): new menu.
2015-02-01 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix docstrings.
2015-01-31 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix indentation and tabs in docstrings.
2015-01-31 Xavier Maillard <[email protected]>
* twittering-mode.el: Install customize as much as
possible. Change many docstrings. Try to silent (a bit) checkdoc
checker tool. Update credits/copyrights.
2015-01-31 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Update copyright.
2015-01-05 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Add new format specifiers "%FIELD" and
"%FIELD-IF-NONZERO" to render a field of tweet.
(twittering-status-format): update docstring.
(twittering-generate-formater-for-first-spec): add new format
specifiers "%FIELD[...]{...}" and "%FIELD-IF-NONZERO[...]{...}".
2015-01-04 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Move the footer line to the very end of the
file. The previous position were inconsistent with the conventions
of headers for Emacs libraries.
2014-12-31 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Extract media entities from a JSON object.
(twittering-extract-common-element-from-json): extract media
entities.
* twittering-mode.el: Hide tweets matched with one of filter
patterns. Filter patterns can be defined with the new variable
`twittering-filter-alist'.
(twittering-filter-alist): new variable for specifying filters.
(twittering-generate-composite-timeline): exclude tweets matched
with one of filter patterns.
(twittering-get-filter-list-for-timeline-spec-string): new
function that returns filter pattern list for the given timeline.
(twittering-get-filter-list-for-timeline-spec): likewise.
(twittering-match-pattern): new function that returns non-nil if
the given tweet matches with the given pattern.
(twittering-match-pattern-list): new function that returns non-nil
if the given tweet matches with one of the given patterns.
(twittering-current-timeline-data): exclude tweets matched with
one of filter patterns.
* twittering-mode.el: Add new commands `twittering-mute' and
`twittering-unmute'.
(twittering-call-api-with-account): add new APIs mute/unmute to
the docstring.
(twittering-call-api-with-account-in-api1.1): implement new APIs
mute/unmute.
(twittering-mute): new command.
(twittering-unmute): new command.
* twittering-mode.el: Add the CA certificates issued by Equifax as
embedded CA certificates. The added certificates are used for a
HTTPS connection for Google URL Shortener, `goo.gl'.
(twittering-ca-cert-list): update CA certificates.
* update-cert.sh: Retrieve CA certificates issued by Equifax in
addition to those issued by Verisign.
* twittering-mode.el: Update embedded CA certificates.
(twittering-ca-cert-list): update CA certificates.
* twittering-mode.el: The timeline spec string "@" is equivalent
to ":mentions" instead of ":replies". "@" has been interpreted as
a shorten string of ":mentions", but
`twittering-timeline-spec-to-string' returned ":mentions" as the
shorten version of ":mentions".
(twittering-timeline-spec-to-string): interpret the timeline spec
string "@" as ":mentions" instead of ":replies".
* test/test-twittering-mode.el: The tests for timeline spec
strings related to "@" and ":mentions" are modified.
2014-12-15 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Replace `sit-for' with `sleep-for' for
avoiding an infinite loop. On rare occasions, `sit-for' may return
immediately even when no input is available (See the document of
`input-pending-p'). Since Emacs does not update status of an
asynchronous process in those cases, a loop which uses `sit-for'
and waits for a finish of a process will wait infinitely. To avoid
the situation, invocations of `sit-for' are replaced with those of
`sleep-for'. Thanks to Ikumi Keita, who investigates the problem
and writes this patch.
(twittering-wait-while): use `sleep-for' instead of `sit-for'.
(twittering-oauth-get-token-alist-url): likewise.
2014-04-21 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Normalize text properties of a tweet with
the Normalization Form Canonical Composition (NFC) defined in
Unicode Standard Annex #15.
(twittering-normalize-string): new function.
(twittering-make-gap-list): takes account of the normalization of
a tweet text with NFC.
(twittering-extract-common-element-from-json): normalize a tweet
text with NFC.
(twittering-json-object-to-a-status-base): normalize a source,
name, location and description of a tweet with NFC.
2014-03-31 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Remove 'flet'.
(twittering-normalize-raw-status): replace 'flet' with a
combination of 'let' and 'lambda'.
* twittering-mode.el: Add marks and a script for updating CA
certificates automatically.
(twittering-ca-cert-list): add marks for updating CA certificates
automatically.
* update-cert.sh: Add a script to update CA certificates
automatically. This script retrieves certificates distributed on
the site of cURL.
* cert/*: Removed.
* twittering-mode.el: Update embedded CA certificates.
(twittering-ca-cert-list): update CA certificates.
* twittering-mode.el: Replace images that had been imported from
other softwares.
(twittering-ssl-indicator-image): replaced with an original
image.
(twittering-active-indicator-image): likewise.
(twittering-inactive-indicator-image): likewise.
2013-12-12 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Embed root CA certificates to follow the
update of the server. The all root CA certificate available at
https://www.symantec.com/page.jsp?id=roots are embedded.
(twittering-ca-cert-list): add root CA certificates.
* cert/collect.sh: Add a script to collect and integrate root CA
certificates.
2013-12-09 Tadashi MATSUO <[email protected]>
* doc/web/index.text: Fix the URL for the mailing list.
* twittering-mode.el: Retrieve the most recent tweets for search
timelines instead of including popular tweets.
(twittering-call-api-with-account-in-api1.1): use `recent' as the
`result_type' of search API.
* twittering-mode.el: Include `retweet-count' and `favorite-count'
in an alist representing a tweet.
(twittering-extract-common-element-from-json): include
`retweet-count' and `favorite-count' in an alist representing a
tweet.
* twittering-mode.el: Fix a URL for a native retweet. It was
generated from a screen-name of the retweeting user and an ID of
the retweeted original tweet.
(twittering-get-status-url-from-alist): explicitly use the
retweeted original tweet when making a URL for a native retweet.
(twittering-push-uri-onto-kill-ring): simply send a tweet alist
itself to the function `twittering-get-status-url-from-alist'.
* twittering-mode.el: Post a native retweet of another native
retweet if a user requests it. Previously, twittering-mode posted
a native retweet of an original tweet that had been retweeted. The
behavior is changed so that notification to the earlier
retweeting user from Twitter works well. Twitter sends a
notification to a user when his or her retweet is retweeted by
other users.
(twittering-native-retweet): post a retweet of a native retweet
instead of posting a native retweet of the original tweet when a
user requests to post a native retweet of another native retweet.
* twittering-mode.el: Embed a root CA certificate with 2048 bits
key to follow the update of the server. The root CA certificate
`VeriSign Class 3 Public Primary CA - G3' is also embedded, which
is used for verifying the server `api.twitter.com'.
(twittering-ca-cert-list): add the certificate `VeriSign Class 3
Public Primary CA - G3'.
2013-12-09 tomykaira <[email protected]>
* twittering-mode.el: Fix arguments of `twittering-http-post'.
(twittering-call-api-with-account-in-api1.0): fix arguments of
`twittering-http-post'.
(twittering-call-api-with-account-in-api1.1): likewise.
2013-06-16 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix the bug that retrieved tweets may not be
rendered. This bug is caused by the previous commit. Thanks to
irie who reported the problem.
(twittering-add-statuses-to-timeline-data): call
`twittering-render-timeline' correctly.
2013-06-15 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix the bug that a hook may be invoked twice
for the same timeline. Thanks to irie who discoverd the problem.
(twittering-add-statuses-to-timeline-data): do not invoke a hook
twice for the timeline spec given as `spec'.
2013-05-07 Tadashi MATSUO <[email protected]>
* LAST-VERSION, NEWS, NEWS.ja, VERSION, doc/web/index.text,
doc/web/ja.po, doc/web/publish.rb, doc/web/screenshot.text:
release 3.0.0.
2013-04-22 tomykaira <[email protected]>
* twittering-mode.el: Check effective length of tweet when posting
from minibuffer.
(twittering-update-status-from-minibuffer): check an effective
length of a tweet instead of a literal length.
2013-04-22 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Suppress an error on a sentinel. Previously,
an error might be raised from a sentinel when a timeline of
non-existent user was requested. A sentinel for such a request
tries to remove the timeline spec string corresponding to
non-existent user from the history. In the process, conversion
from an invalid timeline spec string had caused an error.
(twittering-string-to-timeline-spec): add an optional argument
NOERROR. If NOERROR is non-nil, the function does not raise an
error even if SPEC-STR is invalid as a timeline spec string.
(twittering-equal-string-as-timeline): do not raise an error even
if either SPEC-STR1 or SPEC-STR2 is invalid as a timeline spec
string.
* twittering-mode.el: Reduce API rate limit information on
mode-line.
(twittering-get-ratelimit-indicator-string): reduce timelines
retrieved by a common API.
2013-03-25 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Decode surrogate pairs in strings returned
by `json-read'. A new advice is added for decoding surrogate
pairs.
A character not in the Basic Multilingual Plane is
represented by a surrogate pair in JSON (RFC4627). This is similar
to CESU-8. But the function `json-read' in `json.el' does not
correctly decode surrogate pairs. `json-read' returns a string
including invalid code points from U+D800 to U+DFFF.
`twittering-json-read' now decodes them by using a new advice.
Thanks to multiSnow who reported the problem.
(twittering-surrogate-pair-regexp): new constant that matches a
surrogate pair in CESU-8.
(twittering-decode-surrogate-pairs-as-cesu-8): new function that
decodes surrogate pairs in a given string similarly to CESU-8.
(json-read-string): new advice for decoding surrogate pairs.
(twittering-json-read): use the new advice for decoding surrogate
pairs in strings returned by `json-read'.
* twittering-mode.el: Add `twittering-assoc-string' for
portability. In Emacs 21, the function `assoc-string' is not
defined. In such case, the reimplemented version is
used. Othewise, `twittering-assoc-string' is an alias of
`assoc-string'.
(twittering-assoc-string): new function for portability.
(twittering-get-server-info): replace `assoc-string' with
`twittering-assoc-string'.
* twittering-mode.el: Display rate-limit information for each API.
(twittering-api-limit-info-alist): new variable for storing
rate-limit information for each API.
(twittering-timeline-spec-to-api-table): new variable for storing
combination of timeline spec and an API for retrieving the
timeline.
(twittering-update-api-table): new function for registering a
timeline spec and an API with the new variable
`twittering-timeline-spec-to-api-table'.
(twittering-make-rate-limit-alist): new function.
(twittering-update-rate-limit-info): new function for updating the
new variables `twittering-api-limit-info-alist' and
`twittering-timeline-spec-to-api-table'.
(twittering-update-server-info): update rate-limit information
with new function.
(twittering-get-server-info): removed.
(twittering-get-ratelimit-alist): new function.
(twittering-get-ratelimit-remaining): use the new function
`twittering-get-ratelimit-alist'.
(twittering-get-ratelimit-limit): likewise.
(twittering-get-ratelimit-indicator-string): new function for
making an indicator string of rate-limit information.
(twittering-mode-line-buffer-identification): make an indicator
string of rate-limit information by the new function
`twittering-get-ratelimit-indicator-string'.
* twittering-mode.el: Replace `delete-dups' with
`twittering-remove-duplicates' for portability.
(twittering-update-active-buffers): replace `delete-dups' with
`twittering-remove-duplicates' for portability.
2013-03-05 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Bind a local variable correctly.
(twittering-call-api-with-account-in-api1.1): correctly bind the
variable `spec-string' used.
* twittering-mode.el: Fix the function parsing timelines related
to direct messages with the Twitter REST API v1.1.
(twittering-http-get-default-sentinel): call the function
`twittering-json-object-to-a-status-on-direct-messages' correctly
when using the Twitter REST API v1.1.
* twittering-mode.el: Correctly add an authentication header for
the command `get-service-configuration' with the Twitter REST API
v1.1.
(twittering-call-api-with-account-in-api1.1): fix a path for the
command `get-service-configuration' and add an authentication
header correctly.
* twittering-mode.el: Confirm that `json.el' and SSL are available
before calling the Twitter REST API v1.1.
(twittering-call-api-with-account): confirm that `json.el' and SSL
are available for the Twitter REST API v1.1.
2013-03-04 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Use the JSON format for retrieving list
information if possible.
(twittering-http-get-list-sentinel-base): support a response in
the JSON format.
(twittering-call-api): use the JSON format for the commands
`get-list-index' and `get-list-subscriptions' if possible.
* twittering-mode.el: Use the JSON format for posting a status if
possible.
(twittering-http-post-destroy-status-sentinel): support a response
in the JSON format.
(twittering-call-api): use the JSON format for the command
`destroy-status' if possible.
* twittering-mode.el: Use the JSON format for retrieving server
configuration if possible.
(twittering-call-api): use the JSON format for the command
`get-service-configuration' if possible.
(twittering-update-service-configuration-sentinel): support a
response in the JSON format.
* twittering-mode.el: Sort newly retrieved tweets before rendering
them.
(twittering-add-statuses-to-timeline-data): sort added tweets
before rendering them. This is necessary because
`twittering-render-timeline' assumes that given tweets are
ordered.
* twittering-mode.el: Update the server information only when
receiving a response from a Twitter-like service. Other types of
responses such as image retrieval and URL shortening do not update
the info.
(twittering-send-http-request): do not invoke
`twittering-update-server-info' directly.
(twittering-http-get): modify the sentinel so that it also invokes
`twittering-update-server-info'.
(twittering-http-post): likewise.
(twittering-update-server-info): receive an alist HEADER-INFO
instead of a string HEADER-STR.
* twittering-mode.el: Add a new function
`twittering-call-api-with-account'.
(twittering-add-application-header-to-http-request): receive an
alist ACCOUNT-INFO for specifying an account.
(twittering-http-get): likewise.
(twittering-http-post): likewise.
(twittering-call-api): call the new function
`twittering-call-api-with-account' with the main account.
(twittering-call-api-with-account): new function. This requires an
account information alist which it calls an API with.
(twittering-get-main-account-info): new function.
(twittering-verify-credentials): use a return value of
`twittering-get-main-account-info' instead of using variables
directly.
(twittering-http-get-verify-credentials-sentinel): extract an
account information from the `account-info' element in
`connection-info'.
* twittering-mode.el: Add functions to make an authentication
string from an account-info alist.
(twittering-add-application-header-to-http-request): use new
functions for making an authentication string for a HTTP request.
(twittering-get-from-account-info): new function.
(twittering-make-basic-authentication-string): new function.
(twittering-make-oauth-authentication-string): new function.
(twittering-verify-credentials): rename `account-info-alist'
`account-info'.
(twittering-http-get-verify-credentials-sentinel): extract a
screen name and a password with the new function
`twittering-get-from-account-info'.
* twittering-mode.el: Access an account information indirectly.
(twittering-register-account-info): new function.
(twittering-get-username): use `twittering-get-main-account-info'
instead of using the variable `twittering-username' directly.
(twittering-get-password): likewise.
(twittering-verify-credentials): use the functions
`twittering-get-main-account-info' and
`twittering-register-account-info' instead of using variables
directly.
(twittering-http-get-verify-credentials-sentinel): store or
discard the validated account information with the new function
`twittering-register-account-info'.
* twittering-mode.el: Support the HTTP cookie.
(twittering-cookie-alist): new variable to store cookies for each
account.
(twittering-add-application-header-to-http-request): add a cookie
string if necessary.
(twittering-http-get): invoke `twittering-update-server-info' with
`connection-info' according to the modification of the function.
(twittering-http-post): likewise.
(twittering-update-server-info): receive an alist CONNECTION-INFO
as a new argument and update `twittering-cookie-alist'. The new
argument is required to store cookies for each account.
(twittering-extract-cookie): new function to extract cookies from
a HTTP response header as an alist.
(twittering-make-cookie-string): new function to make a cookie
string for a HTTP request from the cookie information stored in
the variable `twittering-cookie-alist'.
* twittering-mode.el: Separate the current core of
`twittering-call-api-with-account' as a new function
`twittering-call-api-with-account-in-api1.0'.
(twittering-call-api-with-account): call a new function
`twittering-call-api-with-account-in-api1.0' instead of processing
a command directly.
(twittering-call-api-with-account-in-api1.0): new function.
* twittering-mode.el: Support the Twitter REST API v1.1.
(twittering-service-method): change the default service method.
(twittering-service-method-table): add entries for the new service
method `twitter-api-v1.1'.
(twittering-http-get-default-sentinel): switch parser according to
the service method and the timeline.
(twittering-http-get-list-sentinel-base): support a response from
the Twitter REST API v1.1.
(twittering-update-server-info): replace a header name for the
Twitter REST API v1.1 with that for the Twitter REST API
v1.0. This is an ad-hoc solution. Since each API method is
separately limited on the Twitter REST API v1.1, the rate limit
information should be managed for each API method.
(twittering-call-api-with-account): call a special function
according to the current `twittering-service-method'.
(twittering-call-api-with-account-in-api1.0): new function that is
the same as the previous `twittering-call-api-with-account'.
(twittering-call-api-with-account-in-api1.1): new function.
(twittering-update-service-configuration): support the new service
method `twitter-api-v1.1'.
(twittering-use-profile-image-api): add a supplementary document.
(twittering-effective-length): support the new service method
`twitter-api-v1.1'.
* README.markdown: Add an explanation of prerequisites for the
Twitter REST API v1.1.
* twittering-mode.el: Move the cursor to the tweet that will be
retrieved.
(twittering-toggle-or-retrieve-replied-statuses): move the cursor
to the tweet that will be retrieved.
* twittering-mode.el: The timeline spec string "@" means the
mentions timeline instead of the replies timeline.
(twittering-extract-timeline-spec): interpret the timeline spec
string "@" as the mentions timeline instead of the replies
timeline.
* twittering-mode.el: Fix a typo that disables twittering-mode.el
from retrieving the ":retweets_of_me" timeline.
(twittering-call-api-with-account-in-api1.1): fix a typo.
* twittering-mode.el: Fix the function of rendering a replied
tweet.
(twittering-retrieve-single-tweet-sentinel): fix the condition
for deciding whether it should re-render a tweet partially or
not.
2013-02-11 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix the jojo-mode that caused an error when
the condition of automatically posting a tweet was satisfied.
Thanks to the anonymous person who reported the problem.
(twittering-post-predicted-message-like-jojo): fix variable name.
* twittering-mode.el: Fix a return value of
`twittering-render-replied-statuses'. The function returns nil
without regard to whether a tweet is rendered or not. Thanks to
Ikumi Keita who reported the problem.
(twittering-render-replied-statuses): fix a return value.
* twittering-mode.el: Support different intervals of retrieving
timelines.
(twittering-relative-retrieval-interval-alist): new variable.
(twittering-relative-retrieval-count-alist): new variable.
(twittering-retrieve-timeline): reset the retrieval count.
(twittering-start): update all active timelines forcibly once.
(twittering-get-relative-interval): new function.
(twittering-get-retrieval-count): new function.
(twittering-set-retrieval-count): new function.
(twittering-initialize-retrieval-count): new function.
(twittering-update-active-buffers): reduce retrievals according to
the variable `twittering-relative-retrieval-interval-alist'.
2013-01-21 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Update the regexp for extracting an ID from
a tweet.
(twittering-extract-id-from-url): update the regexp for extracting
an ID from a tweet.
* twittering-mode.el: Avoid rendering same tweets repeatedly. The
function `twittering-render-timeline' rendered given repeated
tweets as is. Since a merged timeline may include one tweet
multiple times, such a tweet was rendered multiple times.
(twittering-render-timeline): skip repeated tweets.
2013-01-14 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Fix a bug of backward retrieval of
favorites timeline. The functions, `twittering-goto-next-status'
and `twittering-goto-previous-status', did nothing for favorites
timeline. They now treat favorites timeline as they treat other
timelines. Thanks to the anonymous person who reported the
problem.
(twittering-goto-next-status): Remove a special action for
favorites timeline.
(twittering-goto-previous-status): likewise.
* README.markdown: Add explanations of major configurations and
others.
2012-11-05 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Support the backward retrieval of favorites
timeline.
(twittering-call-api): send the parameter `max_id' for retrieving
favorites timeline if necessary.
* twittering-mode.el: Display how many tweets are added to each
buffer.
(twittering-http-get-default-sentinel): display how many tweets
are added to each buffer.
(twittering-add-statuses-to-timeline-data): return a list of pairs
of a timeline spec string and the number of addtional tweets.
(twittering-render-timeline): return a list of tweets newly
rendered.
* twittering-mode.el: Extract the format from the HTTP response
header.
(twittering-get-content-subtype-symbol-from-header-info): new
function for extracting the content subtype from a HTTP header.
(twittering-send-http-request): fix docstring.
(twittering-get-error-message): extract the format from the HTTP
response header instead of using `connection-info`.
(twittering-http-get-default-sentinel): likewise.
(twittering-retrieve-single-tweet-sentinel): likewise.
2012-09-17 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Request a compressed HTTP response when
using `curl'.
(twittering-send-http-request-curl): add the option `--compressed'
to the arguments for the program `curl'.
* twittering-mode.el: Do not call `force-mode-line-update' via the
unread status notifier. It had been invoked via a sentinel or
`post-command-hook'.
(twittering-set-number-of-unread): do not call the function
`force-mode-line-update'.
* twittering-mode.el: Add a new function
`twittering-retrieve-timeline'.
(twittering-retrieve-timeline): new function for retrieving and
rendering a timeline. This accepts any timeilne spec string
including that for composite timeline, though
`twittering-call-api' accepts only a primary timeline. Also, the
new function can be invoked with more detailed retrieval options
than the existing function `twittering-get-and-render-timeline'.
(twittering-get-and-render-timeline): reimplemented with the new
function `twittering-retrieve-timeline'.
* twittering-mode.el: Add a new command
`twittering-get-tweets-before' to get tweets before a
specific time.
(twittering-parse-time-string): new function.
(twittering-time-to-id): new function.
(twittering-get-tweets-within-specific-time-range): new function.
(twittering-get-tweets-before): new function.
* twittering-mode.el: Display how many tweets are retrieved.
(twittering-http-get-default-sentinel): display how many tweets
are retrieved. This may includes some tweets that has been already
retrieved as an other timeline.
2012-07-22 Tadashi MATSUO <[email protected]>
* twittering-mode.el: Clear list of undo entries on a pop-up edit
buffer.
(twittering-update-status-from-pop-up-buffer): clear list of undo
entries.
* twittering-mode.el: Fix the bug that retweets may not be
rendered in a composite timeline.
(twittering-render-timeline): render a retweet if the first ID
referring the retweet is unknown. This is necessary because a
referring ID table of a composite timeline may lack information of
some component timelines.
* twittering-mode.el: `twittering-id-to-time' restores the
milli-second parameter.
(twittering-id-to-time): restore the milli-second parameter.
* twittering-mode.el: Fix the bug that
`twittering-render-replied-statuses' may ignore the argument
`pos'.
(twittering-render-replied-statuses): correctly consider the
argument `pos'.