-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO.org_archive
665 lines (556 loc) · 19.7 KB
/
TODO.org_archive
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
#+SEQ_TODO: TODO(t!) NOTE(n!) ENTRY(e!) | DONE(d!)
Archived entries from file /home/gatchapin/src/pospcase/HACKING.org
* DONE ~let~ [1/1]
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-16 Fri 06:37
:ARCHIVE_FILE: ~/src/pospcase/HACKING.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: HACKING
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-15 Thu 16:24]
- State "TODO" from [2018-11-12 Mon 10:24]
- [X] the last of varlist is entirely highlighted
* DONE flet [1/1]
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-16 Fri 06:38
:ARCHIVE_FILE: ~/src/pospcase/HACKING.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: HACKING
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-15 Thu 16:24]
- State "TODO" from [2018-11-12 Mon 11:47]
- [X] declaration with empty arglist isn’t supported
* DONE pospcase-collect-all-symbols [1/1]
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-16 Fri 06:38
:ARCHIVE_FILE: ~/src/pospcase/HACKING.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: HACKING
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-16 Fri 06:37]
- State "TODO" from [2018-11-15 Thu 16:24]
- [X] support dot notation
* TODO inf-loop [1/1]
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-16 Fri 08:46
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/HACKING.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: HACKING
:ARCHIVE_TODO: TODO
:END:
- State "TODO" from [2018-11-16 Fri 06:37]
- [X] inf-loop with ~&key~ in comment
* TODO &key inf-loop [1/1]
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-17 Sat 12:34
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: TODO
:END:
- State "TODO" from [2018-11-17 Sat 11:38]
~(funcall #'regexp-opt lisp-extra-argument-list-key-keywards)~
doesn’t loop, but
~(concat (funcall #'regexp-opt lisp-extra-argument-list-key-keywards) space+)~
loops. Why?
- [X] (match-end 0) to (1- (match-end 0))
* DONE defstruct fontspecs prematches mixup
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-17 Sat 14:48
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-17 Sat 14:48]
- State "TODO" from [2018-11-17 Sat 14:16]
* DONE pospcase-font-lock-lisp-mode-setup
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-18 Sun 14:05
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features/pospcase-font-lock
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-18 Sun 14:05]
- State "TODO" from [2018-11-18 Sun 12:19]
* TODO pospcase-font-lock-build
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-18 Sun 14:05
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features/pospcase-font-lock
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: TODO
:END:
- State "TODO" from [2018-11-18 Sun 12:19]
* TODO pospcase-font-lock [9/9]
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-18 Sun 18:55
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: TODO
:END:
- State "TODO" from [2018-11-15 Thu 19:42]
- [X] varlist-cars
- [X] varlist
- [X] destructuring
- [X] flet
- [X] macrolet
- [X] defstruct [2/2]
- [X] use syntax-ppss
- [X] docstring
- [X] &key [2/2]
- [X] no heading "(" needed
- [X] listp &mykey
- [X] heading keyword
- [X] defmethod
* TODO Nested let, flet, etc. doesn’t work. [1/2]
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-19 Mon 03:06
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: TODO
:END:
- State "TODO" from [2018-11-18 Sun 18:00]
- [X] Experiment with pospcase-match-flet first
- [ ] Define pospcase-match-let, pospcase-match-flet. And tweak limit point?
* TODO Choose between dot-notation, pospcase-read-from-string, pospcase-read-from-temp-buffer
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-19 Mon 03:06
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: TODO
:END:
- State "TODO" from [2018-11-17 Sat 08:14]
* DONE inf-loop with ?\ ?\t ?;
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-20 Tue 11:01
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-20 Tue 11:01]
- State "TODO" from [2018-11-19 Mon 10:57]
- [ ] trigger example
(defun foo () <- *insert here either of ’(?\ ?\t ?;)*
())
and
(defun foo
() <- *her too*
())
* DONE (defun foo () ()) locks but not (foo () bar)
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-21 Wed 02:28
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-21 Wed 02:28]
- State "TODO" from [2018-11-19 Mon 17:48]
* HALT calculate number of closing parens with
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-23 Fri 08:49
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features/add chop-off-p to pospcase-read
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: HALT
:END:
- State "HALT" from "TODO" [2018-11-23 Fri 08:49]
- State "TODO" from [2018-11-21 Wed 05:44]
(- (count-open str lim) (count-close str lim))
* DONE Should I add zero submatcher support? Should I implement ~pospcase-match-zero~?
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-30 Fri 04:39
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-30 Fri 04:39]
- State "TODO" from [2018-11-23 Fri 09:32]
* DONE unmatched double quote hangs
:PROPERTIES:
:ARCHIVE_TIME: 2018-11-30 Fri 21:12
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-11-30 Fri 21:12]
- State "TODO" from [2018-11-30 Fri 19:56]
* DONE wrong higlight after quoted keyword
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-01 Sat 09:01
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-01 Sat 09:01]
- State "TODO" from [2018-11-30 Fri 21:12]
#+BEGIN_SRC emacs-lisp
"(let" (foo (bar baz))
#+END_SRC
* DONE Common lisp ~#~ reader macro notation cause read-from-string error "(invalid-read-syntax #)"
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-01 Sat 09:02
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-01 Sat 09:02]
- State "TODO" from [2018-11-18 Sun 18:56]
* DONE multiple heading keywords support for ~pospcase-font-lock~ patterns
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-01 Sat 11:53
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-01 Sat 11:53]
- State "TODO" from [2018-11-30 Fri 16:29]
* DONE multiple submatchers
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-03 Mon 03:44
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-03 Mon 03:44]
- State "TODO" from [2018-12-03 Mon 01:47]
#+BEGIN_SRC emacs-lisp
(pospcase-font-lock 'lisp-mode
'(`(defclass ,name ,supers ,slots . ,_))
'(font-lock-keyword-face
(name . (font-lock-type-face))
((supers . varlist-cars) . (font-lock-type-face))
((slots . varlist-cars) . (font-lock-variable-name-face))))
#+END_SRC
should generate:
#+BEGIN_SRC emacs-lisp
(pospcase-font-lock 'lisp-mode
'(`(defclass ,name ,supers ,slots . ,_))
'(font-lock-keyword-face
((slots . varlist-cars) . (font-lock-variable-name-face))))
(pospcase-font-lock 'lisp-mode
'(`(defclass ,name ,supers ,slots . ,_))
'(font-lock-keyword-face
(name . (font-lock-type-face))
((supers . varlist-cars) . (font-lock-type-face))))
#+END_SRC
* DONE submatchers doesn’t support nesting
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-03 Mon 04:20
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-03 Mon 04:20]
- State "TODO" from [2018-12-03 Mon 03:44]
- for example ~bar~ of follow:
#+BEGIN_SRC emacs-lisp
(pospcase-font-lock 'lisp-mode
'(`(foo ((,bar)) ,baz))
'(font-lock-keyword-face
((bar . varlist-cars) . (font-lock-variable-name-face))
(baz . varlist-cars) . (font-lock-variable-name-face)))
#+END_SRC
* DONE better "#|foo|#" elispify
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-03 Mon 16:52
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-03 Mon 16:52]
- State "TODO" from [2018-12-03 Mon 16:25]
* DONE "#| foo |#" generates ((/* . (0 . 1)) (*/ . (3. 7)) (*/ . (5 . 7)))
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-04 Tue 07:12
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-04 Tue 07:12]
- State "TODO" from [2018-12-03 Mon 18:12]
* DONE proper completion support for pospcase-addform
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-07 Fri 10:22
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-07 Fri 10:22]
- State "TODO" from [2018-12-07 Fri 10:13]
* DONE pospcase-translate can’t handle two ,_ ?
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-08 Sat 10:30
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-08 Sat 10:30]
- State "TODO" from [2018-12-08 Sat 10:07]
* HALT more pcase pattern support for pospcase-translate
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-10 Mon 14:12
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: HALT
:END:
- State "HALT" from "TODO" [2018-12-10 Mon 14:12]
- State "TODO" from [2018-12-10 Mon 12:55]
Especially I want (and ’foo bar) to work
* DONE quoted parameter/loop-var unhighlight the rest of the line
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-10 Mon 15:32
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-10 Mon 15:32]
- State "TODO" from [2018-12-10 Mon 15:16]
not just
#+BEGIN_SRC emacs-lisp
(cl-loop 'for foo for bar)
#+END_SRC
but
#+BEGIN_SRC emacs-lisp
(cl-loop 'for foo) (cl-loop for bar)
#+END_SRC
* DONE pospcase first-bound
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-11 Tue 06:23
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Scheduled
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-11 Tue 06:23]
- State "TODO" from [2018-12-11 Tue 05:02]
* DONE Experiment to overcome nested let limitation failed
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-11 Tue 14:24
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Scheduled
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-11 Tue 14:19]
- State "TODO" from [2018-12-11 Tue 13:00]
** Things I’ve tried
- change pospcase–call-iterator
#+BEGIN_SRC emacs-lisp
(ignore-errors
(read-from-string
(pospcase--buffer-substring (point) ,limit)))
#+END_SRC
to
#+BEGIN_SRC emacs-lisp
(condition-case nil
(read-from-string
(pospcase--buffer-substring (point) (scan-sexps (point) 1)))
(end-of-file 'pospcase-end-of-file)
(error nil))
#+END_SRC
- change pospcase-font-lock-build list-group
#+BEGIN_SRC emacs-lisp
(cdr ,(car submatcher))
#+END_SRC
to
#+BEGIN_SRC emacs-lisp
(scan-lists (point) 1 -1)
#+END_SRC
* DONE defcustom based intuitive keyword manager
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-14 Fri 04:28
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-14 Fri 04:28]
- State "TODO" from [2018-12-05 Wed 05:38]
* DONE pospcase-heading-pcase-to-regexp
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-14 Fri 10:59
:ARCHIVE_FILE: /mnt/hdd/home/gatchapin/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-14 Fri 10:59]
- State "TODO" from [2018-12-14 Fri 04:29]
* DONE large body sluggishness
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-23 Sun 14:47
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-23 Sun 14:47]
- State "TODO" from [2018-11-30 Fri 16:48]
- need jit-lock internal understanding
* DONE add chop-off-p to pospcase-read
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-23 Sun 14:48
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-23 Sun 14:48]
- State "TODO" from [2018-11-21 Wed 05:44]
** TODO detect trailing ". ,__)", attach closing parens for read-from-string
- State "TODO" from [2018-11-21 Wed 05:44]
** TODO use syntax-table
- State "TODO" from [2018-11-23 Fri 08:49]
#+BEGIN_SRC emacs-lisp
(insert (make-string
(car (parse-partial-sexp (point) (+ (point) 10)))
?\)))
(foo (bar (baz (qux (quux
#+END_SRC
** TODO pospcase--buffer-substring
- State "TODO" from [2018-11-29 Thu 14:42]
#+BEGIN_SRC emacs-lisp
(let ((str (buffer-substring-no-properties (point) limit))
newstr)
(with-temp-buffer
(insert str)
(goto-char (point-max))
(insert (make-string (car (syntax-ppss)) ?\)))
(setq pospcase--buffer-substring (buffer-substring (point-min) (point-max)))))
#+END_SRC
** TODO Entry point should be ~pospcase-at.~ Because ~pospcase-read~ and ~pospcase~ aren’t aware of current patterns.
- State "TODO" from [2018-11-30 Fri 09:58]
** TODO ~pospcase-read~ walk down the sexp tree. How should it behave when chop-off point comes?
- State "TODO" from [2018-11-30 Fri 10:00]
* DONE use prematches only once with pospcase--list
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-27 Thu 18:17
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-27 Thu 18:17]
- State "TODO" from [2018-12-27 Thu 16:40]
* DONE Should I add defstruct’s :constructor to defun keywords?
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-28 Fri 03:39
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-28 Fri 03:39]
- State "TODO" from [2018-12-28 Fri 03:33]
* DONE add ~:method-combination~ to non-pcase keyword
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-29 Sat 03:46
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-29 Sat 03:46]
- State "TODO" from [2018-12-28 Fri 15:06]
* DONE change ~defmethod~ qualifier accept function name?
:PROPERTIES:
:ARCHIVE_TIME: 2018-12-29 Sat 03:46
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2018-12-29 Sat 03:46]
- State "TODO" from [2018-12-28 Fri 15:06]
* DONE Consider trailing match for submatchers
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-08 Tue 03:46
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2019-01-08 Tue 03:46]
- State "TODO" from [2018-12-20 Thu 12:00]
Currently use cases I can think are ~defstruct~ and ~setq~:
#+BEGIN_SRC emacs-lisp
`(defstruct ,name . ,slots)
#+END_SRC
and:
#+BEGIN_SRC emacs-lisp
`(setq . ,binds)
#+END_SRC
Advantages:
- It looks more proper.
- May elegantly cover some future pattern I’m not currently aware of.
Disadvantage:
- Unnecessary computation. (no chopping off)
- Doesn’t cooperate well with fence-start (maybe requires rework?)
Scheme define needs trailing dot?
#+BEGIN_SRC scheme
(define (foo bar baz) quux)
#+END_SRC
* DONE lisp-mode.el supplied keyword are too dumb.
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-08 Tue 04:53
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Bugs
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2019-01-08 Tue 04:53]
- State "TODO" from [2019-01-08 Tue 03:48]
Better to unhighlight keywords in quoted sexp?
In that case ~pospcase-font-lock-match-quoted-content~ should be
tweaked to ignore comment blocks.
* DONE no highlighting for quoted match
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-19 Sat 17:35
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2019-01-19 Sat 17:35]
- State "TODO" from [2019-01-19 Sat 16:38]
Make submatcher-preform to set ~pospcase--no-iteration-p~ when face
at match-beginning is ~pospcase-font-lock-quoted-face~
* DONE max-depth optimization
:PROPERTIES:
:ARCHIVE_TIME: 2019-01-19 Sat 19:53
:ARCHIVE_FILE: ~/src/pospcase/TODO.org
:ARCHIVE_OLPATH: Features
:ARCHIVE_CATEGORY: TODO
:ARCHIVE_TODO: DONE
:END:
- State "DONE" from "TODO" [2019-01-19 Sat 19:53]
- State "TODO" from [2019-01-19 Sat 16:33]
Redesign to:
#+BEGIN_SRC emacs-lisp
(defun pospcase-read pos &optional (max-depth most-positive-fixnum))
#+END_SRC
Also use it in ~pospcase--call-list-iterator~,
~pospcase--call-flet-iterator.~