~nyergler/python-mode/pdbtrack-mapping

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
Commands `column-marker-1', `column-marker-2', and
`column-marker-3' each highlight a given column (using different
background colors, by default).

- With no prefix argument, each highlights the current column
  (where the cursor is).

- With a non-negative numeric prefix argument, each highlights that
  column.

- With plain `C-u' (no number), each turns off its highlighting.

- With `C-u C-u', each turns off all column highlighting.

If two commands highlight the same column, the last-issued
highlighting command shadows the other - only the last-issued
highlighting is seen.  If that "topmost" highlighting is then
turned off, the other highlighting for that column then shows
through.

Examples:

M-x column-marker-1 highlights the column where the cursor is, in
face `column-marker-1'.

C-u 70 M-x column-marker-2 highlights column 70 in face
`column-marker-2'.

C-u 70 M-x column-marker-3 highlights column 70 in face
`column-marker-3'.  The face `column-marker-2' highlighting no
longer shows.

C-u M-x column-marker-3 turns off highlighting for column-marker-3,
so face `column-marker-2' highlighting shows again for column 70.

C-u C-u M-x column-marker-1 (or -2 or -3) erases all column
highlighting.

These commands use `font-lock-fontify-buffer', so syntax
highlighting (`font-lock-mode') must be turned on.  There might be
a performance impact during refontification.