From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: OGAWA Hirofumi Newsgroups: gmane.emacs.devel Subject: Re: The issue with with-temp-buffer (or with-current-buffer) Date: Sat, 16 Dec 2017 06:46:46 +0900 Message-ID: <874lor8y0p.fsf@mail.parknet.co.jp> References: <87d13f97bd.fsf@mail.parknet.co.jp> <83shcbsoj2.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1513374422 9756 195.159.176.226 (15 Dec 2017 21:47:02 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 15 Dec 2017 21:47:02 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 15 22:46:58 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ePxon-0002DA-U7 for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2017 22:46:58 +0100 Original-Received: from localhost ([::1]:48575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePxou-0005FV-V9 for ged-emacs-devel@m.gmane.org; Fri, 15 Dec 2017 16:47:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePxol-0005EL-Ib for emacs-devel@gnu.org; Fri, 15 Dec 2017 16:46:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ePxok-0002f2-TB for emacs-devel@gnu.org; Fri, 15 Dec 2017 16:46:55 -0500 Original-Received: from mail.parknet.co.jp ([210.171.160.6]:52519) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ePxog-0002ZD-W3; Fri, 15 Dec 2017 16:46:51 -0500 Original-Received: from ibmpc.myhome.or.jp (server.parknet.ne.jp [210.171.168.39]) by mail.parknet.co.jp (Postfix) with ESMTP id 223F4170001; Sat, 16 Dec 2017 06:46:48 +0900 (JST) Original-Received: from devron.myhome.or.jp (root@devron.myhome.or.jp [192.168.0.3]) by ibmpc.myhome.or.jp (8.15.2/8.15.2/Debian-9) with ESMTPS id vBFLkk9k032743 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Dec 2017 06:46:47 +0900 Original-Received: from devron.myhome.or.jp (hirofumi@localhost [127.0.0.1]) by devron.myhome.or.jp (8.15.2/8.15.2/Debian-9) with ESMTPS id vBFLkkgI001663 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 16 Dec 2017 06:46:46 +0900 Original-Received: (from hirofumi@localhost) by devron.myhome.or.jp (8.15.2/8.15.2/Submit) id vBFLkkK0001662; Sat, 16 Dec 2017 06:46:46 +0900 In-Reply-To: <83shcbsoj2.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Dec 2017 22:51:29 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 210.171.160.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:221116 Archived-At: Eli Zaretskii writes: >> After some debugging, I noticed `with-current-buffer' that is >> used in `with-temp-buffer' doesn't restore `point'. > > Please try the latest shr.el from the emacs-26 branch, I think you > will find that this problem is solved there. > >> Well so, this behavior (doesn't restore point) of >> `with-temp-buffer' (or `with-current-buffer') is intented or bug? > > It's intended. > >> And to fix this issue, we should change which one of >> with-temp-buffer, with-current-buffer, shr-insert-document, or >> user of shr-insert-document? > > I think shr.el was already fixed. I've tested the following master and emacs-26 branches... master 5e6fb1e246b1e7f44ebba48e7e24f597a8eb92dd emacs-26 3003ac046900f9e7fdaa3161b99dbb1cc8f37b32 However result is still same (there is the described issue). Thanks. -- OGAWA Hirofumi