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: Re: Any exceptions for the 15-line rule? Date: Sun, 05 May 2013 01:02:43 -0400 Message-ID: References: <87d2tgu0ad.fsf@yandex.ru> <51849C29.2040201@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1367730171 29456 80.91.229.3 (5 May 2013 05:02:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 5 May 2013 05:02:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun May 05 07:02:50 2013 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 1UYr60-0007Kt-Vj for ged-emacs-devel@m.gmane.org; Sun, 05 May 2013 07:02:49 +0200 Original-Received: from localhost ([::1]:41105 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYr60-0005Zz-Jl for ged-emacs-devel@m.gmane.org; Sun, 05 May 2013 01:02:48 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYr5y-0005Zh-BQ for emacs-devel@gnu.org; Sun, 05 May 2013 01:02:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UYr5w-0007Fw-Bh for emacs-devel@gnu.org; Sun, 05 May 2013 01:02:46 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:13287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UYr5w-0007Fm-7y for emacs-devel@gnu.org; Sun, 05 May 2013 01:02:44 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFFMCqRF/2dsb2JhbABEvw4Xc4IfAQVWIxALDiYSFBgNJIgkwS2RCgOkeoFegxM X-IPAS-Result: Av4EABK/CFFMCqRF/2dsb2JhbABEvw4Xc4IfAQVWIxALDiYSFBgNJIgkwS2RCgOkeoFegxM X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="11063347" Original-Received: from 76-10-164-69.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.69]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 05 May 2013 01:02:39 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 49EE767917; Sun, 5 May 2013 01:02:43 -0400 (EDT) In-Reply-To: <51849C29.2040201@yandex.ru> (Dmitry Gutov's message of "Sat, 04 May 2013 09:27:05 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:159316 Archived-At: >> - (with-temp-buffer >> + (buf (get-buffer-create "*clang-output*")) >> + (with-current-buffer buf (erase-buffer)) >> + (with-current-buffer buf > So, I've merged the patch into Git repo with some modifications, but looks > like the above change is perfectly justified: the new code uses > call-process-region', which takes the region from the current buffer, so > using it with `with-temp-buffer' doesn't seem possible. I must be missing something because I don't see why that changes anything. Stefan