]> code.delx.au - gnu-emacs-elpa/commitdiff
Clear up the current limit when narrowing.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2012 12:34:00 +0000 (14:34 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2012 12:34:00 +0000 (14:34 +0200)
Also used `inhibit-read-only' instead of `buffer-read-only'.

packages/debbugs/debbugs-gnu.el

index 1621a342d69cd879612ad54f66576c8769f394da..cc959918309647338fcaa945b4d3354104d6ba16 100644 (file)
@@ -851,7 +851,7 @@ The following commands are available:
   "Display all the currently selected bug reports."
   (interactive)
   (let ((id (debbugs-gnu-current-id t))
-       (buffer-read-only nil))
+       (inhibit-read-only t))
     (setq debbugs-gnu-current-limit nil)
     (tabulated-list-init-header)
     (tabulated-list-print)
@@ -864,8 +864,9 @@ If STATUS-ONLY (the prefix), ignore matches in the From and
 Subject fields."
   (interactive "sNarrow to: \np")
   (let ((id (debbugs-gnu-current-id t))
-       (buffer-read-only nil)
+       (inhibit-read-only t)
        status)
+    (setq debbugs-gnu-current-limit nil)
     (goto-char (point-min))
     (while (not (eobp))
       (setq status (debbugs-gnu-current-status))