* lisp/simple.el (set-variable): Tweak recent doc fix.
[emacs.git] / lisp / emacs-lisp / tabulated-list.el
blob9119c3a5adeb4e7fdd3c9ec668b79d3ee8d91151
1 ;;; tabulated-list.el --- generic major mode for tabulated lists -*- lexical-binding: t -*-
3 ;; Copyright (C) 2011-2015 Free Software Foundation, Inc.
5 ;; Author: Chong Yidong <cyd@stupidchicken.com>
6 ;; Keywords: extensions, lisp
7 ;; Version: 1.0
9 ;; This file is part of GNU Emacs.
11 ;; GNU Emacs is free software: you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation, either version 3 of the License, or
14 ;; (at your option) any later version.
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 ;;; Commentary:
26 ;; This file defines Tabulated List mode, a generic major mode for
27 ;; displaying lists of tabulated data, intended for other major modes
28 ;; to inherit from. It provides several utility routines, e.g. for
29 ;; pretty-printing lines of tabulated data to fit into the appropriate
30 ;; columns.
32 ;; For usage information, see the documentation of `tabulated-list-mode'.
34 ;; This package originated from Tom Tromey's Package Menu mode,
35 ;; extended and generalized to be used by other modes.
37 ;;; Code:
39 ;; The reason `tabulated-list-format' and other variables are
40 ;; permanent-local is to make it convenient to switch to a different
41 ;; major mode, switch back, and have the original Tabulated List data
42 ;; still valid. See, for example, ebuff-menu.el.
44 (defvar-local tabulated-list-format nil
45 "The format of the current Tabulated List mode buffer.
46 This should be a vector of elements (NAME WIDTH SORT . PROPS),
47 where:
48 - NAME is a string describing the column.
49 This is the label for the column in the header line.
50 Different columns must have non-`equal' names.
51 - WIDTH is the width to reserve for the column.
52 For the final element, its numerical value is ignored.
53 - SORT specifies how to sort entries by this column.
54 If nil, this column cannot be used for sorting.
55 If t, sort by comparing the string value printed in the column.
56 Otherwise, it should be a predicate function suitable for
57 `sort', accepting arguments with the same form as the elements
58 of `tabulated-list-entries'.
59 - PROPS is a plist of additional column properties.
60 Currently supported properties are:
61 - `:right-align': If non-nil, the column should be right-aligned.
62 - `:pad-right': Number of additional padding spaces to the
63 right of the column (defaults to 1 if omitted).")
64 (put 'tabulated-list-format 'permanent-local t)
66 (defvar-local tabulated-list-use-header-line t
67 "Whether the Tabulated List buffer should use a header line.")
69 (defvar-local tabulated-list-entries nil
70 "Entries displayed in the current Tabulated List buffer.
71 This should be either a function, or a list.
72 If a list, each element has the form (ID [DESC1 ... DESCN]),
73 where:
74 - ID is nil, or a Lisp object uniquely identifying this entry,
75 which is used to keep the cursor on the \"same\" entry when
76 rearranging the list. Comparison is done with `equal'.
78 - Each DESC is a column descriptor, one for each column
79 specified in `tabulated-list-format'. A descriptor is either
80 a string, which is printed as-is, or a list (LABEL . PROPS),
81 which means to use `insert-text-button' to insert a text
82 button with label LABEL and button properties PROPS.
83 The string, or button label, must not contain any newline.
85 If `tabulated-list-entries' is a function, it is called with no
86 arguments and must return a list of the above form.")
87 (put 'tabulated-list-entries 'permanent-local t)
89 (defvar-local tabulated-list-padding 0
90 "Number of characters preceding each Tabulated List mode entry.
91 By default, lines are padded with spaces, but you can use the
92 function `tabulated-list-put-tag' to change this.")
93 (put 'tabulated-list-padding 'permanent-local t)
95 (defvar tabulated-list-revert-hook nil
96 "Hook run before reverting a Tabulated List buffer.
97 This is commonly used to recompute `tabulated-list-entries'.")
99 (defvar-local tabulated-list-printer 'tabulated-list-print-entry
100 "Function for inserting a Tabulated List entry at point.
101 It is called with two arguments, ID and COLS. ID is a Lisp
102 object identifying the entry, and COLS is a vector of column
103 descriptors, as documented in `tabulated-list-entries'.")
105 (defvar-local tabulated-list-sort-key nil
106 "Sort key for the current Tabulated List mode buffer.
107 If nil, no additional sorting is performed.
108 Otherwise, this should be a cons cell (NAME . FLIP).
109 NAME is a string matching one of the column names in
110 `tabulated-list-format' (the corresponding SORT entry in
111 `tabulated-list-format' then specifies how to sort). FLIP, if
112 non-nil, means to invert the resulting sort.")
113 (put 'tabulated-list-sort-key 'permanent-local t)
115 (defsubst tabulated-list-get-id (&optional pos)
116 "Return the entry ID of the Tabulated List entry at POS.
117 The value is an ID object from `tabulated-list-entries', or nil.
118 POS, if omitted or nil, defaults to point."
119 (get-text-property (or pos (point)) 'tabulated-list-id))
121 (defsubst tabulated-list-get-entry (&optional pos)
122 "Return the Tabulated List entry at POS.
123 The value is a vector of column descriptors, or nil if there is
124 no entry at POS. POS, if omitted or nil, defaults to point."
125 (get-text-property (or pos (point)) 'tabulated-list-entry))
127 (defun tabulated-list-put-tag (tag &optional advance)
128 "Put TAG in the padding area of the current line.
129 TAG should be a string, with length <= `tabulated-list-padding'.
130 If ADVANCE is non-nil, move forward by one line afterwards."
131 (unless (stringp tag)
132 (error "Invalid argument to `tabulated-list-put-tag'"))
133 (unless (> tabulated-list-padding 0)
134 (error "Unable to tag the current line"))
135 (save-excursion
136 (beginning-of-line)
137 (when (tabulated-list-get-entry)
138 (let ((beg (point))
139 (inhibit-read-only t))
140 (forward-char tabulated-list-padding)
141 (insert-and-inherit
142 (let ((width (string-width tag)))
143 (if (<= width tabulated-list-padding)
144 (concat tag
145 (make-string (- tabulated-list-padding width) ?\s))
146 (truncate-string-to-width tag tabulated-list-padding))))
147 (delete-region beg (+ beg tabulated-list-padding)))))
148 (if advance
149 (forward-line)))
151 (defvar tabulated-list-mode-map
152 (let ((map (copy-keymap special-mode-map)))
153 (set-keymap-parent map button-buffer-map)
154 (define-key map "n" 'next-line)
155 (define-key map "p" 'previous-line)
156 (define-key map "S" 'tabulated-list-sort)
157 (define-key map [follow-link] 'mouse-face)
158 (define-key map [mouse-2] 'mouse-select-window)
159 map)
160 "Local keymap for `tabulated-list-mode' buffers.")
162 (defvar tabulated-list-sort-button-map
163 (let ((map (make-sparse-keymap)))
164 (define-key map [header-line mouse-1] 'tabulated-list-col-sort)
165 (define-key map [header-line mouse-2] 'tabulated-list-col-sort)
166 (define-key map [mouse-1] 'tabulated-list-col-sort)
167 (define-key map [mouse-2] 'tabulated-list-col-sort)
168 (define-key map "\C-m" 'tabulated-list-sort)
169 (define-key map [follow-link] 'mouse-face)
170 map)
171 "Local keymap for `tabulated-list-mode' sort buttons.")
173 (defvar tabulated-list-glyphless-char-display
174 (let ((table (make-char-table 'glyphless-char-display nil)))
175 (set-char-table-parent table glyphless-char-display)
176 ;; Some text terminals can't display the Unicode arrows; be safe.
177 (aset table 9650 (cons nil "^"))
178 (aset table 9660 (cons nil "v"))
179 table)
180 "The `glyphless-char-display' table in Tabulated List buffers.")
182 (defvar tabulated-list--header-string nil
183 "Holds the header if `tabulated-list-use-header-line' is nil.
184 Populated by `tabulated-list-init-header'.")
185 (defvar tabulated-list--header-overlay nil)
187 (defun tabulated-list-init-header ()
188 "Set up header line for the Tabulated List buffer."
189 ;; FIXME: Should share code with tabulated-list-print-col!
190 (let ((x (max tabulated-list-padding 0))
191 (button-props `(help-echo "Click to sort by column"
192 mouse-face highlight
193 keymap ,tabulated-list-sort-button-map))
194 (cols nil))
195 (push (propertize " " 'display `(space :align-to ,x)) cols)
196 (dotimes (n (length tabulated-list-format))
197 (let* ((col (aref tabulated-list-format n))
198 (label (nth 0 col))
199 (width (nth 1 col))
200 (props (nthcdr 3 col))
201 (pad-right (or (plist-get props :pad-right) 1))
202 (right-align (plist-get props :right-align))
203 (next-x (+ x pad-right width)))
204 (push
205 (cond
206 ;; An unsortable column
207 ((not (nth 2 col))
208 (propertize label 'tabulated-list-column-name label))
209 ;; The selected sort column
210 ((equal (car col) (car tabulated-list-sort-key))
211 (apply 'propertize
212 (concat label
213 (cond
214 ((> (+ 2 (length label)) width) "")
215 ((cdr tabulated-list-sort-key) " ▲")
216 (t " ▼")))
217 'face 'bold
218 'tabulated-list-column-name label
219 button-props))
220 ;; Unselected sortable column.
221 (t (apply 'propertize label
222 'tabulated-list-column-name label
223 button-props)))
224 cols)
225 (when right-align
226 (let ((shift (- width (string-width (car cols)))))
227 (when (> shift 0)
228 (setq cols
229 (cons (car cols)
230 (cons (propertize (make-string shift ?\s)
231 'display
232 `(space :align-to ,(+ x shift)))
233 (cdr cols))))
234 (setq x (+ x shift)))))
235 (if (>= pad-right 0)
236 (push (propertize " "
237 'display `(space :align-to ,next-x)
238 'face 'fixed-pitch)
239 cols))
240 (setq x next-x)))
241 (setq cols (apply 'concat (nreverse cols)))
242 (if tabulated-list-use-header-line
243 (setq header-line-format cols)
244 (setq header-line-format nil)
245 (setq-local tabulated-list--header-string cols))))
247 (defun tabulated-list-print-fake-header ()
248 "Insert a fake Tabulated List \"header line\" at the start of the buffer.
249 Do nothing if `tabulated-list--header-string' is nil."
250 (when tabulated-list--header-string
251 (goto-char (point-min))
252 (let ((inhibit-read-only t))
253 (insert tabulated-list--header-string "\n")
254 (if tabulated-list--header-overlay
255 (move-overlay tabulated-list--header-overlay (point-min) (point))
256 (setq-local tabulated-list--header-overlay
257 (make-overlay (point-min) (point))))
258 (overlay-put tabulated-list--header-overlay 'face 'underline))))
260 (defun tabulated-list-revert (&rest ignored)
261 "The `revert-buffer-function' for `tabulated-list-mode'.
262 It runs `tabulated-list-revert-hook', then calls `tabulated-list-print'."
263 (interactive)
264 (unless (derived-mode-p 'tabulated-list-mode)
265 (error "The current buffer is not in Tabulated List mode"))
266 (run-hooks 'tabulated-list-revert-hook)
267 (tabulated-list-print t))
269 (defun tabulated-list--column-number (name)
270 (let ((len (length tabulated-list-format))
271 (n 0)
272 found)
273 (while (and (< n len) (null found))
274 (if (equal (car (aref tabulated-list-format n)) name)
275 (setq found n))
276 (setq n (1+ n)))
277 (or found
278 (error "No column named %s" name))))
280 (defun tabulated-list--get-sorter ()
281 "Return a sorting predicate for the current tabulated-list.
282 Return nil if `tabulated-list-sort-key' specifies an unsortable
283 column. Negate the predicate that would be returned if
284 `tabulated-list-sort-key' has a non-nil cdr."
285 (when (and tabulated-list-sort-key
286 (car tabulated-list-sort-key))
287 (let* ((sort-column (car tabulated-list-sort-key))
288 (n (tabulated-list--column-number sort-column))
289 (sorter (nth 2 (aref tabulated-list-format n))))
290 (when (eq sorter t); Default sorter checks column N:
291 (setq sorter (lambda (A B)
292 (let ((a (aref (cadr A) n))
293 (b (aref (cadr B) n)))
294 (string< (if (stringp a) a (car a))
295 (if (stringp b) b (car b)))))))
296 ;; Reversed order.
297 (if (cdr tabulated-list-sort-key)
298 (lambda (a b) (not (funcall sorter a b)))
299 sorter))))
301 (defun tabulated-list-print (&optional remember-pos update)
302 "Populate the current Tabulated List mode buffer.
303 This sorts the `tabulated-list-entries' list if sorting is
304 specified by `tabulated-list-sort-key'. It then erases the
305 buffer and inserts the entries with `tabulated-list-printer'.
307 Optional argument REMEMBER-POS, if non-nil, means to move point
308 to the entry with the same ID element as the current line and
309 recenter window line accordingly.
311 Non-nil UPDATE argument means to use an alternative printing
312 method which is faster if most entries haven't changed since the
313 last print. The only difference in outcome is that tags will not
314 be removed from entries that haven't changed (see
315 `tabulated-list-put-tag'). Don't use this immediately after
316 changing `tabulated-list-sort-key'."
317 (let ((inhibit-read-only t)
318 (entries (if (functionp tabulated-list-entries)
319 (funcall tabulated-list-entries)
320 tabulated-list-entries))
321 (sorter (tabulated-list--get-sorter))
322 entry-id saved-pt saved-col window-line)
323 (and remember-pos
324 (setq entry-id (tabulated-list-get-id))
325 (setq saved-col (current-column))
326 (when (eq (window-buffer) (current-buffer))
327 (setq window-line
328 (count-screen-lines (window-start) (point)))))
329 ;; Sort the entries, if necessary.
330 (when sorter
331 (setq entries (sort entries sorter)))
332 (unless (functionp tabulated-list-entries)
333 (setq tabulated-list-entries entries))
334 ;; Without a sorter, we have no way to just update.
335 (when (and update (not sorter))
336 (setq update nil))
337 (if update (goto-char (point-min))
338 ;; Redo the buffer, unless we're just updating.
339 (erase-buffer)
340 (unless tabulated-list-use-header-line
341 (tabulated-list-print-fake-header)))
342 ;; Finally, print the resulting list.
343 (dolist (elt entries)
344 (let ((id (car elt)))
345 (and entry-id
346 (equal entry-id id)
347 (setq entry-id nil
348 saved-pt (point)))
349 ;; If the buffer this empty, simply print each elt.
350 (if (or (not update) (eobp))
351 (apply tabulated-list-printer elt)
352 (while (let ((local-id (tabulated-list-get-id)))
353 ;; If we find id, then nothing to update.
354 (cond ((equal id local-id)
355 (forward-line 1)
356 nil)
357 ;; If this entry sorts after id (or it's the
358 ;; end), then just insert id and move on.
359 ((funcall sorter elt
360 ;; FIXME: Might be faster if
361 ;; don't construct this list.
362 (list local-id (tabulated-list-get-entry)))
363 (apply tabulated-list-printer elt)
364 nil)
365 ;; We find an entry that sorts before id,
366 ;; it needs to be deleted.
367 (t t)))
368 (let ((old (point)))
369 (forward-line 1)
370 (delete-region old (point)))))))
371 (set-buffer-modified-p nil)
372 ;; If REMEMBER-POS was specified, move to the "old" location.
373 (if saved-pt
374 (progn (goto-char saved-pt)
375 (move-to-column saved-col)
376 (when window-line
377 (recenter window-line)))
378 (goto-char (point-min)))))
380 (defun tabulated-list-print-entry (id cols)
381 "Insert a Tabulated List entry at point.
382 This is the default `tabulated-list-printer' function. ID is a
383 Lisp object identifying the entry to print, and COLS is a vector
384 of column descriptors."
385 (let ((beg (point))
386 (x (max tabulated-list-padding 0))
387 (ncols (length tabulated-list-format))
388 (inhibit-read-only t))
389 (if (> tabulated-list-padding 0)
390 (insert (make-string x ?\s)))
391 (dotimes (n ncols)
392 (setq x (tabulated-list-print-col n (aref cols n) x)))
393 (insert ?\n)
394 ;; Ever so slightly faster than calling `put-text-property' twice.
395 (add-text-properties
396 beg (point)
397 `(tabulated-list-id ,id tabulated-list-entry ,cols))))
399 (defun tabulated-list-print-col (n col-desc x)
400 "Insert a specified Tabulated List entry at point.
401 N is the column number, COL-DESC is a column descriptor (see
402 `tabulated-list-entries'), and X is the column number at point.
403 Return the column number after insertion."
404 ;; TODO: don't truncate to `width' if the next column is align-right
405 ;; and has some space left.
406 (let* ((format (aref tabulated-list-format n))
407 (name (nth 0 format))
408 (width (nth 1 format))
409 (props (nthcdr 3 format))
410 (pad-right (or (plist-get props :pad-right) 1))
411 (right-align (plist-get props :right-align))
412 (label (if (stringp col-desc) col-desc (car col-desc)))
413 (label-width (string-width label))
414 (help-echo (concat (car format) ": " label))
415 (opoint (point))
416 (not-last-col (< (1+ n) (length tabulated-list-format))))
417 ;; Truncate labels if necessary (except last column).
418 (and not-last-col
419 (> label-width width)
420 (setq label (truncate-string-to-width label width nil nil t)
421 label-width width))
422 (setq label (bidi-string-mark-left-to-right label))
423 (when (and right-align (> width label-width))
424 (let ((shift (- width label-width)))
425 (insert (propertize (make-string shift ?\s)
426 'display `(space :align-to ,(+ x shift))))
427 (setq width (- width shift))
428 (setq x (+ x shift))))
429 (if (stringp col-desc)
430 (insert (if (get-text-property 0 'help-echo label)
431 label
432 (propertize label 'help-echo help-echo)))
433 (apply 'insert-text-button label (cdr col-desc)))
434 (let ((next-x (+ x pad-right width)))
435 ;; No need to append any spaces if this is the last column.
436 (when not-last-col
437 (when (> pad-right 0) (insert (make-string pad-right ?\s)))
438 (insert (propertize
439 (make-string (- next-x x label-width pad-right) ?\s)
440 'display `(space :align-to ,next-x))))
441 (put-text-property opoint (point) 'tabulated-list-column-name name)
442 next-x)))
444 (defun tabulated-list-delete-entry ()
445 "Delete the Tabulated List entry at point.
446 Return a list (ID COLS), where ID is the ID of the deleted entry
447 and COLS is a vector of its column descriptors. Move point to
448 the beginning of the deleted entry. Return nil if there is no
449 entry at point.
451 This function only changes the buffer contents; it does not alter
452 `tabulated-list-entries'."
453 ;; Assume that each entry occupies one line.
454 (let* ((id (tabulated-list-get-id))
455 (cols (tabulated-list-get-entry))
456 (inhibit-read-only t))
457 (when cols
458 (delete-region (line-beginning-position) (1+ (line-end-position)))
459 (list id cols))))
461 (defun tabulated-list-set-col (col desc &optional change-entry-data)
462 "Change the Tabulated List entry at point, setting COL to DESC.
463 COL is the column number to change, or the name of the column to change.
464 DESC is the new column descriptor, which is inserted via
465 `tabulated-list-print-col'.
467 If CHANGE-ENTRY-DATA is non-nil, modify the underlying entry data
468 by setting the appropriate slot of the vector originally used to
469 print this entry. If `tabulated-list-entries' has a list value,
470 this is the vector stored within it."
471 (let* ((opoint (point))
472 (eol (line-end-position))
473 (pos (line-beginning-position))
474 (id (tabulated-list-get-id pos))
475 (entry (tabulated-list-get-entry pos))
476 (prop 'tabulated-list-column-name)
477 (inhibit-read-only t)
478 name)
479 (cond ((numberp col)
480 (setq name (car (aref tabulated-list-format col))))
481 ((stringp col)
482 (setq name col
483 col (tabulated-list--column-number col)))
484 (t
485 (error "Invalid column %s" col)))
486 (unless entry
487 (error "No Tabulated List entry at position %s" opoint))
488 (unless (equal (get-text-property pos prop) name)
489 (while (and (setq pos
490 (next-single-property-change pos prop nil eol))
491 (< pos eol)
492 (not (equal (get-text-property pos prop) name)))))
493 (when (< pos eol)
494 (delete-region pos (next-single-property-change pos prop nil eol))
495 (goto-char pos)
496 (tabulated-list-print-col col desc (current-column))
497 (if change-entry-data
498 (aset entry col desc))
499 (put-text-property pos (point) 'tabulated-list-id id)
500 (put-text-property pos (point) 'tabulated-list-entry entry)
501 (goto-char opoint))))
503 (defun tabulated-list-col-sort (&optional e)
504 "Sort Tabulated List entries by the column of the mouse click E."
505 (interactive "e")
506 (let* ((pos (event-start e))
507 (obj (posn-object pos)))
508 (with-current-buffer (window-buffer (posn-window pos))
509 (tabulated-list--sort-by-column-name
510 (get-text-property (if obj (cdr obj) (posn-point pos))
511 'tabulated-list-column-name
512 (car obj))))))
514 (defun tabulated-list-sort (&optional n)
515 "Sort Tabulated List entries by the column at point.
516 With a numeric prefix argument N, sort the Nth column."
517 (interactive "P")
518 (let ((name (if n
519 (car (aref tabulated-list-format n))
520 (get-text-property (point)
521 'tabulated-list-column-name))))
522 (tabulated-list--sort-by-column-name name)))
524 (defun tabulated-list--sort-by-column-name (name)
525 (when (and name (derived-mode-p 'tabulated-list-mode))
526 ;; Flip the sort order on a second click.
527 (if (equal name (car tabulated-list-sort-key))
528 (setcdr tabulated-list-sort-key
529 (not (cdr tabulated-list-sort-key)))
530 (setq tabulated-list-sort-key (cons name nil)))
531 (tabulated-list-init-header)
532 (tabulated-list-print t)))
534 ;;; The mode definition:
536 (define-derived-mode tabulated-list-mode special-mode "Tabulated"
537 "Generic major mode for browsing a list of items.
538 This mode is usually not used directly; instead, other major
539 modes are derived from it, using `define-derived-mode'.
541 In this major mode, the buffer is divided into multiple columns,
542 which are labeled using the header line. Each non-empty line
543 belongs to one \"entry\", and the entries can be sorted according
544 to their column values.
546 An inheriting mode should usually do the following in their body:
548 - Set `tabulated-list-format', specifying the column format.
549 - Set `tabulated-list-revert-hook', if the buffer contents need
550 to be specially recomputed prior to `revert-buffer'.
551 - Maybe set a `tabulated-list-entries' function (see below).
552 - Maybe set `tabulated-list-printer' (see below).
553 - Maybe set `tabulated-list-padding'.
554 - Call `tabulated-list-init-header' to initialize `header-line-format'
555 according to `tabulated-list-format'.
557 An inheriting mode is usually accompanied by a \"list-FOO\"
558 command (e.g. `list-packages', `list-processes'). This command
559 creates or switches to a buffer and enables the major mode in
560 that buffer. If `tabulated-list-entries' is not a function, the
561 command should initialize it to a list of entries for displaying.
562 Finally, it should call `tabulated-list-print'.
564 `tabulated-list-print' calls the printer function specified by
565 `tabulated-list-printer', once for each entry. The default
566 printer is `tabulated-list-print-entry', but a mode that keeps
567 data in an ewoc may instead specify a printer function (e.g., one
568 that calls `ewoc-enter-last'), with `tabulated-list-print-entry'
569 as the ewoc pretty-printer."
570 (setq-local truncate-lines t)
571 (setq-local buffer-read-only t)
572 (setq-local buffer-undo-list t)
573 (setq-local revert-buffer-function #'tabulated-list-revert)
574 (setq-local glyphless-char-display tabulated-list-glyphless-char-display)
575 ;; Avoid messing up the entries' display just because the first
576 ;; column of the first entry happens to begin with a R2L letter.
577 (setq bidi-paragraph-direction 'left-to-right))
579 (put 'tabulated-list-mode 'mode-class 'special)
581 (provide 'tabulated-list)
583 ;; Local Variables:
584 ;; coding: utf-8
585 ;; End:
587 ;;; tabulated-list.el ends here