entry, so that we don't have to rely on subject header mangling,
which is fragile.
(debbugs-emacs): Display multiple merges prettier.
+ (debbugs-toggle-sort): Allow sorting from the final line.
2011-07-02 Michael Albinus <michael.albinus@gmx.de>
(interactive)
(beginning-of-line)
(let ((buffer-read-only nil)
- (current-bug (buffer-substring (point) (+ (point) 5))))
+ (current-bug (and (not (eobp))
+ (buffer-substring (point) (+ (point) 5)))))
(goto-char (point-min))
(setq debbugs-sort-state
(if (eq debbugs-sort-state 'number)
(or (cdr (assq (get-text-property (+ (point) 7) 'face)
debbugs-state-preference))
10))))
- (goto-char (point-min))
- (re-search-forward (concat "^" current-bug) nil t)))
+ (if (not current-bug)
+ (goto-char (point-max))
+ (goto-char (point-min))
+ (re-search-forward (concat "^" current-bug) nil t))))
(defvar debbugs-bug-number nil)