From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Insert character pairs Date: Sun, 09 May 2004 00:43:36 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8765b64mt3.fsf@mail.jurta.org> References: <87brlb1840.fsf@mail.jurta.org> <87smeka7aj.fsf@mail.jurta.org> <871xm2ol7j.fsf@mail.jurta.org> <871xlxofz0.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1084052796 4241 80.91.224.253 (8 May 2004 21:46:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 8 May 2004 21:46:36 +0000 (UTC) Cc: bojohan+news@dd.chalmers.se, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat May 08 23:46:29 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BMZeP-0004Hl-00 for ; Sat, 08 May 2004 23:46:29 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BMZeP-0005kl-00 for ; Sat, 08 May 2004 23:46:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.33) id 1BMZdg-0007K5-Kb for emacs-devel@quimby.gnus.org; Sat, 08 May 2004 17:45:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.33) id 1BMZda-0007HW-QB for emacs-devel@gnu.org; Sat, 08 May 2004 17:45:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.33) id 1BMZd4-0006yo-At for emacs-devel@gnu.org; Sat, 08 May 2004 17:45:37 -0400 Original-Received: from [66.33.219.19] (helo=spoon.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.33) id 1BMZd3-0006xz-UF; Sat, 08 May 2004 17:45:06 -0400 Original-Received: from mail.jurta.org (80-235-37-27-dsl.mus.estpak.ee [80.235.37.27]) by spoon.dreamhost.com (Postfix) with ESMTP id 07BF413D84A; Sat, 8 May 2004 14:45:02 -0700 (PDT) Original-To: Stefan Monnier User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22941 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22941 Stefan Monnier writes: > Why not just move the formatting part of pp-to-string out of pp-to-string > into a new function pp-format or some such (and make pp-to-string call it)? > That will also make pp-to-string more readable. Actually, I started to implement the variant you described, but abandoned it, because I thought that ability to format a string in `pp-to-string' might be generally useful. However, formatting a string will be equally easy even with a separate function that formats a buffer (by inserting that string into a temporary buffer). So a separate function you described is ok (I'd name it `pp-buffer'). -- Juri Linkov http://www.jurta.org/emacs/