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
|
<!-- Automatically generated by emacsconf-publish-after-page -->
<div class="transcript transcript-mainVideo"><a name="prefix-mainVideo-transcript"></a><h1>Transcript (unedited)</h1>
<div class="transcript-heading">[[!template new="1" text="""Introduction""" start="00:00:11.563" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""Hello, this is a talk about prefix tab groups""" start="00:00:11.563" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""and the subtitle for this talk is:""" start="00:00:18.506" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""A way to write a symex as a block""" start="00:00:23.027" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""of prefixed lines.""" start="00:00:26.769" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I'm Marco, gaa in the #emacsconf channel,""" start="00:00:30.149" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""if you have any questions.""" start="00:00:35.374" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And there is also a webpage for this project.""" start="00:00:37.316" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""It's on https://gitlab.com/marcowahl/prefix-tab-groups.""" start="00:00:43.041" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And the content of this talk is...""" start="00:00:49.927" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Number one, introduction to the prefix tab groups.""" start="00:00:54.050" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Second, use Emacs tools or Emacs with the prefix""" start="00:00:58.513" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""tab groups.""" start="00:01:05.957" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And third, Lisp and prefix tab groups.""" start="00:01:07.018" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So let's start.""" start="00:01:12.221" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Ignition""" start="00:01:16.550" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""I'll talk about the evolution and this is also an""" start="00:01:16.550" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""introduction to the prefix tab groups.""" start="00:01:20.912" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So the ignition was like this.""" start="00:01:24.694" video="mainVideo-prefix" id="subtitle"]]
[[!template text=""""Grouping with parens is enough."""" start="00:01:27.995" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Somewhere, somewhen in the internet, in a""" start="00:01:32.477" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""discussion about text structuring,""" start="00:01:41.281" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And somehow this resonated with me.""" start="00:01:44.357" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So I tried, but using literal parens, opening""" start="00:01:47.958" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""and closing parens for grouping?""" start="00:01:52.880" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""No.""" start="00:01:55.121" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Not for me, because I want opening and closing""" start="00:01:56.821" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""parens in my texts.""" start="00:02:00.963" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And something nicer visually.""" start="00:02:03.624" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And then the idea was to use a prefix for""" start="00:02:07.565" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""grouping.""" start="00:02:11.627" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So the beginning was, generation 1, G1, was to""" start="00:02:14.792" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""use purely tab, the tab character, as prefix for""" start="00:02:21.658" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""grouping and consecutive lines with the same""" start="00:02:28.063" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""prefix define a group.""" start="00:02:32.607" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""That's the simple idea.""" start="00:02:35.369" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And I want to give an example""" start="00:02:38.271" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""how to define groups like that.""" start="00:02:42.833" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""A little demo.""" start="00:02:45.896" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And in particular, it shall show how to deal with""" start="00:02:48.219" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""sibling groups.""" start="00:02:52.804" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So let's dive into the extra buffer.""" start="00:02:55.206" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Demo""" start="00:03:03.135" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""So let's say you have elements A and B, or lines""" start="00:03:03.135" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""with characters A and B, and you want to make a""" start="00:03:09.578" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""group out of it.""" start="00:03:13.440" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Then with generation one, it would be just put a""" start="00:03:15.120" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""tab in front of each line and the consecutive""" start="00:03:18.782" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""lines here would define the first group.""" start="00:03:24.245" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Then you could leave the next line blank.""" start="00:03:29.951" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And define another group in the fourth line, here with element C.""" start="00:03:35.773" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I can visualize the tabs for clarity.""" start="00:03:46.648" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""You see here an underscore for each tab.""" start="00:04:00.000" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""To make the tabs visible more easily or visible""" start="00:04:07.577" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""at all.""" start="00:04:11.700" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So and here we have the situation we have the""" start="00:04:12.420" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""first group here with A and B.""" start="00:04:14.721" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And then the second group, the sibling group with""" start="00:04:17.567" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""a C here.""" start="00:04:19.769" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And you could combine these groups into one group""" start="00:04:21.409" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""if you would make out of this blank line, a line""" start="00:04:26.051" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""with just a tab.""" start="00:04:29.712" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So then these four lines would be one group.""" start="00:04:32.833" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So this means...let's go back to the slide.""" start="00:04:38.736" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Okay, let's go back to the slide and remember""" start="00:04:55.938" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""that trailing whitespace matters with this notation.""" start="00:05:04.742" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Alright, let's go on to see the evolution.""" start="00:05:11.585" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Progress""" start="00:05:20.973" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""We have seen generation 1 tab only use. Is okay""" start="00:05:20.973" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""for me, but these extra lines to group siblings""" start="00:05:26.637" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""is a but.""" start="00:05:31.780" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Generation 2 emerged and I used an extra character,""" start="00:05:35.703" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""concretely, shift-in (ASCII 15)""" start="00:05:43.805" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""--visualized like this in Emacs normally--""" start="00:05:47.486" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""as group opener.""" start="00:05:52.667" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And further, I changed the appearance of this""" start="00:05:55.668" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""shift-in character to dot-tab in Emacs.""" start="00:06:00.749" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And the result was quite nice.""" start="00:06:04.230" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""No more need of these extra blank lines to""" start="00:06:06.230" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""separate siblings.""" start="00:06:11.692" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""But the shift-in character remained alien""" start="00:06:14.673" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""all the time.""" start="00:06:20.037" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""For example, if you want to email a file with""" start="00:06:21.238" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""these characters in it, this might irritate the""" start="00:06:25.701" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""receiver.""" start="00:06:30.565" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Generation 3""" start="00:06:31.846" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""So generation 3 came up and it was just a little""" start="00:06:31.846" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""step.""" start="00:06:37.891" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""It was the idea to literally use the dot-tab as""" start="00:06:38.551" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""opener directly.""" start="00:06:43.075" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And this is quite okay.""" start="00:06:45.236" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""This is what I use now.""" start="00:06:47.879" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And it also opens the door to group categories.""" start="00:06:50.220" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So you can not just use the dot character in the""" start="00:06:55.365" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""opener, but you can use any character.""" start="00:07:00.914" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And we will see examples later.""" start="00:07:04.300" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Intermediate consolidation""" start="00:07:09.951" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""All right, this has been the main part of the""" start="00:07:09.951" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""talk and let's consolidate, intermediate""" start="00:07:12.853" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""consolidation.""" start="00:07:15.996" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""You know prefix tab groups now and the format is""" start="00:07:17.057" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""independent of Emacs.""" start="00:07:20.980" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""You could use any editor.""" start="00:07:22.081" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I use generation 3 and occasionally still""" start="00:07:24.643" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""generation 1 for writing notes, a journal, and""" start="00:07:27.666" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""also to code, for example, in my init.""" start="00:07:32.610" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""file init.el, pel, we will see later.""" start="00:07:36.533" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""This is then ptg-elisp.""" start="00:07:40.676" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And I have also, for example, a mini task system.""" start="00:07:44.039" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I use the openers backslash and x, backslash for""" start="00:07:46.881" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""an open task and x for a closed task.""" start="00:07:50.724" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And of course it is also""" start="00:07:56.248" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""a presentation tool for EmacsConf.""" start="00:07:57.769" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""prefix-tab-groups and tools in Emacs""" start="00:08:01.953" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""So now let's come to the tools.""" start="00:08:01.953" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""How Emacs can help with the ptg-world and one""" start="00:08:07.350" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""feature stands out, I think.""" start="00:08:14.436" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""That's the focus and I'll talk a little""" start="00:08:17.958" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""bit about that.""" start="00:08:20.620" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Concentrate on a subgroup that is focused""" start="00:08:21.461" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""and there are many other tools""" start="00:08:24.823" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""and I'll give you some of them.""" start="00:08:27.165" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I'll list some of them.""" start="00:08:31.849" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Focus""" start="00:08:34.054" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""So first let's focus on the focus.""" start="00:08:34.054" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And how do you do it?""" start="00:08:39.899" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""How do you activate it?""" start="00:08:41.720" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""If you have a group that you want to focus to,""" start="00:08:43.301" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""you place the cursor in the prefix that defines""" start="00:08:50.645" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""that group of interest.""" start="00:08:55.088" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So for example here.""" start="00:08:56.609" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And then you call the command to focus and there""" start="00:08:58.713" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""will be focus on that group and the effect.""" start="00:09:03.476" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And what is the focus actually?""" start="00:09:06.057" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""It blends out the lines above and below the group.""" start="00:09:08.278" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And it also blends out the prefix.""" start="00:09:12.380" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So there is command `ptg-edit-focus` for that.""" start="00:09:16.903" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And it uses an extra buffer and the features are""" start="00:09:21.986" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Edit and save.""" start="00:09:27.070" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And you can always deepen the focus""" start="00:09:31.433" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""in the focus buffer.""" start="00:09:33.834" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And you can always go one level up and go back to""" start="00:09:36.456" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""the original buffer.""" start="00:09:40.298" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And to demonstrate, I will focus now here on the""" start="00:09:41.799" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""features subgroup right here.""" start="00:09:46.742" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I activate the focus""" start="00:09:50.829" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""and you now have the focused view.""" start="00:09:53.452" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""You can go even deeper and up again and one level""" start="00:09:57.816" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""up and you can always go back""" start="00:10:03.582" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""to the original buffer.""" start="00:10:05.404" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I use this focus all the time.""" start="00:10:07.646" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Further features in Emacs""" start="00:10:11.077" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""So let's see what we have also here in Emacs.""" start="00:10:11.077" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""`set-selective-display`.""" start="00:10:18.046" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Let's have a look what this is.""" start="00:10:21.951" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""This is a very old feature of Emacs.""" start="00:10:23.914" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""It blends out lines having a certain indent.""" start="00:10:27.270" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So this is good to get an overview and it fits""" start="00:10:32.294" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""quite nicely to the prefix tab groups.""" start="00:10:38.579" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""But on the other hand, to be honest, sometimes it""" start="00:10:43.689" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""feels a bit quirky.""" start="00:10:46.392" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""It has its quirks.""" start="00:10:48.454" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""If you work with it, you will notice.""" start="00:10:51.036" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""But actually it's good enough for me now.""" start="00:10:54.500" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So I have no real need for something else.""" start="00:10:58.564" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I use that.""" start="00:11:04.669" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And then there is `x-stretch-cursor`.""" start="00:11:05.950" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""This gives this view of the tab as you can see it""" start="00:11:10.634" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""here in the cursor, the big cursor on the tab.""" start="00:11:16.058" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And whitespace-mode maybe you know to display white""" start="00:11:19.200" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""space somehow readable.""" start="00:11:23.744" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And you can play with tab width,""" start="00:11:26.726" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""make it bigger or smaller. And notice that return""" start="00:11:30.689" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""automatically inserts indent in the next line.""" start="00:11:34.672" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""`indent-tabs-mode` can be configured to make sure""" start="00:11:38.014" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""to use tabs if Emacs indents something.""" start="00:11:42.457" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Back to indentation is quite nice. You can use""" start="00:11:46.608" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""it to go to the first non-whitespace character in""" start="00:11:50.809" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""a line.""" start="00:11:54.391" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And if you have big lines, you can use the visual""" start="00:11:55.291" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""line mode and visual wrap prefix mode.""" start="00:11:59.092" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""You can really get beautiful views of long lines.""" start="00:12:02.013" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Further self-made tools""" start="00:12:09.035" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""So, okay, there are a few""" start="00:12:09.035" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""self-made tools which are quite naturally for the""" start="00:12:15.118" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""prefix tab groups.""" start="00:12:19.120" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Jump to beginning end of a group, mark a group,""" start="00:12:20.221" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""create, decay a group, tabify, untabify a region.""" start="00:12:23.542" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""It's not a big deal but it's good to know that""" start="00:12:28.085" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""they are there.""" start="00:12:31.566" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""prefix-tab-groups and Lisp""" start="00:12:33.907" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""So let's go to the Lisp part of this talk, Prefix""" start="00:12:33.907" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Tab Groups and Lisp.""" start="00:12:39.469" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And you can first notice Prefix Tab Groups as""" start="00:12:41.849" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""syntax for Lisp is quite natural since ptg is""" start="00:12:47.151" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""like symex.""" start="00:12:52.712" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""For example, if you have this""" start="00:12:54.133" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Prefix Tab Group here,""" start="00:12:55.633" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""It's just a group with the elements a, b and it""" start="00:12:58.606" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""can be interpreted as the symex which is the list""" start="00:13:01.228" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""with a and b.""" start="00:13:06.233" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And a somewhat more complicated example here have""" start="00:13:08.174" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""a group with two elements.""" start="00:13:15.100" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""First one is again a list so it's kind of""" start="00:13:18.423" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""recursive and in the next line you have this C""" start="00:13:21.166" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""element and this can then be interpreted as the""" start="00:13:26.571" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""symex here.""" start="00:13:31.215" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So you have two elements the symex with the""" start="00:13:33.097" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""elements A and B and the element C.""" start="00:13:35.799" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""By the way, if you are interested in the term""" start="00:13:42.018" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""symex, where it comes from, it comes from here:""" start="00:13:44.461" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""github.com/drym-org/symex.el""" start="00:13:47.445" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Might be worth a visit.""" start="00:13:57.037" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""ptg-elisp""" start="00:14:01.882" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""So let's come to ptg-elisp.""" start="00:14:01.882" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""There is ptg-elisp now.""" start="00:14:06.144" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And let's have a look.""" start="00:14:10.466" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""We want a function hello-emacsconf,""" start="00:14:16.168" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""write it in ptg-elisp.""" start="00:14:20.530" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Let's focus on this function and I can show you.""" start="00:14:25.510" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""We will go through it line by line.""" start="00:14:32.559" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""First we define the function with a name and""" start="00:14:35.062" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""the second line here is just a prefix with""" start="00:14:41.955" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""nothing else and this stands for the empty list""" start="00:14:48.481" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""or nil.""" start="00:14:53.826" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""This is the ptg version of nil.""" start="00:14:57.309" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And here we have some syntactic sugar.""" start="00:15:01.993" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""We have a group that starts with a double quote.""" start="00:15:04.775" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And this is the documentation string, two lines,""" start="00:15:08.218" video="mainVideo-prefix" id="subtitle"]]
[[!template text=""""message a hello, precisely say hello EmacsConf."""" start="00:15:12.121" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And this is kind of syntax sugar.""" start="00:15:17.085" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And next one is the call to interactive.""" start="00:15:21.087" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And this is plain old elisp.""" start="00:15:24.648" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And you can see that you are able to use plain""" start="00:15:27.910" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""old elisp also in ptg-elisp.""" start="00:15:32.872" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Might be useful sometimes or give some safety.""" start="00:15:35.433" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And again a little sugar thing: semicolon group,""" start="00:15:40.735" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""means this is a comment here.""" start="00:15:45.878" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So: "note: this function is rather artificial" is the""" start="00:15:49.560" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""comment here, artificial comment.""" start="00:15:53.843" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And here we have the actual call to the message""" start="00:15:57.345" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""function and we want it should give out the""" start="00:16:01.547" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""string.""" start="00:16:07.751" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Let's evaluate this function and try it out.""" start="00:16:09.972" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I evaluate this, I call this function and you can""" start="00:16:15.613" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""see in the mini-buffer at the bottom the expected""" start="00:16:18.334" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""message.""" start="00:16:23.355" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So this is kind of proof that you can use""" start="00:16:24.575" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""ptg-elisp actually.""" start="00:16:31.497" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Source ptg\.pel""" start="00:16:34.237" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""And now about the source code ptg.""" start="00:16:34.237" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""ptg.pel is the source and it is written in ptg-elisp.""" start="00:16:38.777" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So ptg.pel, the source,""" start="00:16:43.040" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""is an example of ptg-elisp code.""" start="00:16:46.423" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""If you want to experiment, it might be a good""" start="00:16:50.186" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""start there.""" start="00:16:52.968" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And there are some group openers in use.""" start="00:16:54.549" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Typical Lisp symbols.""" start="00:16:59.170" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So for comment(;), string("), and quote('), quasi-quote(`),""" start="00:17:04.671" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""and evaluation(,).""" start="00:17:13.454" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And functionality is to transform a ptg-elisp""" start="00:17:16.034" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""file to elisp,""" start="00:17:22.435" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""and evaluate a group directly,""" start="00:17:24.412" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""as we have seen already.""" start="00:17:28.415" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""This is very similar to `eval-last-sexp` in elisp.""" start="00:17:30.036" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Another example here: 6, 7 multiplied.""" start="00:17:37.021" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Let's check if this is possible. You see I""" start="00:17:41.206" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""evaluated this and you see in the bottom line and""" start="00:17:49.048" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""the mini-buffer the result: 42.""" start="00:17:51.808" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So the code is GPL3.""" start="00:17:55.789" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So use, study, distribute, improve it if you like.""" start="00:17:58.930" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Related projects in the programming world""" start="00:18:07.611" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""Some related projects in the programming world""" start="00:18:07.611" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""are i-expressions from Egil Möller for Scheme.""" start="00:18:12.092" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""It's around for some time now and looks like it""" start="00:18:17.253" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""is final.""" start="00:18:22.014" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Have a look at the Scheme page""" start="00:18:22.874" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""https://srfi.schemers.org/srfi-49""" start="00:18:25.675" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""if you are interested.""" start="00:18:33.037" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And there are also the famous m-expressions from""" start="00:18:34.869" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""John McCarthy.""" start="00:18:37.712" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""They are in the making at least since 1965.""" start="00:18:38.533" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Maybe there is some development.""" start="00:18:43.538" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And also Python.""" start="00:18:47.441" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""I think Python is interesting because indent is""" start="00:18:49.504" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""meaningful for the behavior of the program in""" start="00:18:53.367" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Python, as far as I understand.""" start="00:18:56.189" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And this is opposed to indent is irrelevant for""" start="00:18:59.051" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""the behavior of the program, which can be seen in""" start="00:19:02.714" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""many program languages.""" start="00:19:07.478" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Okay, so the end is near.""" start="00:19:10.740" video="mainVideo-prefix" id="subtitle"]]
<div class="transcript-heading">[[!template new="1" text="""Summary""" start="00:19:14.543" video="mainVideo-prefix" id="subtitle"]]</div>[[!template new="1" text="""Let's sum up and fade out.""" start="00:19:14.543" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Again, the subtitle of the talk: A way to write""" start="00:19:18.569" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""symex as a block of prefixed lines.""" start="00:19:22.011" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""This is the core, I think, of this whole prefix""" start="00:19:27.033" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""tab group thing.""" start="00:19:30.335" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""And ptgs can be useful for writing text, in""" start="00:19:31.796" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""particular with support from Emacs, can be used""" start="00:19:34.957" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""for programming.""" start="00:19:39.099" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Find code and info on https://gitlab.com/marcowahl/prefix-tab-groups""" start="00:19:40.840" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""In the Q&A I am gaa in the #emacsconf channel or""" start="00:19:52.123" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""whatever channel, we will see.""" start="00:19:59.104" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""So thank you for having me, for your time and for""" start="00:20:02.285" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""EmacsConf 2026 of course.""" start="00:20:07.266" video="mainVideo-prefix" id="subtitle"]]
[[!template text="""Bye bye!""" start="00:20:11.271" video="mainVideo-prefix" id="subtitle"]]
</div>
Captioner: marco wahl
Questions or comments? Please e-mail [marcowahl@gmail.com](mailto:marcowahl@gmail.com?subject=Comment%20for%20EmacsConf%202023%20prefix%3A%20prefix-tab-groups)
<!-- End of emacsconf-publish-after-page -->
|