From 4da09534ee2d0a58f82f56163e09bd041adf933f Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 1 Aug 2015 14:21:02 +0300 Subject: [PATCH] Ignore buffer restriction for tags-loop-eval * lisp/progmodes/etags.el (tags-loop-continue): Ignore buffer restriction (bug#21167). --- lisp/progmodes/etags.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/etags.el b/lisp/progmodes/etags.el index f5745a9c8e8..04c3ce110f7 100644 --- a/lisp/progmodes/etags.el +++ b/lisp/progmodes/etags.el @@ -1846,7 +1846,9 @@ nil, we exit; otherwise we scan the next file." ;; Now operate on the file. ;; If value is non-nil, continue to scan the next file. - (tags-loop-eval tags-loop-operate)) + (save-restriction + (widen) + (tags-loop-eval tags-loop-operate))) (setq file-finished t)) (and messaged (null tags-loop-operate) -- 2.39.5