From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Nonsense in gnus-uu.el Date: Fri, 10 Apr 2015 10:42:11 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1428676953 31573 80.91.229.3 (10 Apr 2015 14:42:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Apr 2015 14:42:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 10 16:42:23 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yga8T-00076a-R6 for ged-emacs-devel@m.gmane.org; Fri, 10 Apr 2015 16:42:21 +0200 Original-Received: from localhost ([::1]:39745 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yga8T-000606-66 for ged-emacs-devel@m.gmane.org; Fri, 10 Apr 2015 10:42:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55014) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yga8P-000600-P9 for emacs-devel@gnu.org; Fri, 10 Apr 2015 10:42:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yga8M-0007DH-Cd for emacs-devel@gnu.org; Fri, 10 Apr 2015 10:42:17 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:52050) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yga8M-0007DB-8a for emacs-devel@gnu.org; Fri, 10 Apr 2015 10:42:14 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t3AEgBoS003007; Fri, 10 Apr 2015 10:42:11 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 50FB11FC7; Fri, 10 Apr 2015 10:42:11 -0400 (EDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5271=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5271> : inlines <2674> : streams <1420050> : uri <1903202> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:185263 Archived-At: Could someone fix the problem below? Stefan diff --git a/lisp/gnus/gnus-uu.el b/lisp/gnus/gnus-uu.el index 55a881c..f5d4495 100644 --- a/lisp/gnus/gnus-uu.el +++ b/lisp/gnus/gnus-uu.el @@ -875,8 +875,13 @@ When called interactively, prompt for REGEXP." (goto-char (setq beg (point-max))) (save-excursion (save-restriction + ;; FIXME: We save excursion and restriction in "*gnus-uu-body*", + ;; only to immediately move to another buffer? And we narrow in + ;; that buffer without save-restriction? And we finish the + ;; save-restriction with a call to `widen'? How can that + ;; make sense? (set-buffer buffer) - (let (buffer-read-only) + (let ((inhibit-read-only t)) (set-text-properties (point-min) (point-max) nil) ;; These two are necessary for XEmacs 19.12 fascism. (put-text-property (point-min) (point-max) 'invisible nil)