From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Insert character pairs Date: Wed, 05 May 2004 16:20:30 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87brlb1840.fsf@mail.jurta.org> <87smeka7aj.fsf@mail.jurta.org> <871xm2ol7j.fsf@mail.jurta.org> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1083790164 22726 80.91.224.253 (5 May 2004 20:49:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 May 2004 20:49:24 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed May 05 22:49:08 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 1BLTKF-0001lr-00 for ; Wed, 05 May 2004 22:49:07 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BLTKF-0003oF-00 for ; Wed, 05 May 2004 22:49:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLTHU-0004AE-I3 for emacs-devel@quimby.gnus.org; Wed, 05 May 2004 16:46:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BLSyU-0004Hw-0P for emacs-devel@gnu.org; Wed, 05 May 2004 16:26:38 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BLSsZ-0001oO-8B for emacs-devel@gnu.org; Wed, 05 May 2004 16:21:02 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BLSsY-0001ni-Pd for emacs-devel@gnu.org; Wed, 05 May 2004 16:20:30 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1BLSsY-0004wJ-72; Wed, 05 May 2004 16:20:30 -0400 Original-To: bojohan+news@dd.chalmers.se (=?iso-8859-1?q?Johan_Bockg=E5rd?=) In-reply-to: (bojohan+news@dd.chalmers.se) 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:22813 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22813 > + (let* (p (str (pp-to-string (save-excursion > + (prog1 (read (current-buffer)) ^ But this would also lead to all comments being removed , right? Yes, it would. So people would only want to use this in special situations. In the past, I think I've seen mechanisms that allow the Lisp reader to remember where there were comments and associate the comments with the surrounding code. But that's a big job, not a simple change like the one here proposed.