From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: prin1-to-string noescape parameter Date: Sat, 01 Nov 2014 08:34:56 +0100 Message-ID: <87y4rvml0f.fsf@igel.home> References: <87y4rwnjev.fsf@igel.home> <87a94cm07y.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414827323 10276 80.91.229.3 (1 Nov 2014 07:35:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Nov 2014 07:35:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 01 08:35:16 2014 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 1XkTDO-0000Hg-AC for ged-emacs-devel@m.gmane.org; Sat, 01 Nov 2014 08:35:14 +0100 Original-Received: from localhost ([::1]:45593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkTDN-0003Jy-S7 for ged-emacs-devel@m.gmane.org; Sat, 01 Nov 2014 03:35:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51426) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkTDF-0003D9-8E for emacs-devel@gnu.org; Sat, 01 Nov 2014 03:35:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkTD9-00056G-J7 for emacs-devel@gnu.org; Sat, 01 Nov 2014 03:35:05 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]:43960) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkTD9-00055W-CC for emacs-devel@gnu.org; Sat, 01 Nov 2014 03:34:59 -0400 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3jVBxF62LSz3hjJD; Sat, 1 Nov 2014 08:34:57 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3jVBxF4Z5Mzvh4Q; Sat, 1 Nov 2014 08:34:57 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id MRsVUdNpyJrh; Sat, 1 Nov 2014 08:34:56 +0100 (CET) X-Auth-Info: ZP+/hWtRm/0slqAPiVQanc8AiQrYi7XsjssGWiTVFTq28PapDYz469f5voU3rwO0 Original-Received: from igel.home (host-188-174-212-56.customer.m-online.net [188.174.212.56]) by mail.mnet-online.de (Postfix) with ESMTPA; Sat, 1 Nov 2014 08:34:56 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 6D6892C1CDF; Sat, 1 Nov 2014 08:34:56 +0100 (CET) X-Yow: Sorry, wrong ZIP CODE!! In-Reply-To: (Oleh Krehel's message of "Fri, 31 Oct 2014 22:24:30 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.10 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:176191 Archived-At: Oleh Krehel writes: >>> The issue is that if I have `foo.bar` in the code, and then I re-format >>> my code by: >>> >>> - read text >>> - delete text >>> - manipulate lisp object >>> - insert manipulated lisp object >>> >>> And now my code contains `foo\.bar`, although I don't want it. >> >> By passing the text through the lisp reading you are discarding all >> redundancy, so it is impossible in general to get back the original >> representation. > > Not possible in general, but the thing that I want can be done > by changing slightly the condition at line 240 of print.c No, you can't. You have already discarded all necessary information. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."