From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Trying coccinelle Date: Fri, 22 Jun 2012 15:40:49 +0900 Message-ID: <874nq3c0i6.fsf@catnip.gol.com> References: <4FDF5AF2.2080503@yandex.ru> <4FDFFFAA.8030505@yandex.ru> <4FE40955.1030105@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1340347263 17713 80.91.229.3 (22 Jun 2012 06:41:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2012 06:41:03 +0000 (UTC) Cc: Emacs development discussions To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 22 08:41:02 2012 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 1ShxYD-0003iT-N2 for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2012 08:41:01 +0200 Original-Received: from localhost ([::1]:48168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShxYD-0004qR-NU for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2012 02:41:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShxY9-0004q9-Pm for emacs-devel@gnu.org; Fri, 22 Jun 2012 02:40:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ShxY5-0002zR-Gq for emacs-devel@gnu.org; Fri, 22 Jun 2012 02:40:57 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:50029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ShxY5-0002zD-7G; Fri, 22 Jun 2012 02:40:53 -0400 Original-Received: from 218.33.195.114.eo.eaccess.ne.jp ([218.33.195.114] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) (envelope-from ) id 1ShxY2-0005AU-Fg; Fri, 22 Jun 2012 15:40:50 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 89499DFE6; Fri, 22 Jun 2012 15:40:49 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: <4FE40955.1030105@yandex.ru> (Dmitry Antipov's message of "Fri, 22 Jun 2012 09:57:41 +0400") Original-Lines: 20 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 203.216.5.73 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:151079 Archived-At: Dmitry Antipov writes: > - struct buffer *buf = current_buffer; > + struct buffer *buf = buffer_or_current (buffer); > struct buffer *old = buf; > > - if (! NILP (buffer)) > - { > - CHECK_BUFFER (buffer); > - buf = XBUFFER (buffer); > - } > - The new code is not equivalent when BUFFER isn't nil or the current buffer... -miles -- I'm beginning to think that life is just one long Yoko Ono album; no rhyme or reason, just a lot of incoherent shrieks and then it's over. --Ian Wolff