]> code.delx.au - gnu-emacs-elpa/commitdiff
Make sure the buffer isn't read-only before altering.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 11 Apr 2012 13:13:09 +0000 (15:13 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Wed, 11 Apr 2012 13:13:09 +0000 (15:13 +0200)
packages/debbugs/debbugs-gnu.el

index 6a8d588b345cbfc79fa1c4a003352ed4defc69a5..265da200cc0678a9cfe09fff553a6a6ceb74492a 100644 (file)
@@ -846,7 +846,8 @@ The following commands are available:
 (defun debbugs-gnu-widen ()
   "Display all the currently selected bug reports."
   (interactive)
-  (let ((id (debbugs-gnu-current-id t)))
+  (let ((id (debbugs-gnu-current-id t))
+       (buffer-read-only nil))
     (tabulated-list-init-header)
     (tabulated-list-print)
     (when id
@@ -856,6 +857,7 @@ The following commands are available:
   "Only display the bugs matching STRING."
   (interactive "sNarrow to: ")
   (let ((id (debbugs-gnu-current-id t))
+       (buffer-read-only nil)
        status)
     (debbugs-gnu-widen)
     (goto-char (point-min))
@@ -873,7 +875,8 @@ The following commands are available:
 (defun debbugs-gnu-goto (id)
   "Go to the line displaying bug ID."
   (goto-char (point-min))
-  (while (not (equal (debbugs-gnu-current-id t) id))
+  (while (and (not (eobp))
+             (not (equal (debbugs-gnu-current-id t) id)))
     (forward-line 1)))
 
 (defun debbugs-gnu-toggle-tag ()