-
Notifications
You must be signed in to change notification settings - Fork 0
/
egg.elc
1211 lines (1192 loc) · 271 KB
/
egg.elc
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
;ELC
;;; Compiled by [email protected] on Tue Sep 14 22:22:07 2010
;;; from file /Users/oceanhug/.emacs.d/byplayer-egg-3f715b1/egg.el
;;; in Emacs version 22.3.1
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
(if (and (boundp 'emacs-version)
(< (aref emacs-version (1- (length emacs-version))) ?A)
(or (and (boundp 'epoch::version) epoch::version)
(string-lessp emacs-version "19.29")))
(error "`egg.el' was compiled for Emacs 19.29 or later"))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\300\302!\210\300\303!\210\300\304!\210\305\306\307\310\311\312\313\314&\210\305\315\307\316\313\306%\210\317\320\321\322\313\315%\210\317\323\324\325\313\315%\210\317\326\327\325\313\315%\210\317\330\331\332\313\315%\210\317\333\334\332\313\315%\210\317\335\336\332\313\315%\210\317\337\340\325\313\315%\210\317\341\342\325\313\315%\210\317\343\344\325\313\315%\210\317\345\346\325\313\315%\210\317\347\350\351\313\315%\210\317\352\353\354\313\315%\210\317\355\356\357\313\315%\210\317\360\361\362\313\315%\210\317\363\364\365\313\315%\210\317\366\367\370\313\315%\210\317\371\372\373\313\315%\210\317\374\375\376\313\315%\210\317\377\201@ \201A \313\315%\210\317\201B \201C \201D \313\315%\210\317\201E \201F \201G \313\315%\210\317\201H \201I \201J \313\315%\210\317\201K \201L \201M \313\315%\210\317\201N \201O \201P \313\315%\210\317\201Q \201R \201S \313\315%\210\317\201T \201U \201V \313\315%\210\317\201W \201X \201Y \313\315%\210\317\201Z \201[ \201Y \313\315%\210\317\201\\ \201] \201^ \313\315%\210\317\201_ \201` \201a \313\315%\210\317\201b \201c \201d \313\315%\210\317\201e \201f \201g \313\315%\210\317\201h \201i \201j \313\315%\207" [require cl electric ediff ffap custom-declare-group egg nil "Controlling Git from Emacs." :prefix "egg-" :group tools egg-faces "Colourful Faces for Egg." custom-declare-face egg-header ((t :weight bold :inherit variable-pitch :height 1.1)) "Face for generic headers.\n\nMany Egg faces inherit from this one by default." egg-text-base ((((class color) (background light)) :foreground "navy" :inherit variable-pitch) (((class color) (background dark)) :foreground "SteelBlue" :inherit variable-pitch) (t)) "Face for description text." egg-text-1 ((t :inherit egg-text-base)) egg-text-help ((t :inherit egg-text-base :height 0.8)) "Face for help text." egg-help-header-1 ((t :inherit egg-text-base :weight bold)) egg-help-header-2 ((((class color) (background light)) :foreground "Black" :inherit egg-text-1 :height 0.9) (((class color) (background dark)) :foreground "LightSteelBlue" :inherit egg-text-1 :height 0.9) (t :inherit egg-text-1)) egg-text-2 ((t :inherit egg-text-base :height 1.1)) egg-text-3 ((t :inherit egg-text-base :height 1.2)) egg-text-4 ((t :inherit egg-text-base :height 1.4)) egg-electrict-choice ((((class color) (background light)) :foreground "Blue" :inherit egg-text-1 :weight bold) (((class color) (background dark)) :foreground "Cyan" :inherit egg-text-1 :weight bold) (t)) egg-section-title ((((class color) (background light)) :foreground "DarkGoldenrod" :inherit egg-header :height 1.1) (((class color) (background dark)) :foreground "PaleGreen" :inherit egg-header :height 1.1) (t :weight bold)) "Face for generic header lines.\n\nMany Egg faces inherit from this one by default." egg-branch ((((class color) (background light)) :foreground "SkyBlue" :inherit egg-header :height 1.1) (((class color) (background dark)) :foreground "Yellow" :inherit egg-header :height 1.1) (t :weight bold)) "Face for the current branch." egg-log-buffer-mark ((((class color) (background light)) :foreground "black" :inherit bold) (((class color) (background dark)) :foreground "orchid1" :inherit bold) (t :weight bold)) "Face to mark commit line in log-buffer." egg-branch-mono ((((class color) (background light)) :foreground "SkyBlue" :inherit bold) (((class color) (background dark)) :foreground "Yellow" :inherit bold) (t :weight bold)) "Face for a branch." egg-tag-mono ((((class color) (background light)) :foreground "GoldenRod" :inherit bold) (((class color) (background dark)) :foreground "SkyBlue" :inherit bold) (t :weight bold)) "Face for a tag." egg-an-tag-mono ((((class color) (background light)) :foreground "DarkGoldenRod" :inherit bold) (((class color) (background dark)) :foreground "LightGreen" :inherit bold) (t :weight bold)) "Face for an annotated branch." egg-stash-mono ((((class color) (background light)) :foreground "DarkGoldenRod" :inherit bold) (((class color) (background dark)) :foreground "LightGreen" :inherit bold) (t :weight bold)) "Face for a stash identifier." egg-remote-mono ((((class color) (background light)) :foreground "Orchid" :inherit bold) (((class color) (background dark)) :foreground "DarkSalmon" :inherit bold) (t :weight bold)) "Face for a remote." egg-term ((((class color) (background light)) :foreground "SkyBlue" :inherit bold) (((class color) (background dark)) :foreground "Yellow" :inherit bold) (t :weight bold)) "Face for an important term." egg-help-key ((t :inherit 'egg-term :height 0.9)) "Hilight Face in help text." egg-warning ((((class color) (background light)) :foreground "Red" :inherit bold) (((class color) (background dark)) :foreground "Orange" :inherit bold) (t :weight bold)) "Face for a warning." egg-diff-file-header ((((class color) (background light)) :foreground "SlateBlue" :inherit egg-header) (((class color) (background dark)) :foreground "LightSlateBlue" :inherit egg-header) (t :weight bold)) "Face for diff file headers." egg-unmerged-diff-file-header ((((class color) (background light)) :foreground "Red" :inherit egg-diff-file-header) (((class color) (background dark)) :foreground "Orange" :inherit egg-diff-file-header) (t :weight bold)) "Face for unmerged diff file headers." egg-diff-hunk-header ((((class color) (background light)) :background "grey85") (((class color) (background dark)) :background "grey45")) "Face for diff hunk headers." egg-diff-add ((((class color) (background light)) :foreground "blue1") (((class color) (background dark)) :foreground "white")) "Face for lines in a diff that have been added." egg-diff-none ((((class color) (background light)) :foreground "grey50") (((class color) (background dark)) :foreground "grey70")) "Face for lines in a diff that are unchanged." egg-diff-del ((((class color) (background light)) :foreground "red") (((class color) (background dark)) :foreground "OrangeRed")) "Face for lines in a diff that have been deleted." egg-diff-conflict ((((class color) (background light)) :foreground "Blue") (((class color) (background dark)) :foreground "Orange")) egg-graph ((((class color) (background light)) :foreground "grey90") (((class color) (background dark)) :foreground "grey30")) "Face for graph." egg-blame ((((class color) (background light)) :background: "grey85" :foreground "black") (((class color) (background dark)) :background "grey15" :foreground "white") (t :inherit region)) "Face for blame header." egg-blame-culprit ((((class color) (background light)) :inherit egg-text-2 :background "grey85" :foreground "grey35") (((class color) (background dark)) :inherit egg-text-2 :background "grey15" :foreground "grey60") (t :inherit egg-blame)) "Face for blame culprit." egg-blame-subject ((((class color) (background light)) :inherit egg-blame-culprit :foreground "black") (((class color) (background dark)) :inherit egg-blame-culprit :foreground "white") (t :inherit egg-blame)) "Face for blame tag line." egg-log-HEAD ((t (:inherit region))) "Face to highlight HEAD in the log buffer."] 8)
#@32 Initially hide all sub-blocks.
(custom-declare-variable 'egg-buffer-hide-sub-blocks-on-start 'nil '(#$ . 7655) :group 'egg :type '(set (const :tag "Status Buffer" egg-status-buffer-mode) (const :tag "Log Buffer" egg-log-buffer-mode) (const :tag "File Log Buffer" egg-file-log-buffer-mode) (const :tag "RefLog Buffer" egg-reflog-buffer-mode) (const :tag "Diff Buffer" egg-diff-buffer-mode) (const :tag "Commit Buffer" egg-commit-buffer-mode)))
#@47 Initially hide sections of the selected type.
(custom-declare-variable 'egg-buffer-hide-section-type-on-start 'nil '(#$ . 8104) :group 'egg :type '(set (cons :tag "Status Buffer" (const :tag "Hide Blocks of type" egg-status-buffer-mode) (radio (const :tag "Section" :section) (const :tag "File" :diff) (const :tag "Hunk" :hunk))) (cons :tag "Commit Log Buffer" (const :tag "Hide Blocks of type" egg-commit-buffer-mode) (radio (const :tag "Section" :section) (const :tag "File" :diff) (const :tag "Hunk" :hunk))) (cons :tag "Diff Buffer" (const :tag "Hide Blocks of type" egg-diff-buffer-mode) (radio (const :tag "File" :diff) (const :tag "Hunk" :hunk)))))
#@34 Initially hide keybindings help.
(custom-declare-variable 'egg-buffer-hide-help-on-start 'nil '(#$ . 8766) :group 'egg :type '(set (const :tag "Status Buffer" egg-status-buffer-mode) (const :tag "Log Buffer" egg-log-buffer-mode) (const :tag "File Log Buffer" egg-file-log-buffer-mode) (const :tag "RefLog Buffer" egg-reflog-buffer-mode) (const :tag "Diff Buffer" egg-diff-buffer-mode) (const :tag "Commit Buffer" egg-commit-buffer-mode)))
#@61 Maximum number of entries when showing the history of HEAD.
(custom-declare-variable 'egg-log-HEAD-max-len '1000 '(#$ . 9211) :group 'egg :type 'integer)
#@61 Maximum number of entries when showing the history of HEAD.
(custom-declare-variable 'egg-log-all-max-len '10000 '(#$ . 9371) :group 'egg :type 'integer)
#@73 Always prompt for confirmation while guessing the next logical action .
(custom-declare-variable 'egg-confirm-next-action 't '(#$ . 9531) :group 'egg :type 'boolean)
#@68 Always prompt for confirmation before removing delta from workdir.
(custom-declare-variable 'egg-confirm-undo 't '(#$ . 9703) :group 'egg :type 'boolean)
#@61 Sections to be listed in the status buffer and their order.
(custom-declare-variable 'egg-status-buffer-sections ''(repo unstaged staged untracked) '(#$ . 9863) :group 'egg :type '(repeat (choice (const :tag "Repository Info" repo) (const :tag "Unstaged Changes Section" unstaged) (const :tag "Staged Changes Section" staged) (const :tag "Untracked/Uignored Files" untracked))))
#@61 Sections to be listed in the status buffer and their order.
(custom-declare-variable 'egg-commit-buffer-sections ''(staged unstaged untracked) '(#$ . 10248) :group 'egg :type '(repeat (choice (const :tag "Unstaged Changes Section" unstaged) (const :tag "Staged Changes Section" staged) (const :tag "Untracked/Uignored Files" untracked))))
#@68 Whether to refresh the index in the background when emacs is idle.
(custom-declare-variable 'egg-refresh-index-in-backround 'nil '(#$ . 10593) :group 'egg :type 'boolean)
#@77 Whether to activate useful tooltips, showing the local keymap at the point.
(custom-declare-variable 'egg-enable-tooltip 'nil '(#$ . 10770) :group 'egg :type 'boolean)
#@95 Name of the rebase's workdir.
Different versions of git have different names for this subdir.
(custom-declare-variable 'egg-git-rebase-subdir '"rebase-merge" '(#$ . 10944) :group 'egg :type '(choice (const ".dotest-merge") (const "rebase-merge") string))
#@49 Display keybinding help in egg special buffers.
(custom-declare-variable 'egg-show-key-help-in-buffers ''(:log :status :diff :file-log :reflog) '(#$ . 11205) :group 'egg :type '(set (const :tag "Status Buffer" :status) (const :tag "Log Buffer" :log) (const :tag "File Log Buffer" :file-log) (const :tag "RefLog Buffer" :reflog) (const :tag "Diff Buffer" :diff) (const :tag "Commit Buffer" :commit)))
(define-widget 'egg-quit-window-actions-set 'lazy "Custom Type for quit-window actions." :offset 4 :format "%v" :type '(set :tag "Actions" (const :tag "Kill Buffer" kill) (const :tag "Restore Windows" restore-windows)))
#@57 Actions to perform upon quitting an egg special buffer.
(custom-declare-variable 'egg-quit-window-actions 'nil '(#$ . 11831) :group 'egg :type '(set (cons :format "%v" (const :tag "Status Buffer" egg-status-buffer-mode) egg-quit-window-actions-set) (cons :format "%v" (const :tag "Log (History) Buffer" egg-log-buffer-mode) egg-quit-window-actions-set) (cons :format "%v" (const :tag "Commit Log Buffer" egg-commit-buffer-mode) egg-quit-window-actions-set) (cons :format "%v" (const :tag "RefLog Buffer" egg-reflog-buffer-mode) egg-quit-window-actions-set) (cons :format "%v" (const :tag "Diff Buffer" egg-diff-buffer-mode) egg-quit-window-actions-set) (cons :format "%v" (const :tag "File Log (History) Buffer" egg-file-log-buffer-mode) egg-quit-window-actions-set)))
#@138 Name or full-path to the git command.
Set this to the appropriate string in the case where `git' is not the
desirable way to invoke GIT.
(custom-declare-variable 'egg-git-command '"git" '(#$ . 12607) :group 'egg :type 'string)
#@156 Name or full-path to the patch command.
Set this to the appropriate string in the case where `patch' is not the
desirable way to invoke gnu patch command.
(custom-declare-variable 'egg-patch-command '"patch" '(#$ . 12841) :group 'egg :type 'string)
#@9 Foo bar
(custom-declare-variable 'egg-dummy-option 'nil '(#$ . 13095) :group 'egg :type '(set (const :bold) (const :italic)))
#@57 Format TEXT with face FACE at compile-time or run-time.
(defalias 'egg-text '(macro . #[(text face) ";\203 \302\301 9\203 \202 A@#\207\204 \302\303\304 F\207\302\305 F\207" [text face propertize "<internal-bug>" 'face 'face] 4 (#$ . 13227)]))
#@72 Propertize TEXT with properties list PROP at compile-time or run-time.
(defalias 'egg-prop '(macro . #[(text &rest prop) ";\203 \302\303\304\305 \"#\207\303 BB\207" [text prop apply propertize mapcar #[(sym) ":\203 A@\207\207" [sym] 1]] 6 (#$ . 13486)]))
(byte-code "\300\301\302\"\210\300\303\304\"\207" [defalias egg-string-at-point ffap-string-at-point egg-find-file-at-point find-file-at-point] 3)
#@90 Make STR appear to have prefix PREFIX.
If OTHER-PROPERTIES was non-nil, apply it to STR.
(defalias 'egg-prepend #[(str prefix &rest other-properties) " \303\304OP\305\306 \n#\307\303\304\310 %\210 \207" [prefix str other-properties 0 1 apply propertize put-text-property display] 6 (#$ . 13902)])
(put 'egg-prepend 'byte-optimizer 'byte-compile-inline-expand)
#@46 Retrieve the raw-contents of the commit REV.
(defalias 'egg-commit-contents #[(rev) "\303\304!\305\216rq\210\306 \307\310\307\311\312\n&\210\313 +\207" [#1=#:temp-buffer egg-git-command rev generate-new-buffer " *temp*" ((byte-code "\301!\203\n \302!\210\301\207" [#1# buffer-name kill-buffer] 2)) call-process nil t "cat-file" "commit" buffer-string] 8 (#$ . 14272)])
(put 'egg-commit-contents 'byte-optimizer 'byte-compile-inline-expand)
#@37 Retrieve the commit message of REV.
(defalias 'egg-commit-message #[(rev) "\303\304!\305\216rq\210\306 \307\310\307\311\312\n&\210eb\210\313\314!\210\315\316\225d\"+\207" [#1=#:temp-buffer egg-git-command rev generate-new-buffer " *temp*" ((byte-code "\301!\203\n \302!\210\301\207" [#1# buffer-name kill-buffer] 2)) call-process nil t "cat-file" "commit" re-search-forward "^\n" buffer-substring-no-properties 0] 8 (#$ . 14723)])
(put 'egg-commit-message 'byte-optimizer 'byte-compile-inline-expand)
#@100 Execute PROGRAM and return its output as a string.
ARGS is a list of arguments to pass to PROGRAM.
(defalias 'egg-cmd-to-string-1 #[(program args) "\303\304!\305\216rq\210\306\307 \310\311\310\n&\312U\205'