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: ewoc--adjust ugliness Date: Fri, 26 May 2006 23:25:59 -0400 Message-ID: References: <7dbe73ed0605260349v104c2d7al17f59064c303f8ac@mail.gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1148700384 7379 80.91.229.2 (27 May 2006 03:26:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 27 May 2006 03:26:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat May 27 05:26:22 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FjpRU-00016I-7D for ged-emacs-devel@m.gmane.org; Sat, 27 May 2006 05:26:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FjpRT-00074X-K4 for ged-emacs-devel@m.gmane.org; Fri, 26 May 2006 23:26:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FjpRI-00074K-MO for emacs-devel@gnu.org; Fri, 26 May 2006 23:26:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FjpRG-000748-Ap for emacs-devel@gnu.org; Fri, 26 May 2006 23:26:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FjpRG-000745-58 for emacs-devel@gnu.org; Fri, 26 May 2006 23:26:06 -0400 Original-Received: from [209.226.175.54] (helo=tomts10-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FjpWF-0007Ae-Ey; Fri, 26 May 2006 23:31:15 -0400 Original-Received: from localhost ([70.55.141.245]) by tomts10-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20060527032602.RERL2009.tomts10-srv.bellnexxia.net@localhost>; Fri, 26 May 2006 23:26:02 -0400 Original-Received: by localhost (Postfix, from userid 20848) id 280CE8258; Fri, 26 May 2006 23:25:59 -0400 (EDT) Original-To: Thien-Thi Nguyen In-Reply-To: (Thien-Thi Nguyen's message of "26 May 2006 18:49:38 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:55345 Archived-At: > + (defun ewoc--wrap (func) > + (lexical-let ((ewoc--user-pp func)) > + (lambda (data) > + (insert-before-markers "\n") > + (forward-char -1) > + (funcall ewoc--user-pp data) > + (forward-char 1)))) Why not (defun ewoc--wrap (func) (lexical-let ((ewoc--user-pp func)) (lambda (data) (funcall ewoc--user-pp data) (insert "\n")))) -- Stefan