]> code.delx.au - gnu-emacs-elpa/blob - packages/debbugs/debbugs-gnu.el
* debbugs.el (debbugs-get-usertag): Fix comments.
[gnu-emacs-elpa] / packages / debbugs / debbugs-gnu.el
1 ;;; debbugs-gnu.el --- interface for the GNU bug tracker
2
3 ;; Copyright (C) 2011, 2012 Free Software Foundation, Inc.
4
5 ;; Author: Lars Magne Ingebrigtsen <larsi@gnus.org>
6 ;; Keywords: comm, hypermedia, maint
7 ;; Package: debbugs
8 ;; Version: 0.3
9
10 ;; This file is part of GNU Emacs.
11
12 ;; GNU Emacs is free software: you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation, either version 3 of the License, or
15 ;; (at your option) any later version.
16
17 ;; GNU Emacs is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
21
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24
25 ;;; Commentary:
26
27 ;; This package provides an interface to bug reports which are located
28 ;; on the GNU bug tracker debbugs.gnu.org. Its main purpose is to
29 ;; show and manipulate bug reports from Emacs, but it could be used
30 ;; also for other GNU projects which use the same bug tracker.
31
32 ;; If you have `debbugs-gnu.el' in your load-path, you could enable
33 ;; the bug tracker commands by the following lines in your ~/.emacs
34 ;;
35 ;; (autoload 'debbugs-gnu "debbugs-gnu" "" 'interactive)
36 ;; (autoload 'debbugs-gnu-search "debbugs-gnu" "" 'interactive)
37 ;; (autoload 'debbugs-gnu-usertags "debbugs-gnu" "" 'interactive)
38
39 ;; The bug tracker is called interactively by
40 ;;
41 ;; M-x debbugs-gnu
42
43 ;; It asks for the severities, for which bugs shall be shown. This can
44 ;; be either just one severity, or a list of severities, separated by
45 ;; comma. Valid severities are "serious", "important", "normal",
46 ;; "minor" or "wishlist". Severities "critical" and "grave" are not
47 ;; used, although configured on the GNU bug tracker. If no severity
48 ;; is given, all bugs are selected.
49
50 ;; There is also the pseudo severity "tagged". When it is used, the
51 ;; function will ask for user tags (a comma separated list), and shows
52 ;; just the bugs which are tagged with them. In general, user tags
53 ;; shall be strings denoting to subprojects of the package, like
54 ;; "cedet" or "tramp" of the package "emacs. If no user tag is given,
55 ;; locally tagged bugs are shown.
56
57 ;; If a prefix is given to the command, more search parameters are
58 ;; asked for, like packages (also a comma separated list, "emacs" is
59 ;; the default), whether archived bugs shall be shown, and whether
60 ;; closed bugs shall be shown.
61
62 ;; Another command is
63 ;;
64 ;; M-x debbugs-gnu-search
65
66 ;; It behaves like `debbugs-gnu', but asks at the beginning for a
67 ;; search phrase to be used for full text search. Additionally, it
68 ;; asks for key-value pairs to filter bugs. Keys are as described in
69 ;; `debbugs-get-status', the corresponding value must be a regular
70 ;; expression to match for. The other parameters are as described in
71 ;; `debbugs-gnu'. Usually, there is just one value except for the
72 ;; attribute "date", which needs two arguments specifying a period in
73 ;; which the bug has been submitted or modified.
74
75 ;; The bug reports are downloaded from the bug tracker. In order to
76 ;; not generate too much load of the server, up to 500 bugs will be
77 ;; downloaded at once. If there are more hits, you will be asked to
78 ;; change this limit, but please don't increase this number too much.
79
80 ;; These default values could be changed also by customer options
81 ;; `debbugs-gnu-default-severities', `debbugs-gnu-default-packages',
82 ;; `debbugs-gnu-default-hits-per-page' and `debbugs-gnu-default-suppress-bugs'.
83
84 ;; The commands create one or more pages of bug lists. Every bug is
85 ;; shown in one line, including the bug number, the status (combining
86 ;; merged bug numbers, keywords and severities), the name of the
87 ;; submitter, and the title of the bug. On every bug line you could
88 ;; apply the following actions by the following keystrokes:
89
90 ;; RET: Show corresponding messages in Gnus
91 ;; "C": Send a control message
92 ;; "t": Mark the bug locally as tagged
93 ;; "d": Show bug attributes
94
95 ;; Furthermore, you could apply the global actions
96
97 ;; "g": Rescan bugs
98 ;; "q": Quit the buffer
99 ;; "s": Toggle bug sorting for age or for state
100 ;; "x": Toggle suppressing of bugs
101 ;; "/": Display only bugs matching a string
102 ;; "w": Display all the currently selected bug reports
103
104 ;; When you visit the related bug messages in Gnus, you could also
105 ;; send control messages by keystroke "C".
106
107 ;; In the header line of every bug list page, you can toggle sorting
108 ;; per column by selecting a column with the mouse. The sorting
109 ;; happens as expected for the respective column; sorting in the Title
110 ;; column is depending on whether you are the owner of a bug.
111
112 ;; Another approach for listing bugs is calling the command
113 ;;
114 ;; M-x debbugs-gnu-usertags
115
116 ;; This command shows you all existing user tags for the packages
117 ;; defined in `debbugs-gnu-default-packages'. A prefix for the
118 ;; command allows you to use other packe names, or an arbitrary string
119 ;; for a user who has tagged bugs. The command returns the list of
120 ;; existing user tags for the given user(s) or package name(s),
121 ;; respectively. Applying RET on a user tag, all bugs tagged with
122 ;; this user tag are shown.
123
124 ;; Unfortunately, it is not possible with the SOAP interface to show
125 ;; all users who have tagged bugs. This list can be retrieved via
126 ;; <http://debbugs.gnu.org/cgi/pkgindex.cgi?indexon=users>.
127
128 ;;; Code:
129
130 (require 'debbugs)
131 (require 'widget)
132 (require 'tabulated-list)
133 (eval-when-compile (require 'cl))
134
135 (autoload 'widget-convert "wid-edit.el")
136 (autoload 'gnus-read-ephemeral-emacs-bug-group "gnus-group")
137 (autoload 'mail-header-subject "nnheader")
138 (autoload 'gnus-summary-article-header "gnus-sum")
139 (autoload 'message-make-from "message")
140
141 (defgroup debbugs-gnu ()
142 "UI for the debbugs.gnu.org bug tracker."
143 :group 'debbugs
144 :version "24.1")
145
146 (defcustom debbugs-gnu-default-severities '("serious" "important" "normal")
147 "*The list severities bugs are searched for.
148 \"tagged\" is not a severity but marks locally tagged bugs."
149 ;; <http://debbugs.gnu.org/Developer.html#severities>
150 :group 'debbugs-gnu
151 :type '(set (const "serious")
152 (const "important")
153 (const "normal")
154 (const "minor")
155 (const "wishlist")
156 (const "tagged"))
157 :version "24.1")
158
159 (defconst debbugs-gnu-all-severities
160 (mapcar 'cadr (cdr (get 'debbugs-gnu-default-severities 'custom-type)))
161 "*List of all possible severities.")
162
163 (defcustom debbugs-gnu-default-packages '("emacs")
164 "*The list of packages to be searched for."
165 ;; <http://debbugs.gnu.org/Packages.html>
166 :group 'debbugs-gnu
167 :type '(set (const "automake")
168 (const "coreutils")
169 (const "debbugs.gnu.org")
170 (const "emacs")
171 (const "emacs-xwidgets")
172 (const "fm")
173 (const "gnus")
174 (const "guile")
175 (const "libtool")
176 (const "woodchuck"))
177 :version "24.1")
178
179 (defconst debbugs-gnu-all-packages
180 (mapcar 'cadr (cdr (get 'debbugs-gnu-default-packages 'custom-type)))
181 "*List of all possible package names.")
182
183 (defcustom debbugs-gnu-default-hits-per-page 500
184 "*The number of bugs shown per page."
185 :group 'debbugs-gnu
186 :type 'integer
187 :version "24.1")
188
189 (defcustom debbugs-gnu-default-suppress-bugs
190 '((pending . "done"))
191 "*A list of specs for bugs to be suppressed.
192 An element of this list is a cons cell \(KEY . REGEXP\), with key
193 being returned by `debbugs-get-status', and VAL a regular
194 expression matching the corresponding value, a string. Showing
195 suppressed bugs is toggled by `debbugs-gnu-toggle-suppress'."
196 :group 'debbugs-gnu
197 :type '(alist :key-type symbol :value-type regexp)
198 :version "24.1")
199
200 (defface debbugs-gnu-new '((t (:foreground "red")))
201 "Face for new reports that nobody has answered.")
202
203 (defface debbugs-gnu-handled '((t (:foreground "ForestGreen")))
204 "Face for reports that have been modified recently.")
205
206 (defface debbugs-gnu-pending '((t (:foreground "MidnightBlue")))
207 "Face for reports that are pending.")
208
209 (defface debbugs-gnu-stale '((t (:foreground "orange")))
210 "Face for reports that have not been touched for a week.")
211
212 (defface debbugs-gnu-done '((t (:foreground "DarkGrey")))
213 "Face for closed bug reports.")
214
215 (defface debbugs-gnu-tagged '((t (:foreground "red")))
216 "Face for reports that have been tagged locally.")
217
218 (defvar debbugs-gnu-widgets nil)
219
220 (defvar debbugs-gnu-widget-map
221 (let ((map (make-sparse-keymap)))
222 (define-key map "\r" 'widget-button-press)
223 (define-key map [mouse-1] 'widget-button-press)
224 (define-key map [mouse-2] 'widget-button-press)
225 map))
226
227 (defvar debbugs-gnu-local-tags nil
228 "List of bug numbers tagged locally, and kept persistent.")
229
230 (defvar debbugs-gnu-persistency-file
231 (expand-file-name (locate-user-emacs-file "debbugs"))
232 "File name of a persistency store for debbugs variables")
233
234 (defun debbugs-gnu-dump-persistency-file ()
235 "Function to store debbugs variables persistently."
236 (with-temp-file debbugs-gnu-persistency-file
237 (insert
238 ";; -*- emacs-lisp -*-\n"
239 ";; Debbugs tags connection history. Don't change this file.\n\n"
240 (format "(setq debbugs-gnu-local-tags '%S)"
241 (sort (copy-sequence debbugs-gnu-local-tags) '<)))))
242
243 (defvar debbugs-gnu-current-query nil
244 "The query object of the current search.
245 It will be applied server-side, when calling `debbugs-get-bugs'.
246 It has the same format as `debbugs-gnu-default-suppress-bugs'.")
247
248 (defvar debbugs-gnu-current-filter nil
249 "The filter object for the current search.
250 It will be applied client-side, when parsing the results of
251 `debbugs-get-status'. It has a similar format as
252 `debbugs-gnu-default-suppress-bugs'. In case of keys representing
253 a date, value is the cons cell \(BEFORE . AFTER\).")
254
255 (defun debbugs-gnu-calendar-read (prompt acceptable &optional initial-contents)
256 "Return a string read from the minibuffer.
257 Derived from `calendar-read'."
258 (let ((value (read-string prompt initial-contents)))
259 (while (not (funcall acceptable value))
260 (setq value (read-string prompt initial-contents)))
261 value))
262
263 (defconst debbugs-gnu-phrase-prompt
264 (propertize
265 "Enter search phrase: "
266 'help-echo "\
267 The search phrase contains words to be searched for, combined by
268 operators like AND, ANDNOT and OR. If there is no operator
269 between the words, AND is used by default. The phrase can also
270 be empty, in this case only the following attributes are used for
271 search."))
272
273 ;;;###autoload
274 (defun debbugs-gnu-search ()
275 "Search for Emacs bugs interactively.
276 Search arguments are requested interactively. The \"search
277 phrase\" is used for full text search in the bugs database.
278 Further key-value pairs are requested until an empty key is
279 returned. If a key cannot be queried by a SOAP request, it is
280 marked as \"client-side filter\"."
281 (interactive)
282
283 (unwind-protect
284 (let ((date-format "\\([[:digit:]]\\{4\\}\\)-\\([[:digit:]]\\{1,2\\}\\)-\\([[:digit:]]\\{1,2\\}\\)")
285 key val1 val2 phrase severities packages archivedp)
286
287 ;; Check for the phrase.
288 (setq phrase (read-string debbugs-gnu-phrase-prompt))
289 (if (zerop (length phrase))
290 (setq phrase nil)
291 (add-to-list 'debbugs-gnu-current-query (cons 'phrase phrase)))
292
293 ;; The other queries.
294 (catch :finished
295 (while t
296 (setq key (completing-read
297 "Enter attribute: "
298 (if phrase
299 '("severity" "package" "tags" "submitter" "date"
300 "subject" "status")
301 '("severity" "package" "archive" "src" "tag"
302 "owner" "submitter" "maint" "correspondent"
303 "date" "log_modified" "last_modified"
304 "found_date" "fixed_date" "unarchived"
305 "subject" "done" "forwarded" "msgid" "summary"))
306 nil t))
307 (cond
308 ;; Server-side queries.
309 ((equal key "severity")
310 (setq
311 severities
312 (completing-read-multiple
313 "Enter severities: " debbugs-gnu-all-severities nil t
314 (mapconcat 'identity debbugs-gnu-default-severities ","))))
315
316 ((equal key "package")
317 (setq
318 packages
319 (completing-read-multiple
320 "Enter packages: " debbugs-gnu-all-packages nil t
321 (mapconcat 'identity debbugs-gnu-default-packages ","))))
322
323 ((equal key "archive")
324 ;; We simplify, by assuming just archived bugs are requested.
325 (setq archivedp t))
326
327 ((member key '("src" "tag" "tags"))
328 (setq val1 (read-string (format "Enter %s: " key)))
329 (when (not (zerop (length val1)))
330 (add-to-list
331 'debbugs-gnu-current-query (cons (intern key) val1))))
332
333 ((member key '("owner" "submitter" "maint" "correspondent"))
334 (setq val1 (read-string "Enter email address: "))
335 (when (not (zerop (length val1)))
336 (add-to-list
337 'debbugs-gnu-current-query (cons (intern key) val1))))
338
339 ((equal key "status")
340 (setq
341 val1
342 (completing-read "Enter status: " '("done" "forwarded" "open")))
343 (when (not (zerop (length val1)))
344 (add-to-list
345 'debbugs-gnu-current-query (cons (intern key) val1))))
346
347 ;; Client-side filters.
348 ((member key '("date" "log_modified" "last_modified"
349 "found_date" "fixed_date" "unarchived"))
350 (setq val1
351 (debbugs-gnu-calendar-read
352 (format "Enter %s before YYYY-MM-DD%s: "
353 key (if phrase "" " (client-side filter)"))
354 (lambda (x)
355 (string-match (concat "^\\(" date-format "\\|\\)$") x))))
356 (if (string-match date-format val1)
357 (setq val1 (floor
358 (float-time
359 (encode-time
360 0 0 0
361 (string-to-number (match-string 3 val1))
362 (string-to-number (match-string 2 val1))
363 (string-to-number (match-string 1 val1))))))
364 (setq val1 nil))
365 (setq val2
366 (debbugs-gnu-calendar-read
367 (format "Enter %s after YYYY-MM-DD%s: "
368 key (if phrase "" " (client-side filter)"))
369 (lambda (x)
370 (string-match (concat "^\\(" date-format "\\|\\)$") x))))
371 (if (string-match date-format val2)
372 (setq val2 (floor
373 (float-time
374 (encode-time
375 0 0 0
376 (string-to-number (match-string 3 val2))
377 (string-to-number (match-string 2 val2))
378 (string-to-number (match-string 1 val2))))))
379 (setq val2 nil))
380 (when (or val1 val2)
381 (add-to-list
382 (if phrase
383 'debbugs-gnu-current-query 'debbugs-gnu-current-filter)
384 (cons (intern key) (cons val1 val2)))))
385
386 ((not (zerop (length key)))
387 (setq val1
388 (funcall
389 (if phrase 'read-string 'read-regexp)
390 (format "Enter %s%s"
391 key (if phrase ": " " (client-side filter)"))))
392 (when (not (zerop (length val1)))
393 (add-to-list
394 (if phrase
395 'debbugs-gnu-current-query 'debbugs-gnu-current-filter)
396 (cons (intern key) val1))))
397
398 ;; The End.
399 (t (throw :finished nil)))))
400
401 ;; Do the search.
402 (debbugs-gnu severities packages archivedp))
403
404 ;; Reset query and filter.
405 (setq debbugs-gnu-current-query nil
406 debbugs-gnu-current-filter nil)))
407
408 ;;;###autoload
409 (defun debbugs-gnu (severities &optional packages archivedp suppress tags)
410 "List all outstanding Emacs bugs."
411 (interactive
412 (let (severities archivedp)
413 (list
414 (setq severities
415 (completing-read-multiple
416 "Severities: " debbugs-gnu-all-severities nil t
417 (mapconcat 'identity debbugs-gnu-default-severities ",")))
418 ;; The next parameters are asked only when there is a prefix.
419 (if current-prefix-arg
420 (completing-read-multiple
421 "Packages: " debbugs-gnu-all-packages nil t
422 (mapconcat 'identity debbugs-gnu-default-packages ","))
423 debbugs-gnu-default-packages)
424 (when current-prefix-arg
425 (setq archivedp (y-or-n-p "Show archived bugs?")))
426 (when (and current-prefix-arg (not archivedp))
427 (y-or-n-p "Suppress unwanted bugs?"))
428 ;; This one must be asked for severity "tagged".
429 (when (member "tagged" severities)
430 (split-string (read-string "User tag(s): ") "," t)))))
431
432 ;; Initialize variables.
433 (when (and (file-exists-p debbugs-gnu-persistency-file)
434 (not debbugs-gnu-local-tags))
435 (with-temp-buffer
436 (insert-file-contents debbugs-gnu-persistency-file)
437 (eval (read (current-buffer)))))
438 (setq debbugs-gnu-widgets nil)
439
440 ;; Add queries.
441 (dolist (severity (if (consp severities) severities (list severities)))
442 (when (not (zerop (length severity)))
443 (add-to-list 'debbugs-gnu-current-query (cons 'severity severity))))
444 (dolist (package (if (consp packages) packages (list packages)))
445 (when (not (zerop (length package)))
446 (add-to-list 'debbugs-gnu-current-query (cons 'package package))))
447 (when archivedp
448 (add-to-list 'debbugs-gnu-current-query '(archive . "1")))
449 (dolist (tag (if (consp tags) tags (list tags)))
450 (when (not (zerop (length tag)))
451 (add-to-list 'debbugs-gnu-current-query (cons 'tag tag))))
452
453 (unwind-protect
454 (let ((hits debbugs-gnu-default-hits-per-page)
455 (ids (debbugs-gnu-get-bugs debbugs-gnu-current-query)))
456
457 (if (> (length ids) hits)
458 (let ((cursor-in-echo-area nil))
459 (setq hits
460 (string-to-number
461 (read-string
462 (format
463 "How many reports (available %d, default %d): "
464 (length ids) hits)
465 nil
466 nil
467 (number-to-string hits))))))
468
469 (if (> (length ids) hits)
470 (let ((i 0)
471 curr-ids)
472 (while ids
473 (setq i (1+ i)
474 curr-ids (butlast ids (- (length ids) hits)))
475 (add-to-list
476 'debbugs-gnu-widgets
477 (widget-convert
478 'push-button
479 :follow-link 'mouse-face
480 :notify (lambda (widget &rest ignore)
481 (debbugs-gnu-show-reports widget))
482 :keymap debbugs-gnu-widget-map
483 :suppress suppress
484 :buffer-name (format "*Emacs Bugs*<%d>" i)
485 :bug-ids curr-ids
486 :query debbugs-gnu-current-query
487 :filter debbugs-gnu-current-filter
488 :help-echo (format "%d-%d" (car ids) (car (last curr-ids)))
489 :format " %[%v%]"
490 (number-to-string i))
491 'append)
492 (setq ids (last ids (- (length ids) hits))))
493 (debbugs-gnu-show-reports (car debbugs-gnu-widgets)))
494
495 (debbugs-gnu-show-reports
496 (widget-convert
497 'const
498 :suppress suppress
499 :buffer-name "*Emacs Bugs*"
500 :bug-ids ids
501 :query debbugs-gnu-current-query
502 :filter debbugs-gnu-current-filter))))
503
504 ;; Reset query and filter.
505 (setq debbugs-gnu-current-query nil
506 debbugs-gnu-current-filter nil)))
507
508 (defun debbugs-gnu-get-bugs (query)
509 "Retrieve bugs numbers from debbugs.gnu.org according search criteria."
510 (let* ((debbugs-port "gnu.org")
511 (tags (assoc 'tag query))
512 (local-tags (and (member '(severity . "tagged") query) (not tags)))
513 (phrase (assoc 'phrase query))
514 args)
515 ;; Compile query arguments.
516 (unless (or query tags)
517 (dolist (elt debbugs-gnu-default-packages)
518 (setq args (append args (list :package elt)))))
519 (dolist (elt query)
520 (unless (equal elt '(severity . "tagged"))
521 (setq args
522 (append
523 args
524 (if phrase
525 (cond
526 ((eq (car elt) 'phrase)
527 (list (list :phrase (cdr elt) :max 500)))
528 ((eq (car elt) 'date)
529 (list (list :date (cddr elt) (cadr elt)
530 :operator "NUMBT")))
531 (t
532 (list (list (intern (concat ":" (symbol-name (car elt))))
533 (cdr elt) :operator "ISTRINC"))))
534 (list (intern (concat ":" (symbol-name (car elt))))
535 (cdr elt)))))))
536
537 (sort
538 (cond
539 ;; If the query contains the pseudo-severity "tagged", we return
540 ;; just the local tagged bugs.
541 (local-tags (copy-sequence debbugs-gnu-local-tags))
542 ;; A full text query.
543 (phrase
544 (mapcar
545 (lambda (x) (cdr (assoc "id" x)))
546 (apply 'debbugs-search-est args)))
547 ;; User tags.
548 (tags (apply 'debbugs-get-usertag args))
549 ;; Otherwise, we retrieve the bugs from the server.
550 (t (apply 'debbugs-get-bugs args)))
551 ;; Sort function.
552 '<)))
553
554 (defvar debbugs-gnu-current-widget nil)
555 (defvar debbugs-gnu-current-limit nil)
556
557 (defvar widget-mouse-face)
558
559 (defun debbugs-gnu-show-reports (widget)
560 "Show bug reports as given in WIDGET property :bug-ids."
561 ;; The tabulated mode sets several local variables. We must get rid
562 ;; of them.
563 (when (get-buffer (widget-get widget :buffer-name))
564 (kill-buffer (widget-get widget :buffer-name)))
565 (pop-to-buffer (get-buffer-create (widget-get widget :buffer-name)))
566 (debbugs-gnu-mode)
567 (let ((inhibit-read-only t)
568 (debbugs-port "gnu.org"))
569 (erase-buffer)
570 (set (make-local-variable 'debbugs-gnu-current-widget) widget)
571
572 (dolist (status (apply 'debbugs-get-status (widget-get widget :bug-ids)))
573 (let* ((id (cdr (assq 'id status)))
574 (words
575 (mapconcat
576 'identity
577 (cons (cdr (assq 'severity status))
578 (cdr (assq 'keywords status)))
579 ","))
580 (address (mail-header-parse-address
581 (decode-coding-string (cdr (assq 'originator status))
582 'utf-8)))
583 (owner (if (cdr (assq 'owner status))
584 (car (mail-header-parse-address
585 (decode-coding-string (cdr (assq 'owner status))
586 'utf-8)))))
587 (subject (decode-coding-string (cdr (assq 'subject status))
588 'utf-8))
589 merged)
590 (unless (equal (cdr (assq 'pending status)) "pending")
591 (setq words
592 (concat words "," (cdr (assq 'pending status)))))
593 (let ((packages (delete "emacs" (cdr (assq 'package status)))))
594 (when packages
595 (setq words (concat words "," (mapconcat 'identity packages ",")))))
596 (when (setq merged (cdr (assq 'mergedwith status)))
597 (setq words (format "%s,%s"
598 (if (numberp merged)
599 merged
600 (mapconcat 'number-to-string merged ","))
601 words)))
602 (when (or (not merged)
603 (not (let ((found nil))
604 (dolist (id (if (listp merged)
605 merged
606 (list merged)))
607 (dolist (entry tabulated-list-entries)
608 (when (equal id (cdr (assq 'id (car entry))))
609 (setq found t))))
610 found)))
611 (add-to-list
612 'tabulated-list-entries
613 (list
614 status
615 (vector
616 (propertize
617 (format "%5d" id)
618 'face
619 ;; Mark tagged bugs.
620 (if (memq id debbugs-gnu-local-tags)
621 'debbugs-gnu-tagged
622 'default))
623 (propertize
624 ;; Mark status and age.
625 words
626 'face
627 (cond
628 ((equal (cdr (assq 'pending status)) "done")
629 'debbugs-gnu-done)
630 ((member "pending" (cdr (assq 'keywords status)))
631 'debbugs-gnu-pending)
632 ((= (cdr (assq 'date status))
633 (cdr (assq 'log_modified status)))
634 'debbugs-gnu-new)
635 ((< (- (float-time)
636 (cdr (assq 'log_modified status)))
637 (* 60 60 24 7 2))
638 'debbugs-gnu-handled)
639 (t
640 'debbugs-gnu-stale)))
641 (propertize
642 ;; Prefer the name over the address.
643 (or (cdr address)
644 (car address))
645 'face
646 ;; Mark own submitted bugs.
647 (if (and (stringp (car address))
648 (string-equal (car address) user-mail-address))
649 'debbugs-gnu-tagged
650 'default))
651 (propertize
652 subject
653 'face
654 ;; Mark owned bugs.
655 (if (and (stringp owner)
656 (string-equal owner user-mail-address))
657 'debbugs-gnu-tagged
658 'default))))
659 'append))))
660 (tabulated-list-init-header)
661 (tabulated-list-print)
662
663 (set-buffer-modified-p nil)
664 (goto-char (point-min))))
665
666 (defun debbugs-gnu-print-entry (list-id cols)
667 "Insert a debbugs entry at point.
668 Used instead of `tabulated-list-print-entry'."
669 ;; This shall be in `debbugs-gnu-show-reports'. But
670 ;; `tabulated-list-print' erases the buffer, therefore we do it
671 ;; here. (bug#9047)
672 (when (and debbugs-gnu-widgets (= (point) (point-min)))
673 (widget-insert "Page:")
674 (mapc
675 (lambda (obj)
676 (if (eq obj debbugs-gnu-current-widget)
677 (widget-put obj :button-face 'widget-button-pressed)
678 (widget-put obj :button-face 'widget-button-face))
679 (widget-apply obj :create))
680 debbugs-gnu-widgets)
681 (widget-insert "\n\n")
682 (save-excursion
683 (widget-insert "\nPage:")
684 (mapc (lambda (obj) (widget-apply obj :create)) debbugs-gnu-widgets)
685 (widget-setup)))
686
687 (let ((beg (point))
688 (pos 0)
689 (case-fold-search t)
690 (id (aref cols 0))
691 (id-length (nth 1 (aref tabulated-list-format 0)))
692 (state (aref cols 1))
693 (state-length (nth 1 (aref tabulated-list-format 1)))
694 (submitter (aref cols 2))
695 (submitter-length (nth 1 (aref tabulated-list-format 2)))
696 (title (aref cols 3))
697 (title-length (nth 1 (aref tabulated-list-format 3))))
698 (when (and
699 ;; We may have a narrowing in effect.
700 (or (not debbugs-gnu-current-limit)
701 (memq (cdr (assq 'id list-id)) debbugs-gnu-current-limit))
702 ;; Filter suppressed bugs.
703 (or (not (widget-get debbugs-gnu-current-widget :suppress))
704 (not (catch :suppress
705 (dolist (check debbugs-gnu-default-suppress-bugs)
706 (when
707 (string-match
708 (cdr check)
709 (or (cdr (assq (car check) list-id)) ""))
710 (throw :suppress t))))))
711 ;; Filter search list.
712 (not (catch :suppress
713 (dolist (check
714 (widget-get debbugs-gnu-current-widget :filter))
715 (let ((val (cdr (assq (car check) list-id))))
716 (if (stringp (cdr check))
717 ;; Regular expression.
718 (when (not (string-match (cdr check) (or val "")))
719 (throw :suppress t))
720 ;; Time value.
721 (when (or (and (numberp (cadr check))
722 (< (cadr check) val))
723 (and (numberp (cddr check))
724 (> (cddr check) val)))
725 (throw :suppress t))))))))
726
727 ;; Insert id.
728 (indent-to (- id-length (length id)))
729 (insert id)
730 ;; Insert state.
731 (indent-to (setq pos (+ pos id-length 1)) 1)
732 (insert (if (> (length state) state-length)
733 (propertize (substring state 0 state-length)
734 'help-echo state)
735 state))
736 ;; Insert submitter.
737 (indent-to (setq pos (+ pos state-length 1)) 1)
738 (insert "[" (if (> (length submitter) (- submitter-length 2))
739 (propertize (substring submitter 0 (- submitter-length 2))
740 'help-echo submitter)
741 submitter))
742 (indent-to (+ pos (1- submitter-length)))
743 (insert "]")
744 ;; Insert title.
745 (indent-to (setq pos (+ pos submitter-length 1)) 1)
746 (insert (propertize title 'help-echo title))
747 ;; Add properties.
748 (add-text-properties
749 beg (point) `(tabulated-list-id ,list-id mouse-face ,widget-mouse-face))
750 (insert ?\n))))
751
752 (defvar debbugs-gnu-mode-map
753 (let ((map (make-sparse-keymap)))
754 (set-keymap-parent map tabulated-list-mode-map)
755 (define-key map "\r" 'debbugs-gnu-select-report)
756 (define-key map [mouse-1] 'debbugs-gnu-select-report)
757 (define-key map [mouse-2] 'debbugs-gnu-select-report)
758 (define-key map "s" 'debbugs-gnu-toggle-sort)
759 (define-key map "t" 'debbugs-gnu-toggle-tag)
760 (define-key map "d" 'debbugs-gnu-display-status)
761 (define-key map "g" 'debbugs-gnu-rescan)
762 (define-key map "x" 'debbugs-gnu-toggle-suppress)
763 (define-key map "/" 'debbugs-gnu-narrow-to-status)
764 (define-key map "w" 'debbugs-gnu-widen)
765 (define-key map "C" 'debbugs-gnu-send-control-message)
766 map))
767
768 (defun debbugs-gnu-rescan ()
769 "Rescan the current set of bug reports."
770 (interactive)
771
772 ;; The last page will be provided with new bug ids.
773 ;; TODO: Do it also for the other pages.
774 (when (and debbugs-gnu-widgets
775 (eq debbugs-gnu-current-widget (car (last debbugs-gnu-widgets))))
776 (let ((first-id (car (widget-get debbugs-gnu-current-widget :bug-ids)))
777 (last-id (car
778 (last (widget-get debbugs-gnu-current-widget :bug-ids))))
779 (ids (debbugs-gnu-get-bugs
780 (widget-get debbugs-gnu-current-widget :query))))
781
782 (while (and (<= first-id last-id) (not (memq first-id ids)))
783 (setq first-id (1+ first-id)))
784
785 (when (<= first-id last-id)
786 (widget-put debbugs-gnu-current-widget :bug-ids (memq first-id ids)))))
787
788 ;; Refresh the buffer. `save-excursion' does not work, so we
789 ;; remember the position.
790 (let ((pos (point)))
791 (debbugs-gnu-show-reports debbugs-gnu-current-widget)
792 (goto-char pos)))
793
794 (defvar debbugs-gnu-sort-state 'number)
795
796 (define-derived-mode debbugs-gnu-mode tabulated-list-mode "Debbugs"
797 "Major mode for listing bug reports.
798
799 All normal editing commands are switched off.
800 \\<debbugs-gnu-mode-map>
801
802 The following commands are available:
803
804 \\{debbugs-gnu-mode-map}"
805 (set (make-local-variable 'debbugs-gnu-sort-state) 'number)
806 (set (make-local-variable 'debbugs-gnu-current-limit) nil)
807 (setq tabulated-list-format [("Id" 5 debbugs-gnu-sort-id)
808 ("State" 20 debbugs-gnu-sort-state)
809 ("Submitter" 25 t)
810 ("Title" 10 debbugs-gnu-sort-title)])
811 (setq tabulated-list-sort-key (cons "Id" nil))
812 (setq tabulated-list-printer 'debbugs-gnu-print-entry)
813 (buffer-disable-undo)
814 (setq truncate-lines t)
815 (setq buffer-read-only t))
816
817 (defun debbugs-gnu-sort-id (s1 s2)
818 (< (cdr (assq 'id (car s1)))
819 (cdr (assq 'id (car s2)))))
820
821 (defconst debbugs-gnu-state-preference
822 '((debbugs-gnu-new . 1)
823 (debbugs-gnu-stale . 2)
824 (debbugs-gnu-handled . 3)
825 (debbugs-gnu-done . 4)
826 (debbugs-gnu-pending . 5)))
827
828 (defun debbugs-gnu-get-state-preference (face-string)
829 (or (cdr (assq (get-text-property 0 'face face-string)
830 debbugs-gnu-state-preference))
831 10))
832
833 (defconst debbugs-gnu-severity-preference
834 '(("serious" . 1)
835 ("important" . 2)
836 ("normal" . 3)
837 ("minor" . 4)
838 ("wishlist" . 5)))
839
840 (defun debbugs-gnu-get-severity-preference (state)
841 (or (cdr (assoc (cdr (assq 'severity state))
842 debbugs-gnu-severity-preference))
843 10))
844
845 (defun debbugs-gnu-sort-state (s1 s2)
846 (let ((id1 (cdr (assq 'id (car s1))))
847 (age1 (debbugs-gnu-get-state-preference (aref (nth 1 s1) 1)))
848 (id2 (cdr (assq 'id (car s2))))
849 (age2 (debbugs-gnu-get-state-preference (aref (nth 1 s2) 1))))
850 (cond
851 ;; Tagged bugs go to the end.
852 ((and (not (memq id1 debbugs-gnu-local-tags))
853 (memq id2 debbugs-gnu-local-tags))
854 t)
855 ((and (memq id1 debbugs-gnu-local-tags)
856 (not (memq id2 debbugs-gnu-local-tags)))
857 nil)
858 ;; Then, we check the age of the bugs.
859 ((< age1 age2)
860 t)
861 ((> age1 age2)
862 nil)
863 ;; If they have the same age, we check for severity.
864 ((< (debbugs-gnu-get-severity-preference (car s1))
865 (debbugs-gnu-get-severity-preference (car s2)))
866 t)
867 (t nil))))
868
869 (defun debbugs-gnu-sort-title (s1 s2)
870 (let ((owner (if (cdr (assq 'owner (car s1)))
871 (car (mail-header-parse-address
872 (decode-coding-string (cdr (assq 'owner (car s1)))
873 'utf-8))))))
874 (and (stringp owner)
875 (string-equal owner user-mail-address))))
876
877 (defun debbugs-gnu-toggle-sort ()
878 "Toggle sorting by age and by state."
879 (interactive)
880 (if (eq debbugs-gnu-sort-state 'number)
881 (progn
882 (setq debbugs-gnu-sort-state 'state)
883 (setq tabulated-list-sort-key (cons "Id" nil)))
884 (setq debbugs-gnu-sort-state 'number)
885 (setq tabulated-list-sort-key (cons "State" nil)))
886 (tabulated-list-init-header)
887 (tabulated-list-print))
888
889 (defun debbugs-gnu-widen ()
890 "Display all the currently selected bug reports."
891 (interactive)
892 (let ((id (debbugs-gnu-current-id t))
893 (inhibit-read-only t))
894 (setq debbugs-gnu-current-limit nil)
895 (tabulated-list-init-header)
896 (tabulated-list-print)
897 (when id
898 (debbugs-gnu-goto id))))
899
900 (defun debbugs-gnu-narrow-to-status (string &optional status-only)
901 "Only display the bugs matching STRING.
902 If STATUS-ONLY (the prefix), ignore matches in the From and
903 Subject fields."
904 (interactive "sNarrow to: \np")
905 (let ((id (debbugs-gnu-current-id t))
906 (inhibit-read-only t)
907 status)
908 (setq debbugs-gnu-current-limit nil)
909 (goto-char (point-min))
910 (while (not (eobp))
911 (setq status (debbugs-gnu-current-status))
912 (if (and (not (member string (assq 'keywords status)))
913 (not (member string (assq 'severity status)))
914 (or status-only
915 (not (string-match string (cdr (assq 'originator status)))))
916 (or status-only
917 (not (string-match string (cdr (assq 'subject status))))))
918 (delete-region (point) (progn (forward-line 1) (point)))
919 (push (cdr (assq 'id status)) debbugs-gnu-current-limit)
920 (forward-line 1)))
921 (when id
922 (debbugs-gnu-goto id))))
923
924 (defun debbugs-gnu-goto (id)
925 "Go to the line displaying bug ID."
926 (goto-char (point-min))
927 (while (and (not (eobp))
928 (not (equal (debbugs-gnu-current-id t) id)))
929 (forward-line 1)))
930
931 (defun debbugs-gnu-toggle-tag ()
932 "Toggle tag of the report in the current line."
933 (interactive)
934 (save-excursion
935 (beginning-of-line)
936 (let ((inhibit-read-only t)
937 (id (debbugs-gnu-current-id)))
938 (if (memq id debbugs-gnu-local-tags)
939 (progn
940 (setq debbugs-gnu-local-tags (delq id debbugs-gnu-local-tags))
941 (put-text-property (point) (+ (point) 5) 'face 'default))
942 (add-to-list 'debbugs-gnu-local-tags id)
943 (put-text-property
944 (+ (point) (- 5 (length (number-to-string id)))) (+ (point) 5)
945 'face 'debbugs-gnu-tagged))))
946 (debbugs-gnu-dump-persistency-file))
947
948 (defun debbugs-gnu-toggle-suppress ()
949 "Suppress bugs marked in `debbugs-gnu-suppress-bugs'."
950 (interactive)
951 (widget-put debbugs-gnu-current-widget :suppress
952 (not (widget-get debbugs-gnu-current-widget :suppress)))
953 (tabulated-list-init-header)
954 (tabulated-list-print))
955
956 (defvar debbugs-gnu-bug-number nil)
957 (defvar debbugs-gnu-subject nil)
958
959 (defun debbugs-gnu-current-id (&optional noerror)
960 (or (cdr (assq 'id (debbugs-gnu-current-status)))
961 (and (not noerror)
962 (error "No bug on the current line"))))
963
964 (defun debbugs-gnu-current-status ()
965 (get-text-property (line-beginning-position) 'tabulated-list-id))
966
967 (defun debbugs-gnu-current-query ()
968 (widget-get debbugs-gnu-current-widget :query))
969
970 (defun debbugs-gnu-display-status (query status)
971 "Display the query and status of the report on the current line."
972 (interactive (list (debbugs-gnu-current-query)
973 (debbugs-gnu-current-status)))
974 (pop-to-buffer "*Bug Status*")
975 (let ((inhibit-read-only t))
976 (erase-buffer)
977 (when query (pp query (current-buffer)))
978 (when status (pp status (current-buffer)))
979 (goto-char (point-min)))
980 (set-buffer-modified-p nil)
981 (special-mode))
982
983 (defun debbugs-gnu-select-report ()
984 "Select the report on the current line."
985 (interactive)
986 ;; We open the report messages.
987 (let* ((status (debbugs-gnu-current-status))
988 (id (cdr (assq 'id status)))
989 (merged (cdr (assq 'mergedwith status))))
990 (gnus-read-ephemeral-emacs-bug-group
991 (cons id (if (listp merged)
992 merged
993 (list merged)))
994 (cons (current-buffer)
995 (current-window-configuration)))
996 (with-current-buffer (window-buffer (selected-window))
997 (set (make-local-variable 'debbugs-gnu-bug-number) id)
998 (set (make-local-variable 'debbugs-gnu-subject)
999 (format "Re: bug#%d: %s" id (cdr (assq 'subject status))))
1000 (debbugs-gnu-summary-mode 1))))
1001
1002 (defvar debbugs-gnu-summary-mode-map
1003 (let ((map (make-sparse-keymap)))
1004 (define-key map "C" 'debbugs-gnu-send-control-message)
1005 map))
1006
1007 (defvar gnus-posting-styles)
1008
1009 (define-minor-mode debbugs-gnu-summary-mode
1010 "Minor mode for providing a debbugs interface in Gnus summary buffers.
1011
1012 \\{debbugs-gnu-summary-mode-map}"
1013 :lighter " Debbugs" :keymap debbugs-gnu-summary-mode-map
1014 (set (make-local-variable 'gnus-posting-styles)
1015 `((".*"
1016 (eval
1017 (when (buffer-live-p gnus-article-copy)
1018 (with-current-buffer gnus-article-copy
1019 (set (make-local-variable 'message-prune-recipient-rules)
1020 '((".*@debbugs.*" "emacs-pretest-bug")
1021 (".*@debbugs.*" "bug-gnu-emacs")
1022 ("[0-9]+@debbugs.*" "submit@debbugs.gnu.org")
1023 ("[0-9]+@debbugs.*" "quiet@debbugs.gnu.org")))
1024 (set (make-local-variable 'message-alter-recipients-function)
1025 (lambda (address)
1026 (if (string-match "\\([0-9]+\\)@donarmstrong"
1027 (car address))
1028 (let ((new (format "%s@debbugs.gnu.org"
1029 (match-string 1 (car address)))))
1030 (cons new new))
1031 address)))
1032 ;; `gnus-posting-styles' is eval'ed after
1033 ;; `message-simplify-subject'. So we cannot use m-s-s.
1034 (setq subject ,debbugs-gnu-subject))))))))
1035
1036 (defun debbugs-gnu-guess-current-id ()
1037 "Guess the ID based on \"#23\"."
1038 (save-excursion
1039 (beginning-of-line)
1040 (and
1041 (or (re-search-forward "#\\([0-9]+\\)" (line-end-position) t)
1042 (progn
1043 (goto-char (point-min))
1044 (re-search-forward "#\\([0-9]+\\)" nil t)))
1045 (string-to-number (match-string 1)))))
1046
1047 (defun debbugs-gnu-send-control-message (message &optional reverse)
1048 "Send a control message for the current bug report.
1049 You can set the severity or add a tag, or close the report. If
1050 you use the special \"done\" MESSAGE, the report will be marked as
1051 fixed, and then closed.
1052
1053 If given a prefix, and given a tag to set, the tag will be
1054 removed instead."
1055 (interactive
1056 (list (completing-read
1057 "Control message: "
1058 '("serious" "important" "normal" "minor" "wishlist"
1059 "done" "donenotabug" "donewontfix" "doneunreproducible"
1060 "unarchive" "reopen" "close"
1061 "merge" "forcemerge"
1062 "owner" "noowner"
1063 "invalid"
1064 "reassign"
1065 "patch" "wontfix" "moreinfo" "unreproducible" "fixed" "notabug"
1066 "pending" "help" "security" "confirmed"
1067 "usertag")
1068 nil t)
1069 current-prefix-arg))
1070 (let* ((id (or debbugs-gnu-bug-number ; Set on group entry.
1071 (debbugs-gnu-guess-current-id)
1072 (debbugs-gnu-current-id)))
1073 (version
1074 (when (member message '("close" "done"))
1075 (read-string
1076 "Version: "
1077 (cond
1078 ;; Emacs development versions.
1079 ((string-match
1080 "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)\\." emacs-version)
1081 (format "%s.%d"
1082 (match-string 1 emacs-version)
1083 (1+ (string-to-number (match-string 2 emacs-version)))))
1084 ;; Emacs release versions.
1085 ((string-match
1086 "^\\([0-9]+\\)\\.\\([0-9]+\\)\\.\\([0-9]+\\)$" emacs-version)
1087 (format "%s.%s"
1088 (match-string 1 emacs-version)
1089 (match-string 2 emacs-version)))
1090 (t emacs-version))))))
1091 (with-temp-buffer
1092 (insert "To: control@debbugs.gnu.org\n"
1093 "From: " (message-make-from) "\n"
1094 (format "Subject: control message for bug #%d\n" id)
1095 "\n"
1096 (cond
1097 ((member message '("unarchive" "reopen" "noowner"))
1098 (format "%s %d\n" message id))
1099 ((member message '("merge" "forcemerge"))
1100 (format "%s %d %s\n" message id
1101 (read-string "Merge with bug #: ")))
1102 ((equal message "owner")
1103 (format "owner %d !\n" id))
1104 ((equal message "reassign")
1105 (format "reassign %d %s\n" id (read-string "Package(s): ")))
1106 ((equal message "close")
1107 (format "close %d %s\n" id version))
1108 ((equal message "done")
1109 (format "tags %d fixed\nclose %d %s\n" id id version))
1110 ((member message '("donenotabug" "donewontfix"
1111 "doneunreproducible"))
1112 (format "tags %d %s\nclose %d\n" id (substring message 4) id))
1113 ((member message '("serious" "important" "normal"
1114 "minor" "wishlist"))
1115 (format "severity %d %s\n" id message))
1116 ((equal message "invalid")
1117 (format "tags %d notabug\ntags %d wontfix\nclose %d\n"
1118 id id id))
1119 ((equal message "usertag")
1120 (format "user %s\nusertag %d %s\n"
1121 (completing-read
1122 "Package name or email address: "
1123 (append
1124 debbugs-gnu-all-packages (list user-mail-address))
1125 nil nil (car debbugs-gnu-default-packages))
1126 id (read-string "User tag: ")))
1127 (t
1128 (format "tags %d%s %s\n"
1129 id (if reverse " -" "")
1130 message))))
1131 (funcall send-mail-function))))
1132
1133 (defvar debbugs-gnu-usertags-mode-map
1134 (let ((map (make-sparse-keymap)))
1135 (set-keymap-parent map tabulated-list-mode-map)
1136 (define-key map "\r" 'debbugs-gnu-select-usertag)
1137 (define-key map [mouse-1] 'debbugs-gnu-select-usertag)
1138 (define-key map [mouse-2] 'debbugs-gnu-select-usertag)
1139 map))
1140
1141 (define-derived-mode debbugs-gnu-usertags-mode tabulated-list-mode "Usertags"
1142 "Major mode for listing user tags.
1143
1144 All normal editing commands are switched off.
1145 \\<debbugs-gnu-usertags-mode-map>
1146
1147 The following commands are available:
1148
1149 \\{debbugs-gnu-usertags-mode-map}"
1150 (buffer-disable-undo)
1151 (setq truncate-lines t)
1152 (setq buffer-read-only t))
1153
1154 ;;;###autoload
1155 (defun debbugs-gnu-usertags (&optional packages)
1156 "List all outstanding Emacs bugs."
1157 (interactive
1158 (list
1159 (if current-prefix-arg
1160 (completing-read-multiple
1161 "Package name(s) or email address: "
1162 (append debbugs-gnu-all-packages (list user-mail-address)) nil nil
1163 (mapconcat 'identity debbugs-gnu-default-packages ","))
1164 debbugs-gnu-default-packages)))
1165
1166 (unwind-protect
1167 (let ((inhibit-read-only t)
1168 (debbugs-port "gnu.org")
1169 (buffer-name "*Emacs User Tags*")
1170 (user-tab-length
1171 (1+ (apply 'max (length "User") (mapcar 'length packages)))))
1172
1173 ;; Create buffer.
1174 (when (get-buffer buffer-name)
1175 (kill-buffer buffer-name))
1176 (pop-to-buffer (get-buffer-create buffer-name))
1177 (debbugs-gnu-usertags-mode)
1178 (setq tabulated-list-format `[("User" ,user-tab-length t)
1179 ("Tag" 10 t)])
1180 (setq tabulated-list-sort-key (cons "User" nil))
1181 ;(setq tabulated-list-printer 'debbugs-gnu-print-entry)
1182 (erase-buffer)
1183
1184 ;; Retrieve user tags.
1185 (dolist (package packages)
1186 (dolist (tag (debbugs-get-usertag :package package))
1187 (add-to-list
1188 'tabulated-list-entries
1189 ;; `tabulated-list-id' is the parameter list for `debbugs-gnu'.
1190 `((("tagged") (,package) nil nil (,tag))
1191 ,(vector (propertize package 'mouse-face widget-mouse-face)
1192 (propertize tag 'mouse-face widget-mouse-face)))
1193 'append)))
1194
1195 ;; Show them.
1196 (tabulated-list-init-header)
1197 (tabulated-list-print)
1198
1199 (set-buffer-modified-p nil)
1200 (goto-char (point-min)))))
1201
1202 (defun debbugs-gnu-select-usertag ()
1203 "Select the user tag on the current line."
1204 (interactive)
1205 ;; We open the bug reports.
1206 (let ((args (get-text-property (line-beginning-position) 'tabulated-list-id)))
1207 (when args (apply 'debbugs-gnu args))))
1208
1209 (provide 'debbugs-gnu)
1210
1211 ;;; TODO:
1212
1213 ;; * Reorganize pages after client-side filtering.
1214
1215 ;;; debbugs-gnu.el ends here