From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#7524: 24.0.50; backquote converts newlines in strings to "\n" Date: Thu, 23 Dec 2010 14:53:39 -0800 Message-ID: <000B33E7F2484128B3849AD9541163B6@us.oracle.com> References: <9C4145152E1B4A9890C4A8DA520A51ED@us.oracle.com><9F064DA0407E4234B3DA11C0722B97D1@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1293146604 7959 80.91.229.12 (23 Dec 2010 23:23:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2010 23:23:24 +0000 (UTC) Cc: 7524@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 24 00:23:20 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PVuVE-00046o-4J for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Dec 2010 00:23:20 +0100 Original-Received: from localhost ([127.0.0.1]:32980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVuVD-0007i8-BF for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Dec 2010 18:23:19 -0500 Original-Received: from [140.186.70.92] (port=39737 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVuV2-0007gH-UO for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 18:23:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVuV0-0002DA-T5 for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 18:23:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57395) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVuV0-0002D4-RQ for bug-gnu-emacs@gnu.org; Thu, 23 Dec 2010 18:23:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PVty1-0001uR-L6; Thu, 23 Dec 2010 17:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Dec 2010 22:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7524 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7524-submit@debbugs.gnu.org id=B7524.12931445307320 (code B ref 7524); Thu, 23 Dec 2010 22:49:01 +0000 Original-Received: (at 7524) by debbugs.gnu.org; 23 Dec 2010 22:48:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVtxp-0001u0-Nr for submit@debbugs.gnu.org; Thu, 23 Dec 2010 17:48:50 -0500 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PVtxn-0001tl-6r for 7524@debbugs.gnu.org; Thu, 23 Dec 2010 17:48:47 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oBNMtNl4020261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 23 Dec 2010 22:55:24 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oBNMTp26006554; Thu, 23 Dec 2010 22:55:22 GMT Original-Received: from abhmt004.oracle.com by acsmt353.oracle.com with ESMTP id 902507201293144820; Thu, 23 Dec 2010 14:53:40 -0800 Original-Received: from dradamslap1 (/10.159.220.75) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 23 Dec 2010 14:53:40 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcuRgq3tGM9dre4NTz60wB5Qo/Xc0gRb/6tQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 23 Dec 2010 17:49:01 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42777 Archived-At: > And yes, Custom should probably try to wrap lines somehow in > such cases (e.g. pretty-print the sexp). Any chance this pretty-printing will actually get done? The utility goes well beyond `\n' in strings. Just now I created a defcustom whose :type is (repeat (restricted-sexp :tag "Keymap" :match-alternatives (keymapp 'nil))) And you cannot believe how ugly such a value is, not to mention how error-prone editing it would be! Regardless of what one might think of trying to use a keymap value this way, the point is that any non-trivial Lisp sexp needs to be pretty-printed. `restricted-sexp can be a quick-and-dirty substitute for defining the widgets needed to get a new :type construct. But it is rendered pretty unusable without (at least) pretty-printing. There are likely to be plenty of Lisp values for which pretty-printing would help. Any chance you will add this to the Emacs TO-DO list?