From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: prin1-to-string noescape parameter Date: Fri, 31 Oct 2014 22:24:30 +0100 Message-ID: References: <87y4rwnjev.fsf@igel.home> <87a94cm07y.fsf@igel.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1414790945 17604 80.91.229.3 (31 Oct 2014 21:29:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Oct 2014 21:29:05 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 31 22:28:59 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 1XkJkh-00083r-3i for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2014 22:28:59 +0100 Original-Received: from localhost ([::1]:44098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkJkg-0001IL-FE for ged-emacs-devel@m.gmane.org; Fri, 31 Oct 2014 17:28:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50821) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkJgO-0004ZZ-27 for emacs-devel@gnu.org; Fri, 31 Oct 2014 17:24:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkJgN-0005ZK-5X for emacs-devel@gnu.org; Fri, 31 Oct 2014 17:24:31 -0400 Original-Received: from mail-qc0-x22b.google.com ([2607:f8b0:400d:c01::22b]:35901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkJgM-0005ZF-Vi for emacs-devel@gnu.org; Fri, 31 Oct 2014 17:24:31 -0400 Original-Received: by mail-qc0-f171.google.com with SMTP id m20so6730123qcx.30 for ; Fri, 31 Oct 2014 14:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=TAx4zqOXdxVsCJDkcLn0+iW9uNvzsSedigSFESfyPeg=; b=ldkbaADFtkGOO7owf94LcXWNMirVHh3RiBbfnljjk8Bq9kmzNBAUuGzO/hqFy/B/Qn YQBNOrVGmZYYWFIGJm+7VUjkMMzZxGgbtOPAw07mPt08857MVb5QTWF/faVq1F1TtJX5 S7pS0s9AVTHcQ8YJDDCAYGM5GWspPF5QNm+8g0uPFus940qUQv14WafagRdRnpRL/YLi +Mx79zGrUSszc2ILGS8UFjHeuSeBePOKZGWw1VpaapX/bBVj+xTNiRSQJkem5L3tddNH iAl+plGEvBPKIWIuM9Etm/V8cSChGX/VOGaoKrSAuplpJY0+zm9NJHJjBePHg3xyHidI sGlQ== X-Received: by 10.229.216.1 with SMTP id hg1mr20482302qcb.15.1414790670616; Fri, 31 Oct 2014 14:24:30 -0700 (PDT) Original-Received: by 10.140.101.215 with HTTP; Fri, 31 Oct 2014 14:24:30 -0700 (PDT) In-Reply-To: <87a94cm07y.fsf@igel.home> X-Google-Sender-Auth: MWfZdCjaouZOGFsON2kFAfUUxo4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c01::22b X-Mailman-Approved-At: Fri, 31 Oct 2014 17:28:37 -0400 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:176175 Archived-At: >> 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 There are already `print_escape_newlines', `print_escape_multibyte' etc., so I propose to add one more that makes these tricky chars in symbols be not quoted. regards, Oleh