From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Trying coccinelle Date: Fri, 22 Jun 2012 12:22:52 +0200 Message-ID: <4FE4477C.9050407@gmx.at> 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; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1340360589 19869 80.91.229.3 (22 Jun 2012 10:23:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 22 Jun 2012 10:23:09 +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 12:23:06 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 1Si10z-0004OT-HJ for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2012 12:22:57 +0200 Original-Received: from localhost ([::1]:52803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si10z-0002KV-GV for ged-emacs-devel@m.gmane.org; Fri, 22 Jun 2012 06:22:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Si10s-0002J1-KC for emacs-devel@gnu.org; Fri, 22 Jun 2012 06:22:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Si10r-0008Sz-05 for emacs-devel@gnu.org; Fri, 22 Jun 2012 06:22:50 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:47738) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Si10q-0008Sk-Ln for emacs-devel@gnu.org; Fri, 22 Jun 2012 06:22:48 -0400 Original-Received: (qmail invoked by alias); 22 Jun 2012 10:22:47 -0000 Original-Received: from 62-47-46-16.adsl.highway.telekom.at (EHLO [62.47.46.16]) [62.47.46.16] by mail.gmx.net (mp036) with SMTP; 22 Jun 2012 12:22:47 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18BIStwAhMBLfYylnaHxeNdA7kxEXsoDaCtqdu5fI n1V72ykrETB7NX In-Reply-To: <4FE40955.1030105@yandex.ru> X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.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:151082 Archived-At: > Here is another cleanup of some buffer-related > code designed with the help from this nice tool. I'd prefer a function `Fbuffer_normalize' with one argument - if it's nil return the current buffer, - if it's a string return the live buffer with that name, - if it's a buffer return it if it's live, - raise an error otherwise, used wherever a buffer-like objects appears as an argument. martin