From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 10:42:46 2010 Received: (at submit) by debbugs.gnu.org; 10 Jun 2010 14:42:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMixy-0003pg-6i for submit@debbugs.gnu.org; Thu, 10 Jun 2010 10:42:46 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMixv-0003pa-TM for submit@debbugs.gnu.org; Thu, 10 Jun 2010 10:42:44 -0400 Received: from lists.gnu.org ([199.232.76.165]:33330) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OMixq-0001co-UT for submit@debbugs.gnu.org; Thu, 10 Jun 2010 10:42:39 -0400 Received: from [140.186.70.92] (port=55051 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMixp-0002rK-D3 for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 10:42:38 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMixo-0003LF-Al for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 10:42:37 -0400 Received: from mail-gw0-f41.google.com ([74.125.83.41]:46096) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMixo-0003EV-7S for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 10:42:36 -0400 Received: by mail-gw0-f41.google.com with SMTP id 15so632553gwb.0 for ; Thu, 10 Jun 2010 07:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=P/Ud9bY2b22ce3bTYW/uhDO8PKgVVBGadUw5v2Vs8BI=; b=uOdcg3GEj0hBSd2hVHmhg2VrBFuGe+6JJdc38ZAvhakZJshcj3akVZDYCpusKfsYcx WMHX75SvpYXvc2onF+Hl6CREe+2xIkt/1E0IPIHXRs4IErnnYNy0X/m3snBrmAao5OhQ jTZmVHE5f7uW2ZpZur35D2tZLnZKrkmbB4ujU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=SGUEBNng/6oYD39EzhxImDeozJWGqUZFfEbxmKsuRUqMfBoaZvdraLvFIi64Qwcrqu SSkySH4M1pXshraTAJejXwRHwGNLEEZ5cjICbqnzNyGK7WZTwtLrTfu8SYmG3SuwmuHq kTdJxCuMmm2jtdCBjxR4uaPDN17LrUvEeimH4= Received: by 10.101.201.37 with SMTP id d37mr271937anq.56.1276180955893; Thu, 10 Jun 2010 07:42:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 07:42:14 -0700 (PDT) From: Lennart Borgman Date: Thu, 10 Jun 2010 16:42:14 +0200 Message-ID: Subject: Should not regexp-quote quote newline? To: Emacs Bugs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.7 (----) To illustrate the problem eval this (progn (setq x (regexp-quote "a b")) (message "length x=%d" (length x))) The length of x will be 3 because the string returned by regexp-quote includes a newline. Would it not be more practical if the result was "a\nb"? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 11:01:36 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 15:01:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjGB-0003yx-S4 for submit@debbugs.gnu.org; Thu, 10 Jun 2010 11:01:36 -0400 Received: from mail-out.m-online.net ([212.18.0.9]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjG9-0003yp-Oa for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 11:01:34 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 4C65D1C15F90; Thu, 10 Jun 2010 17:01:27 +0200 (CEST) Received: from hase.home (ppp-88-217-113-22.dynamic.mnet-online.de [88.217.113.22]) by mail.mnet-online.de (Postfix) with ESMTP id A9E981C002AA; Thu, 10 Jun 2010 17:01:27 +0200 (CEST) From: Andreas Schwab To: Lennart Borgman Subject: Re: bug#6390: Should not regexp-quote quote newline? References: X-Yow: I know things about TROY DONAHUE that can't even be PRINTED!! Date: Thu, 10 Jun 2010 17:01:27 +0200 In-Reply-To: (Lennart Borgman's message of "Thu, 10 Jun 2010 16:42:14 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Lennart Borgman writes: > Would it not be more practical if the result was "a\nb"? That's exactly what you get. 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." From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 11:03:19 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 15:03:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjHr-0003zt-4O for submit@debbugs.gnu.org; Thu, 10 Jun 2010 11:03:19 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjHp-0003zo-Gc for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 11:03:18 -0400 Received: by gyh4 with SMTP id 4so4775307gyh.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 08:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=usveTCH8Ak27MygDNIwYz4DN13/H53imW2p8I6qjjfY=; b=xR9UW1aDflBlbYdn3iI0bt1WjrwZnsnq+zizaMBI21KF3PbzHggoZEAaGG/gM8O9se UHSGEFo5Gohweh6VdnMApiyq1zb4hGIMT4iKY+TpdwYTzf7Zq4DgfxB5ZvZ46nLb7eA0 fqWfBj8gEmL52AFyyAfe16hxPqybhrFSQOt/o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=ALbHnJ5E2N8DjMC3/ilKH5MuV62QJbOrmphzx9SajSvD8F3EkKHLstBHBMpUHKAtbs fsxpCHsl6JBYSN4QpUA6TthtYY6KE+O11hQwiweRCcrYBflsjTqRZOcx60YVKFif3kAj 9HFTsQiyLW4I+DZ0fyzYMaMgC0OTVOdDlwkeI= Received: by 10.101.189.31 with SMTP id r31mr322755anp.37.1276182190387; Thu, 10 Jun 2010 08:03:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 08:02:50 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Thu, 10 Jun 2010 17:02:50 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Thu, Jun 10, 2010 at 5:01 PM, Andreas Schwab wrote: > Lennart Borgman writes: > >> Would it not be more practical if the result was "a\nb"? > > That's exactly what you get. ;-) "a\\nb" From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 11:23:07 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 15:23:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjb1-00048c-Bg for submit@debbugs.gnu.org; Thu, 10 Jun 2010 11:23:07 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjaz-00048F-KX for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 11:23:06 -0400 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5AFMvcf015014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 10 Jun 2010 15:22:59 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5AFMt6I009834; Thu, 10 Jun 2010 15:22:56 GMT Received: from abhmt012.oracle.com by acsmt354.oracle.com with ESMTP id 314147481276183373; Thu, 10 Jun 2010 08:22:53 -0700 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 10 Jun 2010 08:22:52 -0700 From: "Drew Adams" To: "'Lennart Borgman'" , <6390@debbugs.gnu.org> References: Subject: RE: bug#6390: Should not regexp-quote quote newline? Date: Thu, 10 Jun 2010 08:22:52 -0700 Message-ID: <2312722CD01C4D5BAA9DF0A3DA9377DC@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: AcsIrWGZs7eswZf4SmqL/+hmJk2yZgAAjLFw X-Auth-Type: Internal IP X-Source-IP: rcsinet13.oracle.com [148.87.113.125] X-CT-RefId: str=0001.0A090201.4C110353.016F:SCFMA4539811,ss=1,fgs=0 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 6390 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) > (setq x (regexp-quote "a > b")) > (message "length x=%d" (length x)) > > The length of x will be 3 because the string returned > by regexp-quote includes a newline. > Would it not be more practical if the result was "a\nb"? I, for one, do not understand you. (setq y "a b") (setq x (regexp-quote y)) (setq z "a\nb") (equal x y) = (equal x z) = t (length x) = (length z) = 3 What are you trying to say? And what does it mean to "quote newline"? Please try to explain clearly what the problem is that you see, or what you are trying to do that does not succeed as you expect. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 11:34:39 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 15:34:39 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjmB-0004DF-HU for submit@debbugs.gnu.org; Thu, 10 Jun 2010 11:34:39 -0400 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjmA-0004DA-IV for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 11:34:39 -0400 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5AFYGdn017491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 10 Jun 2010 15:34:20 GMT 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 o5A1t05U011194; Thu, 10 Jun 2010 15:34:15 GMT Received: from abhmt002.oracle.com by acsmt355.oracle.com with ESMTP id 314204391276184052; Thu, 10 Jun 2010 08:34:12 -0700 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 10 Jun 2010 08:34:12 -0700 From: "Drew Adams" To: "'Lennart Borgman'" , "'Andreas Schwab'" References: Subject: RE: bug#6390: Should not regexp-quote quote newline? Date: Thu, 10 Jun 2010 08:34:08 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: AcsIsZMU86osBSTxQrGmCfkviiJ9agAAGNDQ X-Auth-Type: Internal IP X-Source-IP: acsinet15.oracle.com [141.146.126.227] X-CT-RefId: str=0001.0A090208.4C110609.0077:SCFMA922111,ss=1,fgs=0 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) > >> Would it not be more practical if the result was "a\nb"? > > That's exactly what you get. > "a\\nb" A newline char is not a regexp special char. Is that what you were thinking? You are not being very clear, at least to me. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 11:35:14 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 15:35:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjmk-0004Dl-2r for submit@debbugs.gnu.org; Thu, 10 Jun 2010 11:35:14 -0400 Received: from mail-yw0-f196.google.com ([209.85.211.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMjmi-0004Dg-7E for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 11:35:12 -0400 Received: by ywh34 with SMTP id 34so82816ywh.30 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 08:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=8OqU7ue08cd1gX5XhF2LigRGUbE8K3cM1s+ad0gauQU=; b=Q57jhUF0N3Yb7RbDwLnn6UEd39kIhDO9N2IFiBmRQVFuitXiNZCKUCGWvrFw/JvJPp PY1J+XEY7ld2ZvmwiT50KDtmiS28CjXteq65UKzEHgiRTmoCAoOXShJj4IbsIcWihnL9 Mc5VAJ4fl53k6l8XJOOwUxH6YGPZzi2rFO7Us= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=fIUEmLOGSkt/NHZil7VLrpyxd6Rbrme7xLBy+sCI8TehtP+Ry2tc9AWrgKB+VZKDbK PWsxTEFNp2tDe3sGjy1UrExJ3FsSnSm7ECcgAR7eQP4OUttTgnKBfNEYI8EY398VCXhL 9M9d/qwa1pnChLd3Z0QtsHJ/7OjDxaowZzZ2c= Received: by 10.101.133.5 with SMTP id k5mr316375ann.169.1276184107191; Thu, 10 Jun 2010 08:35:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 08:34:46 -0700 (PDT) In-Reply-To: <2312722CD01C4D5BAA9DF0A3DA9377DC@us.oracle.com> References: <2312722CD01C4D5BAA9DF0A3DA9377DC@us.oracle.com> From: Lennart Borgman Date: Thu, 10 Jun 2010 17:34:46 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Drew Adams Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Thu, Jun 10, 2010 at 5:22 PM, Drew Adams wrote: >> (setq x (regexp-quote "a >> b")) >> (message "length x=%d" (length x)) >> >> The length of x will be 3 because the string returned >> by regexp-quote includes a newline. >> Would it not be more practical if the result was "a\nb"? > > I, for one, do not understand you. Yes, I saw that Andreas probably did not get either what I wanted to say. I checked the length because looking at x is a bit frustrating because of the translations between newline <-> \n that might occur. > (setq y "a > b") > (setq x (regexp-quote y)) > (setq z "a\nb") > (equal x y) = (equal x z) = t > (length x) = (length z) = 3 > > What are you trying to say? That the regexp-quoted string includes the new line character instead of the two chararcers \n. The latter is more practical in many situations since this is a regexp. > And what does it mean to "quote newline"? Replacing newline char with \n. You can of course do that yourself, but I really see no reason why regexp-quote should not do it. (Yes, the regexp works just as well with newline in it as the two chars \n in it.) Perhaps people wants it this way, but then I would suggest that the doc strings tells about the current behaviour. Maybe there should be a function `string-quote' that does replacements of newline => \n etc? > Please try to explain clearly what the problem is that you see, or what you are > trying to do that does not succeed as you expect. > > From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 12:08:48 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 16:08:48 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMkJE-0004UK-IT for submit@debbugs.gnu.org; Thu, 10 Jun 2010 12:08:48 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMkJC-0004UF-Ax for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 12:08:47 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id F21281C00711; Thu, 10 Jun 2010 18:08:40 +0200 (CEST) Received: from hase.home (ppp-88-217-113-22.dynamic.mnet-online.de [88.217.113.22]) by mail.mnet-online.de (Postfix) with ESMTP id 914561C00369; Thu, 10 Jun 2010 18:08:40 +0200 (CEST) From: Andreas Schwab To: Lennart Borgman Subject: Re: bug#6390: Should not regexp-quote quote newline? References: X-Yow: An INK-LING? Sure -- TAKE one!! Did you BUY any COMMUNIST UNIFORMS?? Date: Thu, 10 Jun 2010 18:08:40 +0200 In-Reply-To: (Lennart Borgman's message of "Thu, 10 Jun 2010 17:02:50 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Lennart Borgman writes: > On Thu, Jun 10, 2010 at 5:01 PM, Andreas Schwab wrote: >> Lennart Borgman writes: >> >>> Would it not be more practical if the result was "a\nb"? >> >> That's exactly what you get. > > ;-) > > "a\\nb" This is a totally different regexp. 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." From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 12:11:44 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 16:11:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMkM3-0004Vs-Sw for submit@debbugs.gnu.org; Thu, 10 Jun 2010 12:11:44 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMkM2-0004Vn-My for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 12:11:43 -0400 Received: by gyh4 with SMTP id 4so59775gyh.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 09:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=MXm2sgSAdeNitl4dXIWgw9SuyerXnGpurdpEjnppKcg=; b=KgWtpiuEAeLilLjgfUVXMNp+pdXIyDsLaXRO12smqbV3sRNM1TBuxG8WwczPy3M4F3 jeQ4pFUHZzHfWhgwrTQI4DKB11532XDNFLuj7xSPYCuRLaxHcZx1/w/mDZtEqV3PSSdn 2EZqJ08MXS9Q1MsPdy42vrrlHe6p0glVPmrg4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=hwdkygFuSoVDXK7lnOz5YmShFJGjiGq62RiXM4VMTI9zoRs925sjwnOV7nkXQjzJuR kDsy455DOQZ1nWWzsECdlrjnLn+DmXAeCXdKFejNrJvUi4U5unHFUFm1BC82aAFkqtqF bWVU00IJYl+wMvnihKOyN8sA2t2yuZP8n4DT4= Received: by 10.100.243.25 with SMTP id q25mr356124anh.165.1276186297374; Thu, 10 Jun 2010 09:11:37 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 09:11:17 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Thu, 10 Jun 2010 18:11:17 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Thu, Jun 10, 2010 at 6:08 PM, Andreas Schwab wrote: > Lennart Borgman writes: > >> On Thu, Jun 10, 2010 at 5:01 PM, Andreas Schwab wrote: >>> Lennart Borgman writes: >>> >>>> Would it not be more practical if the result was "a\nb"? >>> >>> That's exactly what you get. >> >> ;-) >> >> "a\\nb" > > This is a totally different regexp. ;-) Depends on how u "read" it. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 12:22:52 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 16:22:52 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMkWp-0004bY-OW for submit@debbugs.gnu.org; Thu, 10 Jun 2010 12:22:51 -0400 Received: from mail-out.m-online.net ([212.18.0.9]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMkWn-0004bT-FV for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 12:22:50 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 2E57C1C15F74; Thu, 10 Jun 2010 18:22:43 +0200 (CEST) Received: from hase.home (ppp-88-217-113-22.dynamic.mnet-online.de [88.217.113.22]) by mail.mnet-online.de (Postfix) with ESMTP id B654C1C00304; Thu, 10 Jun 2010 18:22:43 +0200 (CEST) From: Andreas Schwab To: Lennart Borgman Subject: Re: bug#6390: Should not regexp-quote quote newline? References: X-Yow: I am NOT a nut.... Date: Thu, 10 Jun 2010 18:22:43 +0200 In-Reply-To: (Lennart Borgman's message of "Thu, 10 Jun 2010 18:11:17 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Lennart Borgman writes: > On Thu, Jun 10, 2010 at 6:08 PM, Andreas Schwab wrote: >> Lennart Borgman writes: >> >>> On Thu, Jun 10, 2010 at 5:01 PM, Andreas Schwab wrote: >>>> Lennart Borgman writes: >>>> >>>>> Would it not be more practical if the result was "a\nb"? >>>> >>>> That's exactly what you get. >>> >>> ;-) >>> >>> "a\\nb" >> >> This is a totally different regexp. > > ;-) > > Depends on how u "read" it. If you want a print representation then use print. 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." From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 12:29:25 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 16:29:25 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMkdA-0004f0-T3 for submit@debbugs.gnu.org; Thu, 10 Jun 2010 12:29:25 -0400 Received: from mail-fx0-f44.google.com ([209.85.161.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMkd9-0004ev-Eh for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 12:29:23 -0400 Received: by fxm13 with SMTP id 13so100565fxm.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 09:29:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=hClQiv6S7STG40eN9nf7Sby9yyQAF/eKRqLIrlQXutM=; b=s5Dz3ZENwjnrb2kFQmAATNt0uek12HTv3pgYBZMpUAVbnQqCVIgTQYWNQUERtYQMEA OjgZV9UR/qOIEXmW8iXh1COnycOaICreSFs8Dns6yPmwvV27h6lTAOdaHmwnAOP6B1Gi 5+9D+GyCxFKwXaONb4VLeb0GyEWwN/doR5Q5o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=psYAvgivSuRKFChwkP9G28Bv7Q931BMfMQZWLHgeyHx5dA5EHpY0ayxSGw6DjtT5u6 KOMLDEsz7IKwi+tNMNJXBc/trtvkFN+LBIrI1mmswESdiZOiCPih7szm6XeAwRX2rPHt J1xmG392zlkOTWkBYqLyASOOg+FzUsb5z7NEk= Received: by 10.204.46.223 with SMTP id k31mr301043bkf.148.1276187358246; Thu, 10 Jun 2010 09:29:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.32.5 with HTTP; Thu, 10 Jun 2010 09:28:58 -0700 (PDT) In-Reply-To: References: <2312722CD01C4D5BAA9DF0A3DA9377DC@us.oracle.com> From: Juanma Barranquero Date: Thu, 10 Jun 2010 18:28:58 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.8 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On Thu, Jun 10, 2010 at 17:34, Lennart Borgman wrote: > Perhaps people wants it this way, but then I would suggest that the > doc strings tells about the current behaviour. Do you want the docstring for regexp-quote to list every single character that it does not quote because they aren't special in regexps? That's gonna be a long long list. Juanma From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 12:53:20 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 16:53:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl0J-0004r2-Vz for submit@debbugs.gnu.org; Thu, 10 Jun 2010 12:53:20 -0400 Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl0H-0004qx-QR for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 12:53:18 -0400 Received: by gwj16 with SMTP id 16so96617gwj.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 09:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=UpN4cs86ueMxxPWOcMjyZ7NAie0MZo2WcKc/hAK992U=; b=oelF+ubVXINk05UvE2WE5R9N8E7RXsv0ZvZJJi5VGJZyfjJNDQEW3N+/1Sk5adLcrV uuYWwAEhqLEhVtthvu/nNZv6xX/aiAJPrLdg0zgF+8qSdOuxDuZ9o6qKZa6nbOUna6hV bR22Xf/+qEbCJ8H9tWEoYqPMn5NcQb/ObpwdM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=xU/Sl1+OudurLogqzLPuqhNHuur83+mV8uKm+B36MJI9Oq2gfZz6HsDfyl+9OuRtXI kol2CKxeobjMHUZYxs16RGpiIMDtSDz2BuqAGmlJX6Sf3yUaXnO/q/pvK7iLc/FsD8Y4 tjP67VXS+G4RmxUbwtaGkFAzavtaVjUw5+pwI= Received: by 10.101.11.29 with SMTP id o29mr445262ani.64.1276188462442; Thu, 10 Jun 2010 09:47:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 09:47:22 -0700 (PDT) In-Reply-To: References: <2312722CD01C4D5BAA9DF0A3DA9377DC@us.oracle.com> From: Lennart Borgman Date: Thu, 10 Jun 2010 18:47:22 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Juanma Barranquero Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) On Thu, Jun 10, 2010 at 6:28 PM, Juanma Barranquero wrote: > On Thu, Jun 10, 2010 at 17:34, Lennart Borgman > wrote: > >> Perhaps people wants it this way, but then I would suggest that the >> doc strings tells about the current behaviour. > > Do you want the docstring for regexp-quote to list every single > character that it does not quote because they aren't special in > regexps? That's gonna be a long long list. Not necessarily ... ;-) I thinking about those that are normally quoted in strings. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 12:54:47 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 16:54:47 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl1j-0004rg-6O for submit@debbugs.gnu.org; Thu, 10 Jun 2010 12:54:47 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl1f-0004ra-UY for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 12:54:46 -0400 Received: by gyh4 with SMTP id 4so97440gyh.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 09:54:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=TxA23KVIrQ9lCIYcLQ3B/AtzGseGMGgfFtKO9F6W+MY=; b=MoLutPMIYCI222Oj+FgDEjq84qRDYbnGD4KtOIRc7qECjX97uQgzrxht+QAykSjwdM hyyC6SBFGirHzygNqbVyTXNR2lDAittGv6wVGLNdfrouzvhVsCmgO5YIs9qShueivKmz Ni254DmOAfVZb0A6/fGvA4kJRpKFhYNUYzxLY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=p81AkyG24KHaPbqTHg5PZcTHOn12Wj3NPPSy3K0rybnkNLfwfP4Jf0IPnlmfUehv3R O+nt3gE9WdbuZDcR9BHuf0g/9jeJo8scOnibXirr50hy0u4z3kTKGS7wYxW27M8oRVze m5xkT2hhtwj4DdcgOYJJh+8wmB2RNJ30mRZBo= Received: by 10.101.200.21 with SMTP id c21mr410340anq.195.1276188406354; Thu, 10 Jun 2010 09:46:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 09:46:26 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Thu, 10 Jun 2010 18:46:26 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Thu, Jun 10, 2010 at 6:22 PM, Andreas Schwab wrote: >>>>> Lennart Borgman writes: >>>>> >>>>>> Would it not be more practical if the result was "a\nb"? >>>>> >>>>> That's exactly what you get. >>>> >>>> ;-) >>>> >>>> "a\\nb" >>> >>> This is a totally different regexp. >> >> ;-) >> >> Depends on how u "read" it. > > If you want a print representation then use print. Thanks, but that does not apply to the situation I am talking about. But since misunderstandings are great here I might clarify the situation: I am thinking about situations where you want to edit a regexp. One such situation is for example editing the isearch regexp. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 12:56:17 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 16:56:17 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl3B-0004sr-En for submit@debbugs.gnu.org; Thu, 10 Jun 2010 12:56:17 -0400 Received: from mail-out.m-online.net ([212.18.0.9]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl3A-0004sm-30 for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 12:56:16 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id DF03F1C15E33; Thu, 10 Jun 2010 18:56:10 +0200 (CEST) Received: from igel.home (ppp-88-217-113-22.dynamic.mnet-online.de [88.217.113.22]) by mail.mnet-online.de (Postfix) with ESMTP id 9CDA31C0029A; Thu, 10 Jun 2010 18:56:10 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 4A71ECA297; Thu, 10 Jun 2010 18:56:10 +0200 (CEST) From: Andreas Schwab To: Lennart Borgman Subject: Re: bug#6390: Should not regexp-quote quote newline? References: <2312722CD01C4D5BAA9DF0A3DA9377DC@us.oracle.com> X-Yow: Isn't this my STOP?! Date: Thu, 10 Jun 2010 18:56:10 +0200 In-Reply-To: (Lennart Borgman's message of "Thu, 10 Jun 2010 17:34:46 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Lennart Borgman writes: > That the regexp-quoted string includes the new line character instead > of the two chararcers \n. How does that fit into the purpose of regexp-quote? 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." From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 13:01:18 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 17:01:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl82-0004wO-4b for submit@debbugs.gnu.org; Thu, 10 Jun 2010 13:01:18 -0400 Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMl80-0004wI-HM for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 13:01:16 -0400 Received: by gwj16 with SMTP id 16so103776gwj.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 10:01:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=ATBe7WQsTpPX1b2gt7bBxz+YW6c5t5XtDgrdQYGq6Zw=; b=VT3FN85ddEBkXrKbr6gDWmiCHxeFcCeqYd53hQ06bbcM33LF7jHRDa/K3d8uSNwgnH ObMgFSeuy7TRRxPtzXpS21P0w49HuieIpPjsMujxKa7cH4J8RkbXJ9TvH0YwGrEVaJnE Rsh8oNdSnOid2JQiZ0JDO2/ZEiOLxP8dQ/iUM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=oqoUS1fuhcQ3GUldHeVbKUGLNPRgTOaBqdH6RbhB6xxvCqHwQtT3qQQhl6/2vqeYEf hMnttvPcZxP6axePkxaMl/ahtucaUHAdmSqW7Q4nHZKzU6Inzi1Sd2I+xTpdsVOTDPRV e2FZnqtbHqtDndr9iWybYZGosDllWbY+pnwD4= Received: by 10.100.74.34 with SMTP id w34mr427499ana.194.1276189271364; Thu, 10 Jun 2010 10:01:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 10:00:51 -0700 (PDT) In-Reply-To: References: <2312722CD01C4D5BAA9DF0A3DA9377DC@us.oracle.com> From: Lennart Borgman Date: Thu, 10 Jun 2010 19:00:51 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.0 (---) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org, Drew Adams X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.0 (---) On Thu, Jun 10, 2010 at 6:56 PM, Andreas Schwab wrote: > Lennart Borgman writes: > >> That the regexp-quoted string includes the new line character instead >> of the two chararcers \n. > > How does that fit into the purpose of regexp-quote? Yes, that is a good question. That is why I said I am not sure and maybe there should be another function to do that backslash quoting I am asking for. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 13:03:55 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 17:03:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMlAY-0004xd-2U for submit@debbugs.gnu.org; Thu, 10 Jun 2010 13:03:54 -0400 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMlAV-0004xX-Cx for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 13:03:52 -0400 Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 1C1311C007E3; Thu, 10 Jun 2010 19:03:45 +0200 (CEST) Received: from igel.home (ppp-88-217-113-22.dynamic.mnet-online.de [88.217.113.22]) by mail.mnet-online.de (Postfix) with ESMTP id BEE8E1C00263; Thu, 10 Jun 2010 19:03:45 +0200 (CEST) Received: by igel.home (Postfix, from userid 501) id 93734CA297; Thu, 10 Jun 2010 19:03:45 +0200 (CEST) From: Andreas Schwab To: Lennart Borgman Subject: Re: bug#6390: Should not regexp-quote quote newline? References: X-Yow: Life is selling REVOLUTIONARY HAIR PRODUCTS! Date: Thu, 10 Jun 2010 19:03:45 +0200 In-Reply-To: (Lennart Borgman's message of "Thu, 10 Jun 2010 18:46:26 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Lennart Borgman writes: > Thanks, but that does not apply to the situation I am talking about. No, it is exactly what you want. > But since misunderstandings are great here I might clarify the > situation: I am thinking about situations where you want to edit a > regexp. One such situation is for example editing the isearch regexp. You want to edit a (kind of) print representation of a string, not a quoted regexp (the only purpose of which is to create a regexp that matches exactly a given string). 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." From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 14:08:11 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 18:08:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMmAk-0005RK-Pa for submit@debbugs.gnu.org; Thu, 10 Jun 2010 14:08:11 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMmAh-0005RD-Uw for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 14:08:08 -0400 Received: by gyh4 with SMTP id 4so159427gyh.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 11:08:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=RQ6j2iMM9cuDw/d+hnD8Xj2U01DYQZfCTMivZNKpT8o=; b=g19YndIIQo332MOg8t5Jdh2237z3ByZ2xEBD16iv8KdsDv1mj+brbo9sF2DKNTZkCF e/0bTW5j4G4i3CFimyuvCM0vv3tXR9win9fVYPh6dV9VqRCFDyYd7K4Lk9ZR42nBpaRo +q1n1n752YNd++qWZkFFSCqq2XbIm4WZsb4kw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=XcAzeFnAXW/gGgdOvrS/NzZ3qGFe0RNZDqNlhPvfjUUElgJLVWOwkY4FOfVRf7Lxnt 11+/B0wL+eaoKEY36zLoE5GkqlyI1kaPto08ZDgKKIH8WMlQDEMZjxBFgj6sKGPeCY38 1XVoc9xz0nsvFymLW0pdkRrbxIsNFO/L5Ps4I= Received: by 10.101.105.22 with SMTP id h22mr511396anm.35.1276193282610; Thu, 10 Jun 2010 11:08:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 11:07:42 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Thu, 10 Jun 2010 20:07:42 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Thu, Jun 10, 2010 at 7:03 PM, Andreas Schwab wrote: > Lennart Borgman writes: > >> Thanks, but that does not apply to the situation I am talking about. > > No, it is exactly what you want. Yes, you are right. Something like this seems to do what I want: (defun my-quote-string (str) "Return string STR quoted like `prin1' do it." (let ((ret (prin1-to-string str))) (substring ret 1 -1))) >> But since misunderstandings are great here I might clarify the >> situation: I am thinking about situations where you want to edit a >> regexp. One such situation is for example editing the isearch regexp. > > You want to edit a (kind of) print representation of a string, not a > quoted regexp (the only purpose of which is to create a regexp that > matches exactly a given string). Yes, I agree now. It is better to keep it conceptually separated like that. However I then miss the function above. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 19:12:19 2010 Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 23:12:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMqv5-0007eG-JE for submit@debbugs.gnu.org; Thu, 10 Jun 2010 19:12:19 -0400 Received: from mail-yw0-f196.google.com ([209.85.211.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMqv4-0007eB-3e for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 19:12:18 -0400 Received: by ywh34 with SMTP id 34so597375ywh.30 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 16:12:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=SJVfP75S2yeW2OqQibcpBJzFc/BS4FwQXLgrawUw4NM=; b=ko7Cbf0dOEP8/c5CxmvOHAoYV/5E0N+eg4CiBpDRlQkHEQ7cKtPShqgKFEXqiBWl9n c2dW0g4O4wAc/PfmJZm5wjtf3vYu7rNz3Z1WsRl61EtrkblWFtLjZd480OTNYQ+o7wba hZdJ3TYol6PeTNPnltA+/ZyXGkwYuyRN6EmHU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=M358BDbfkQkkDHbtSxsOr9JMVw6uRvsHiL1pg0yjNLnbOfNgfQ4tK7GhKlnfbx0gbz Yozdz47Y0TCBWulNCBkwAFRSah64BSju8WofAHCGKnuvlH4/XT6MnSLbY0TDusisCsG7 97h2TOaTBA/hlLfqZyHbtgUUQzQYP6Q2V+KXg= Received: by 10.100.16.4 with SMTP id 4mr858440anp.2.1276211533225; Thu, 10 Jun 2010 16:12:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 16:11:53 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Fri, 11 Jun 2010 01:11:53 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Thu, Jun 10, 2010 at 8:07 PM, Lennart Borgman wrote: > On Thu, Jun 10, 2010 at 7:03 PM, Andreas Schwab w= rote: >> Lennart Borgman writes: >> >>> Thanks, but that does not apply to the situation I am talking about. >> >> No, it is exactly what you want. > > > Yes, you are right. Something like this seems to do what I want: > > (defun my-quote-string (str) > =C2=A0"Return string STR quoted like `prin1' do it." > =C2=A0(let ((ret (prin1-to-string str))) > =C2=A0 =C2=A0(substring ret 1 -1))) For the record here is a better version (defun reb-quote-string (str) "Return string STR quoted like `prin1' do it." (let* ((print-escape-newlines t) (ret (prin1-to-string str))) (substring ret 1 -1))) Something changed print-escape-newlines somewhere ... From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 10 20:44:31 2010 Received: (at 6390) by debbugs.gnu.org; 11 Jun 2010 00:44:31 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMsMJ-0008Hh-BR for submit@debbugs.gnu.org; Thu, 10 Jun 2010 20:44:31 -0400 Received: from mail-gx0-f172.google.com ([209.85.161.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMsMH-0008Hb-EV for 6390@debbugs.gnu.org; Thu, 10 Jun 2010 20:44:29 -0400 Received: by gxk8 with SMTP id 8so67138gxk.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 17:44:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=17ifXipEdrHB7k3dupuhxuciEXzTHAHV2AGpvyTGI7g=; b=nnZ0RPzyMO2XdvKVaZEVXLg5glDQKeVwDdEMXU+UJBZyb60uF5n2rJ0i49946h7oh1 uMtYVokFcNhosQRQ/c50UmJGP6Gby/WkGpANkOgJhCN6QVlZKne4tbm4xKY7jzTn9Deg nmB/qETZlgODq+MtiNVGppdndofDovqJTSnzU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=nOBZ9U9mKT0IRawTqD3DdwRZ4KFaq1j98vyyEAZaBT9Uhz/GjS0kJcFRrEJ4djuyp6 8FZFmTuP/5+H09XLp/T4MFTb0W0YdvBFAV4RWh6dm7nAmMpqCOhudii6MpDXEN9AdRqu 9EDxGRZkNSHYJWCBX06AuJhnG88tnCqooMgxo= Received: by 10.101.172.6 with SMTP id z6mr951340ano.252.1276217065267; Thu, 10 Jun 2010 17:44:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 17:44:04 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Fri, 11 Jun 2010 02:44:04 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Andreas Schwab Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Fri, Jun 11, 2010 at 1:11 AM, Lennart Borgman wrote: > On Thu, Jun 10, 2010 at 8:07 PM, Lennart Borgman > wrote: >> On Thu, Jun 10, 2010 at 7:03 PM, Andreas Schwab = wrote: >>> Lennart Borgman writes: >>> >>>> Thanks, but that does not apply to the situation I am talking about. >>> >>> No, it is exactly what you want. >> >> >> Yes, you are right. Something like this seems to do what I want: >> >> (defun my-quote-string (str) >> =C2=A0"Return string STR quoted like `prin1' do it." >> =C2=A0(let ((ret (prin1-to-string str))) >> =C2=A0 =C2=A0(substring ret 1 -1))) > > For the record here is a better version > > (defun reb-quote-string (str) > =C2=A0"Return string STR quoted like `prin1' do it." > =C2=A0(let* ((print-escape-newlines t) > =C2=A0 =C2=A0 =C2=A0 =C2=A0(ret (prin1-to-string str))) > =C2=A0 (substring ret 1 -1))) > > Something changed print-escape-newlines somewhere ... Unfortunately print-escape-newlines does not quote tab, only newline and form-feed. Which in my opinion is a bug. To fix this just copy 5 lines in print.c at line 1667 and replace form-feed with tab. (I have just done that in my patched copy, but it is easier to do this by hand then to use a patch.) Is there any objections to this change? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 11 00:19:23 2010 Received: (at 6390) by debbugs.gnu.org; 11 Jun 2010 04:19:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMviE-000257-Vb for submit@debbugs.gnu.org; Fri, 11 Jun 2010 00:19:23 -0400 Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMviD-000252-Gh for 6390@debbugs.gnu.org; Fri, 11 Jun 2010 00:19:22 -0400 Received: by gwj16 with SMTP id 16so475177gwj.3 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 21:19:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.93.21 with SMTP id v21mr2589782ybl.297.1276229957961; Thu, 10 Jun 2010 21:19:17 -0700 (PDT) Received: by 10.151.10.5 with HTTP; Thu, 10 Jun 2010 21:19:17 -0700 (PDT) Date: Fri, 11 Jun 2010 00:19:17 -0400 X-Google-Sender-Auth: X__6KeuuR93y-tHU5XZjQYAQeMk Message-ID: Subject: bug#6390: Should not regexp-quote quote newline? From: MON KEY To: 6390@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.2 (--) X-Debbugs-Envelope-To: 6390 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) > Unfortunately print-escape-newlines does not quote tab, only newline > and form-feed. This is not at all unfortunate. > Which in my opinion is a bug. Which would make you wrong. (describe-variable 'print-escape-newlines) ,---- | Non-nil means print newlines in strings as `\n'. | Also print formfeeds as `\f'. `---- Where is \t mentioned? > Is there any objections to this change? Sure. I object on the grounds that what you propose is madness. But, if others do agree with the proposed changed may I suggest then that we also replace newline with SPACE that way we needn't needlessly concern ourselves with vertical motion in general... -- /s_P\ From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 11 00:44:22 2010 Received: (at 6390) by debbugs.gnu.org; 11 Jun 2010 04:44:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMw6P-0002IT-Tb for submit@debbugs.gnu.org; Fri, 11 Jun 2010 00:44:22 -0400 Received: from mail-yw0-f196.google.com ([209.85.211.196]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMw6N-0002IO-NL for 6390@debbugs.gnu.org; Fri, 11 Jun 2010 00:44:19 -0400 Received: by ywh34 with SMTP id 34so766626ywh.30 for <6390@debbugs.gnu.org>; Thu, 10 Jun 2010 21:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=iLM44ufesLNN5Cfy8dq4I0drb+oeLsutbCILOS0PwPM=; b=xVH+a4DYx16DzXFK3Mg74qhPEtnOMXKC/F0HmHkc8r1SIxRIIzNAMkUDkiBnn8WZwl dRB09NrUl2HmtkfOCQo8K0RRPJsNidLZwvh8i2rbQ22M6QZSLEVKCkAS4U0V0rWTFtUQ xRzdjO7qHstaufTBDE4OFylkWKlRY+lguLDTA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=TS3whGE1yedNZLW84llmGZ17Ll4Iv7vpXnjdi2/tU3K2aZYkBM67589GRAYxrZk9xO Z+ziZi+A3yJ33YklvvZU171h8JSFnpBpSc/LxNFPlncrQf3welKsBpJyok9392qVj9Me H8NvsFF40aSGzA6/gh9XIy7p5xZGqprGreB+U= Received: by 10.101.105.22 with SMTP id h22mr1111794anm.35.1276231456126; Thu, 10 Jun 2010 21:44:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 21:43:56 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Fri, 11 Jun 2010 06:43:56 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: MON KEY Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Fri, Jun 11, 2010 at 6:19 AM, MON KEY wrote: >> Unfortunately print-escape-newlines does not quote tab, only newline >> and form-feed. > >> Is there any objections to this change? > > Sure. I object on the grounds that what you propose is madness. I can see no objection at all. What is it? From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 11 16:09:20 2010 Received: (at 6390) by debbugs.gnu.org; 11 Jun 2010 20:09:20 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONAXY-0001wy-0L for submit@debbugs.gnu.org; Fri, 11 Jun 2010 16:09:20 -0400 Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONAXW-0001wt-6t for 6390@debbugs.gnu.org; Fri, 11 Jun 2010 16:09:19 -0400 Received: by gyh4 with SMTP id 4so1058385gyh.3 for <6390@debbugs.gnu.org>; Fri, 11 Jun 2010 13:09:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.255.31 with SMTP id c31mr3703001ybi.196.1276286953539; Fri, 11 Jun 2010 13:09:13 -0700 (PDT) Received: by 10.151.10.5 with HTTP; Fri, 11 Jun 2010 13:09:13 -0700 (PDT) In-Reply-To: References: Date: Fri, 11 Jun 2010 16:09:13 -0400 X-Google-Sender-Auth: sbh65CeTo9oYZSVU1Tno_OC1IT4 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? From: MON KEY To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.8 (--) On Fri, Jun 11, 2010 at 12:43 AM, Lennart Borgman wrote: >> Sure. I object on the grounds that what you propose is madness. > > I can see no objection at all. What is it? > You've confirmed my suspicion ;) The objection is that what you propose is madness, i.e lunacy! It is absolutely NTRT to interpolate any such chars routed through the elisp printer simply b/c you disagree with how an ASCII standard character has been historically (mis)interpreted. Its the _users_ prerogative to dictate her intention here; it certainly isn't yours, or Microsofts', or Emacs'. IMHO it would be _insane_ to replace "\f" linefeed with "\t" Evaluate these to see why: (progn (insert-char 12 1) (describe-char (1- (point)))) (progn (insert-char 9 1) (describe-char (1- (point)))) Among other things, you may notice the inserted glyph `^L' which is used throughout Emacs as the default value for indication of page boundaries. e.g. `page-delimiter' and her buddy `forward-page'... Not only are you asking to have the form-feed value replaced with an entirely different _non-visible_ character but you are asking to fundamentally alter the semantics from: "Occurences of this character indicate vertical movement of the print-head at EOL" to: "Occurences of this character indicate tabbed horizontal movement at EOL" Blech! Why would you want to do something so silly? Check out this history of the form-feed and (one of) its early intended applications: :SEE (URL `http://www.rfc-editor.org/EOLstory.txt') :SEE-ALSO (URL `http://en.wikipedia.org/wiki/Linefeed') P.S. I've taken on faith that you aren't instead suggesting to replace "\f" with the line tabulation char `^K' ASCII 11 e.g. (insert 11) Which would make only slightly more sense than the folly you've proposed. -- /s_P\ From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 11 16:38:22 2010 Received: (at 6390) by debbugs.gnu.org; 11 Jun 2010 20:38:22 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONAzd-0002Bk-EV for submit@debbugs.gnu.org; Fri, 11 Jun 2010 16:38:21 -0400 Received: from mail-yw0-f197.google.com ([209.85.211.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONAza-0002Be-V3 for 6390@debbugs.gnu.org; Fri, 11 Jun 2010 16:38:19 -0400 Received: by ywh35 with SMTP id 35so1431894ywh.29 for <6390@debbugs.gnu.org>; Fri, 11 Jun 2010 13:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=8jauhphjLzqfNEQds5pdhzbBGrOuk7+X9a8hjl8mbEI=; b=jkPXC5841vAxno1FquDc0m2oBtEX2PvN3KHD/PITT1zsb7At9v5w8ySBeE6o+Sls2w +5M1lTmvhzu1UxKHZRFE9Pn4iIAbpLXR32/egZen7EijROlp/UFJ97/JADo9MkJIL6NV L3YbZkhtO0l9iYtDKWVYazyM8EabAwYoWgeGg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=N+coMbkteheVfOW19/3KAAlVbHFxhdtXgg6kMne5A1INfjENZDm+el2v14bs+JuxoW himIDbeDqsCuhwRpXAVOebuR2C1uA6EyVDuelcXLxalbprqGJpBa8Sr/eRHm6Q33j/33 8t4Rb4hbz9Y8Sp9zJ5iziWdLm+2TUbL1xYgc0= Received: by 10.101.113.6 with SMTP id q6mr2171239anm.254.1276288694197; Fri, 11 Jun 2010 13:38:14 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Fri, 11 Jun 2010 13:37:54 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Fri, 11 Jun 2010 22:37:54 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: MON KEY Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Fri, Jun 11, 2010 at 10:09 PM, MON KEY wrote: > On Fri, Jun 11, 2010 at 12:43 AM, Lennart Borgman > wrote: >>> Sure. I object on the grounds that what you propose is madness. >> >> I can see no objection at all. What is it? >> > > You've confirmed my suspicion ;) > > The objection is that what you propose is madness, i.e lunacy! I still see no objection because I have not the slightest idea how you mean all the things you are telling are related to my proposal. The only interpretation I can make is that the madness is already here since linefeed and form-feed already may be written as \n and \f if you set print-escape-newlines to t. All I proposed was that it should write tab as \t too. I might not have proposed that if I knew it was that utterly disturbing to someone. ;-) On a brighter side I think you have misunderstood my question and suggestion. Please read it again and especially the conversation with Andreas. > It is absolutely NTRT to interpolate any such chars routed through the > elisp printer simply b/c you disagree with how an ASCII standard > character has been historically (mis)interpreted. Its the _users_ > prerogative to dictate her intention here; it certainly isn't yours, > or Microsofts', or Emacs'. > > IMHO it would be _insane_ to replace "\f" linefeed with "\t" > > Evaluate these to see why: > > =C2=A0(progn > =C2=A0 (insert-char 12 1) > =C2=A0 (describe-char (1- (point)))) > > =C2=A0(progn > =C2=A0 (insert-char 9 1) > =C2=A0 (describe-char (1- (point)))) > > Among other things, you may notice the inserted glyph `^L' which is used > throughout Emacs as the default value for indication of page boundaries. > e.g. `page-delimiter' and her buddy `forward-page'... > > Not only are you asking to have the form-feed value replaced with an enti= rely > different _non-visible_ character but you are asking to fundamentally alt= er the > semantics from: > =C2=A0"Occurences of this character indicate vertical movement of the > print-head at EOL" > to: > =C2=A0"Occurences of this character indicate tabbed horizontal movement a= t EOL" > > Blech! Why would you want to do something so silly? > > Check out this history of the form-feed and (one of) its early > intended applications: > > :SEE (URL `http://www.rfc-editor.org/EOLstory.txt') > > :SEE-ALSO (URL `http://en.wikipedia.org/wiki/Linefeed') > > P.S. I've taken on faith that you aren't instead suggesting to replace > "\f" with the line tabulation char `^K' ASCII 11 e.g. (insert 11) > Which would make only slightly more sense than the folly you've proposed. > > -- > /s_P\ > From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 12 02:18:50 2010 Received: (at 6390) by debbugs.gnu.org; 12 Jun 2010 06:18:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONK3N-0006Fi-Ji for submit@debbugs.gnu.org; Sat, 12 Jun 2010 02:18:49 -0400 Received: from mail-yw0-f197.google.com ([209.85.211.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONK3K-0006Fc-RM for 6390@debbugs.gnu.org; Sat, 12 Jun 2010 02:18:47 -0400 Received: by ywh35 with SMTP id 35so1809691ywh.29 for <6390@debbugs.gnu.org>; Fri, 11 Jun 2010 23:18:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.66.18 with SMTP id o18mr3979284yba.242.1276323523428; Fri, 11 Jun 2010 23:18:43 -0700 (PDT) Received: by 10.151.10.5 with HTTP; Fri, 11 Jun 2010 23:18:43 -0700 (PDT) In-Reply-To: References: Date: Sat, 12 Jun 2010 02:18:43 -0400 X-Google-Sender-Auth: waqymEpgSxeUxvmW4t3RcfDXQGw Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? From: MON KEY To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -1.5 (-) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) On Fri, Jun 11, 2010 at 4:37 PM, Lennart Borgman wrote: > All I proposed was that it should write tab as \t too. i) This is not the extent of what you proposed; ii) It is none-the-less a bad idea; Newline and formfeed are control characters which affect the display and interpretation of vertical character motion and display. Tab OTOH is horizontal whitespace and doesn't affect vertical display in the same manner (either syntactically or visually). Regardless, the function name `print-escape-newlines' and its documentation SAY NOTHING ABOUT ESCAPING TAB CHARACTERS!!!!! What you really want is `print-escape-arbitrarily-for-lennart' :P You can implement such a feature by cobbling together various bits of code from format-spec.el format.el descr-text.el pp.el and `filter-buffer-substring'. > On a brighter side I think you have misunderstood my question and > suggestion. I well understood your suggestion as presented: ,---- | Unfortunately print-escape-newlines does not quote tab, only newline | and form-feed. Which in my opinion is a bug. To fix this just copy 5 | lines in print.c at line 1667 and replace form-feed with tab. (I have | just done that in my patched copy, but it is easier to do this by hand | then to use a patch.) `---- If you want your suggestions to be understood by others with as little ambiguity as possible you _must_ submit patches or example code. As written I read your 'suggestion' to say: "... replace form-feed with tab ..." In the absence of a patch/example how else could/should it have been read? FWIW I _did_ take time to examine lines ~1667 of print.c and it certainly wasn't clear to me what you intended. Thanks for wasting my time twice. Once in attempting to understand what you meant and now a second time to clarify a mutual misunderstanding. Multiply this type of waste by the number of people (now and in the future) whom reference this bug report and you've potentially wasted alot of people's time. > I might not have proposed that if I knew it was that utterly > disturbing to someone. ;-) I doubt that. You seem all too ready to file ambiguous bug reports without backtraces and/or to suggest changes/fixes to vacuous `bugs' without an accompanying patch or example source which is illustrative of both a problem and of a proposed solution. Indeed, I do find this utterly disturbing on your part (esp. in the aggregate). -- /s_P\ From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 12 02:51:19 2010 Received: (at submit) by debbugs.gnu.org; 12 Jun 2010 06:51:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONKYo-0006Vi-SZ for submit@debbugs.gnu.org; Sat, 12 Jun 2010 02:51:19 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONKYm-0006Vd-Vw for submit@debbugs.gnu.org; Sat, 12 Jun 2010 02:51:17 -0400 Received: from lists.gnu.org ([199.232.76.165]:44411) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ONKYj-0004HQ-Nc for submit@debbugs.gnu.org; Sat, 12 Jun 2010 02:51:13 -0400 Received: from [140.186.70.92] (port=35897 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONKYh-0001Lj-Ij for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 02:51:13 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONKYg-0004MC-G2 for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 02:51:11 -0400 Received: from lo.gmane.org ([80.91.229.12]:39184) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONKYg-0004Lz-9b for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 02:51:10 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ONKYe-0002Ps-6Z for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 08:51:08 +0200 Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jun 2010 08:51:08 +0200 Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 12 Jun 2010 08:51:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-gnu-emacs@gnu.org connect(): No such file or directory From: Kevin Rodgers Subject: Re: bug#6390: Should not regexp-quote quote newline? Date: Sat, 12 Jun 2010 00:51:00 -0600 Lines: 24 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.24 (Macintosh/20100228) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.8 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.8 (-----) Lennart Borgman wrote: ... > The only interpretation I can make is that the madness is already here > since linefeed and form-feed already may be written as \n and \f if > you set print-escape-newlines to t. All I proposed was that it should > write tab as \t too. Perhaps there should be a separate variable to print escape sequences for all the ASCII control characters (see the Basic Char Syntax node of the Emacs Lisp manual): \a, \b, \t, \n, \v, \f, \r, \e, \d It would probably be controversial to include \s and \\ , since they aren't control characters. > I might not have proposed that if I knew it was that utterly > disturbing to someone. ;-) Perhaps MON KEY objects to backwards-incompatibility. -- Kevin Rodgers Denver, Colorado, USA From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 12 09:28:32 2010 Received: (at 6390) by debbugs.gnu.org; 12 Jun 2010 13:28:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONQlE-0001c8-1Q for submit@debbugs.gnu.org; Sat, 12 Jun 2010 09:28:32 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONQlB-0001c3-Fu for 6390@debbugs.gnu.org; Sat, 12 Jun 2010 09:28:30 -0400 Received: by yxt33 with SMTP id 33so789012yxt.3 for <6390@debbugs.gnu.org>; Sat, 12 Jun 2010 06:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=Jtrkaoh81wrWzoncWewvCOA3lDuwsFTY31elRDPOJ20=; b=f6OKJdlZ/rQ/Zt0WIx75fSFcfvbXFYzv2CDf6zCf9FRU/EJjkdoTTzctCreUeM5y3n kaW61za1fwiPsb/duURo3hnfMd9cas0VYHs+YcZmJFBGNhbAdLvsCjUlG7/yAQUS6Pzk pG6pvsYnPmc967htKAOklEe8GesLgqshapr9w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=lD5rZf4w3L+U/60uBjXbJnOp0rzq845shDOu9ffsQahAKwtEf64kCRpWmqyGsbVvNF V2/cdtGigyCkCAcSMbLAvoiLahBgfhKJBNba/F9lW8IzP2BaHZoi87rmT4KcCuJCjKlY o7hnm2eQ8gCjPB9wC72NlaZiWHUJqD6xP6fAU= Received: by 10.101.132.14 with SMTP id j14mr2751108ann.143.1276349304151; Sat, 12 Jun 2010 06:28:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Sat, 12 Jun 2010 06:28:04 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Sat, 12 Jun 2010 15:28:04 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: MON KEY Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Sat, Jun 12, 2010 at 8:18 AM, MON KEY wrote: > On Fri, Jun 11, 2010 at 4:37 PM, Lennart Borgman > wrote: >> All I proposed was that it should write tab as \t too. > > =C2=A0i) This is not the extent of what you proposed; I guess you mean "this is not what I thought you proposed". > Regardless, the function name `print-escape-newlines' and its > documentation SAY NOTHING ABOUT ESCAPING TAB CHARACTERS!!!!! Yes, it is a terribly bad name for the feature it provides. And it is variable, not a function print-escape-newlines is a variable defined in `C source code'. Its value is nil Documentation: Non-nil means print newlines in strings as `\n'. Also print formfeeds as `\f'. As I understand it the purpose of it is make all the print/prin1/format/pp functions make the written representation of a string easier to handle in certain cases. I think that is very useful some times, but I can't think of a single reason why it should not be good to handel TAB the same way in those cases. Can you? Don't you think getting a printed representation of this kind is useful. To clarify things I pointed to what Andreas wrote. The most important part of that is that the printed representation and the string are different things. The important quality of the printed representation that I think you care about is that it is understood by the function `read' and that when `read' parses the printed representation it gives you back exactly the original string. Is not this what you have been trying to say? > ,---- > | Unfortunately print-escape-newlines does not quote tab, only newline > | and form-feed. Which in my opinion is a bug. To fix this just copy 5 > | lines in print.c at line 1667 and replace form-feed with tab. (I have > | just done that in my patched copy, but it is easier to do this by hand > | then to use a patch.) > `---- > > If you want your suggestions to be understood by others with as little > ambiguity as possible you _must_ submit patches or example code. > > As written I read your 'suggestion' to say: > > =C2=A0"... replace form-feed with tab ..." Hm, sorry, I could not imagine that ... ;-) > In the absence of a patch/example how else could/should it have been > read? FWIW I _did_ take time to examine lines ~1667 of print.c and it > certainly wasn't clear to me what you intended. > > Thanks for wasting my time twice. Once in attempting to understand > what you meant and now a second time to clarify a mutual > misunderstanding. Sorry. But thanks for clarifying this. > Multiply this type of waste by the number of people (now and in the > future) whom reference this bug report and you've potentially wasted > alot of people's time. Maybe. Or it has clarified a few things for many people. >> I might not have proposed that if I knew it was that utterly >> disturbing to someone. ;-) > > I doubt that. ;-) > You seem all too ready to file ambiguous bug reports without > backtraces and/or to suggest changes/fixes to vacuous `bugs' without > an accompanying patch or example source which is illustrative of both > a problem and of a proposed solution. You can't get backtraces in all cases. If you think the bugs are not there because you do not understand what I mean you can ask for clarification. Mail me privately if you want to. > Indeed, I do find this utterly disturbing on your part (esp. in the > aggregate). > > -- > /s_P\ > From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 12 09:37:36 2010 Received: (at submit) by debbugs.gnu.org; 12 Jun 2010 13:37:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONQu0-0001gb-EO for submit@debbugs.gnu.org; Sat, 12 Jun 2010 09:37:36 -0400 Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONQty-0001gS-8F for submit@debbugs.gnu.org; Sat, 12 Jun 2010 09:37:34 -0400 Received: from lists.gnu.org ([199.232.76.165]:52014) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ONQtt-00027i-F9 for submit@debbugs.gnu.org; Sat, 12 Jun 2010 09:37:29 -0400 Received: from [140.186.70.92] (port=50824 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONQtr-0000xL-QD for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:37:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONQtq-0004Yp-R9 for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:37:27 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:40378) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONQtq-0004Yd-OZ for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:37:26 -0400 Received: by gyg4 with SMTP id 4so1771209gyg.0 for ; Sat, 12 Jun 2010 06:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=sY5o9gqBIERbsM+9GKpsyqpjHf/wqyFrEaiWaOYqUzk=; b=CYXRh8JTPLKRg8g91czdqW2K3aiaQnKzYa4J0fdvI8NWh86ZM3yyDSozXYkM65ggO0 e2mUYzWE9di5knngebKHb7kFLKlLNXF76mWGLkqMFAeohkmOLw1gnIPs3dYGo87hil4x Ksw79XrSN42SJokdNflmXBH8FllDZJYs6G5fk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=P8gjxGLJ5KzVQlN8tMqxMLcInkS3Eg7iRz2PtgdNV0oNMj4y07y8pfLkjeK+rhNhlR 47gmUePZqDe1raQ8FOBX/Y7GOKDNwi3L4qo7CnPtJ/ImUUMynqimcENfyBHuR7xtC6Zi 9foe0BIcnLONvG1QLfP/f3KHHxxkbSK0/8pvQ= Received: by 10.101.132.15 with SMTP id j15mr2748880ann.124.1276349845241; Sat, 12 Jun 2010 06:37:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Sat, 12 Jun 2010 06:37:05 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Sat, 12 Jun 2010 15:37:05 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: Kevin Rodgers Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.6 (----) X-Debbugs-Envelope-To: submit Cc: bug-gnu-emacs@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.6 (----) On Sat, Jun 12, 2010 at 8:51 AM, Kevin Rodgers wrote: > Lennart Borgman wrote: > ... >> >> The only interpretation I can make is that the madness is already here >> since linefeed and form-feed already may be written as \n and \f if >> you set print-escape-newlines to t. All I proposed was that it should >> write tab as \t too. > > Perhaps there should be a separate variable to print escape sequences for > all > the ASCII control characters (see the Basic Char Syntax node of the Emacs > Lisp > manual): > > \a, \b, \t, \n, \v, \f, \r, \e, \d > > It would probably be controversial to include \s and \\ , since they aren't > control characters. Maybe the variable should be a list of the ASCII control chars that the print string function should translate to \t etc? >> I might not have proposed that if I knew it was that utterly >> disturbing to someone. ;-) > > Perhaps MON KEY objects to backwards-incompatibility. Yes, I think it was a misunderstanding. And I guess the reason was my bad proposal in the start of this where I did not distinguish between the printed string and the actual string. So I guess it is my fault. (I actually rather confused the regexp syntax with the printed string syntax, of course.) From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 13 23:01:03 2010 Received: (at 6390) by debbugs.gnu.org; 14 Jun 2010 03:01:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONzv5-00021L-1a for submit@debbugs.gnu.org; Sun, 13 Jun 2010 23:01:03 -0400 Received: from mail-gw0-f44.google.com ([74.125.83.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONzv3-00020z-KM for 6390@debbugs.gnu.org; Sun, 13 Jun 2010 23:01:02 -0400 Received: by gwj16 with SMTP id 16so2254903gwj.3 for <6390@debbugs.gnu.org>; Sun, 13 Jun 2010 20:00:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.151.25.16 with SMTP id c16mr5845692ybj.363.1276484455698; Sun, 13 Jun 2010 20:00:55 -0700 (PDT) Received: by 10.151.10.5 with HTTP; Sun, 13 Jun 2010 20:00:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 13 Jun 2010 23:00:54 -0400 X-Google-Sender-Auth: cRXsO6MEBlUG7dahdPUWDbcnSPQ Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? From: MON KEY To: Lennart Borgman Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.0 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.2 (---) On Sat, Jun 12, 2010 at 9:28 AM, Lennart Borgman wrote: > > I guess you mean "this is not what I thought you proposed". I meant what I wrote. > >> Regardless, the function name `print-escape-newlines' and its >> documentation SAY NOTHING ABOUT ESCAPING TAB CHARACTERS!!!!! > > Yes, it is a terribly bad name for the feature it provides. It is reasonably named, it says what it does. Prob. it is only terrible should one want \t escaped as well. > And it is variable, not a function Yes. Of course it is. Sorry. > As I understand it the purpose of it is make all the > print/prin1/format/pp functions make the written representation of a > string easier to handle in certain cases. Understand whatever you want - this isn't what it `print-escape-newlines' _does_. You might find it exceedingly informative and interesting to look over Emacs sources from pre GNU days when coming to grips with the C vagaries inflicted on the Emacs read eval print loop. It recently came as a great surprise to learn that in the past RMS maintained an Emacs which saw `\' as `/'. Google is your friend. Most likely the `print-escape-newlines' function is a bastardized holdover of the d READ-EVAL-PRINT variables and # reader macros from Maclisp days. :SEE (URL `http://maclisp.info/pitmanual/repl.html') :SEE (URL `http://maclisp.info/pitmanual/syntax.html'). Indeed, the transgression upon our poor (e)lisp REPL by the cult of the curly braced are many, and in the absence of a more maleable readtable and reader syntax she has been afforded little with which retaliate against the mighty C, his `\' escape syntax, and the hordes of bastard regexps his syntax has spawned. > but I can't think of a single reason why it should not be good to > handel TAB the same way in those cases. It is a mistake to extend your lack of foresight on other users of this feature. > Can you? Yes, I believe I can. So what? > Don't you think getting a printed representation of this kind is useful. No, it is absolutely not useful for `print-escape-newlines' to do this. Yes, I might find it useful as a dedicated function under another name. Though I don't think it would be difficult to implement if/when needed, and it certainly doesn't need to be piggy-backed onto the existing feature. > To clarify things I pointed to what Andreas wrote. Nonsense. This was your attempt to deflect my objection to one of your ill conceived proposals to another persons objection to yet another of your ill conceived proposals. IOW recursive nonsense... Which FWIW, is my principal objection to this and other such similar bug reports of yours. They often amount to nothing more than veiled feature requests which if presented/exposed/discussed as such would be received poorly. > The most important part of that is that the printed representation > and the string are different things. Of course they are, but this absolutely _not_ the concern here. > The important quality of the printed representation > that I think you care about is that it is understood by the function > `read' and that when `read' parses the printed representation it gives > you back exactly the original string. There is a saying among a certain type of American from the Northeastern U.S.: "You cahn't get theyah from heeah" > Is not this what you have been trying to say? No. I am saying this: It is patently ridiculous to consider adding \t as an escaped char for `print-escape-newlines'. It is a bad idea. It is not the right thing. It is not a bug that \t is not escaped by `print-escape-newlines'. It is, at best, a limitation of C and associated libs utilized to implement the Emacs dialect of lisp. No amount of mucking via C with the elisp REPL in the manner you propose can reliably and reasonably resolve these issues. > Maybe. Or it has clarified a few things for many people. If that is your intention blog it or post it to the Emacswiki's elisp-cookbook. Just don't call it a bug and don't report it as such. > You can't get backtraces in all cases. If you think the bugs are not > there because you do not understand what I mean you can ask for > clarification. One should not, as a matter of course, be required to request clarification on a one or two sentence `bug report' when there is no bug. It is bad form for you to suggest that others accommodate this sort of behavior by you or anyone else. This goes doubly when the sender's subject line of such `bug report's are phrased in the form of a question which routinely match the pattern: "Should not the .*?" -- /s_P\ From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 14 01:34:06 2010 Received: (at 6390) by debbugs.gnu.org; 14 Jun 2010 05:34:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO2JB-0003Ef-Uv for submit@debbugs.gnu.org; Mon, 14 Jun 2010 01:34:06 -0400 Received: from mail-yw0-f197.google.com ([209.85.211.197]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OO2J9-0003EH-AY for 6390@debbugs.gnu.org; Mon, 14 Jun 2010 01:34:04 -0400 Received: by ywh35 with SMTP id 35so2949654ywh.29 for <6390@debbugs.gnu.org>; Sun, 13 Jun 2010 22:34:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=NKCBQa4COQppXD9YwAB3AjuTqKLSjh+kLtsqDFK1NW4=; b=Mk/7VyFZFmRwrrgRsjMWEt2Mkjm8HgS0kzQm+hB2MjrgutVdr1kzMFvJ4wGWIv2zg4 86rF1ifG9Q5cf/pUabYKb+6NbndAQdGP5mMogZRfY2jd0V4PeIaeopHeUjqHKU3oGu5i gziekwMLj62FprPJJvWE22wvqKCZYdJJPm22c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=HDUem49babJRMwfeFPy1LpcXyiFO3g18Cs1KHJlQiLAy60GLMcc4xhnLvdSfAnPYMr VrSEbzQWz0qoSrk9MpEsvbclYhcujHzS7pxr2N0KzyCAjdMDXrrEMJg99bqwfOcKufWz 0yOqqyRVJ6HGbzu3IoW1lQsg1N4gjZ1QxdvGg= Received: by 10.100.245.35 with SMTP id s35mr4284481anh.71.1276493639875; Sun, 13 Jun 2010 22:33:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.154.15 with HTTP; Sun, 13 Jun 2010 22:33:39 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Mon, 14 Jun 2010 07:33:39 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: MON KEY Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 6390 Cc: 6390@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Mon, Jun 14, 2010 at 5:00 AM, MON KEY wrote: > On Sat, Jun 12, 2010 at 9:28 AM, Lennart Borgman > wrote: >> >> I guess you mean "this is not what I thought you proposed". > > I meant what I wrote. So you think you understood what I proposed better than me? That is very strange. >>> Regardless, the function name `print-escape-newlines' and its >>> documentation SAY NOTHING ABOUT ESCAPING TAB CHARACTERS!!!!! >> >> Yes, it is a terribly bad name for the feature it provides. > > It is reasonably named, it says what it does. > Prob. it is only terrible should one want \t escaped as well. Why do you print-escape-newlines is a good name for something that controls both escaping of newlines and form-feeds? >> As I understand it the purpose of it is make all the >> print/prin1/format/pp functions make the written representation of a >> string easier to handle in certain cases. > > Understand whatever you want - this isn't what it > `print-escape-newlines' _does_. > > You might find it exceedingly informative and interesting to look over > Emacs sources from pre GNU days when coming to grips with the C > vagaries inflicted on the Emacs read eval print loop. Thanks, but no. > Indeed, the transgression upon our poor (e)lisp REPL by the cult of the > curly braced are many, and in the absence of a more maleable readtable > and reader syntax she has been afforded little with which retaliate > against the mighty C, his `\' escape syntax, and the hordes of bastard > regexps his syntax has spawned. Using the same character for read escapes and regexp backslash makes things difficult, yes. And lead to confusing discussions like this one. >> but I can't think of a single reason why it should not be good to >> handel TAB the same way in those cases. > > It is a mistake to extend your lack of foresight on other users of > this feature. > >> =C2=A0Can you? > > Yes, I believe I can. So what? It seemed important to you so I thought you might want to tell. >> Don't you think getting a printed representation of this kind is useful. > > No, it is absolutely not useful for `print-escape-newlines' to do this. > > Yes, I might find it useful as a dedicated function under another > name. =C2=A0Though I don't think it would be difficult to implement if/wh= en > needed, and it certainly doesn't need to be piggy-backed onto the > existing feature. I would be glad if you gave some arguments. >> To clarify things I pointed to what Andreas wrote. > > Nonsense. This was your attempt to deflect my objection to one of your > ill conceived proposals to another persons objection to yet another of > your ill conceived proposals. =C2=A0IOW recursive nonsense... Please don't waste our time! If you have something to say then do it! > Which FWIW, is my principal objection to this and other such similar > bug reports of yours. They often amount to nothing more than veiled > feature requests which if presented/exposed/discussed as such would be > received poorly. I think it would be better if you asked me if you do not understand them. There is no reason wasting other peoples time too. Mail me privately. > sender's subject line of such `bug report's are phrased in the > form of a question which routinely match the pattern: > > =C2=A0"Should not the .*?" I am sorry, but you are misunderstanding. We also use the bug database for wishes and suggestions so they do not get lost. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 01:30:43 2011 Received: (at 6390-done) by debbugs.gnu.org; 9 Jul 2011 05:30:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfQ7n-0003UD-3X for submit@debbugs.gnu.org; Sat, 09 Jul 2011 01:30:43 -0400 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfQ7l-0003U2-CL for 6390-done@debbugs.gnu.org; Sat, 09 Jul 2011 01:30:41 -0400 Received: from localhost ([127.0.0.1]:33118) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QfQ7e-000330-T7; Sat, 09 Jul 2011 01:30:35 -0400 From: Glenn Morris To: 6390-done@debbugs.gnu.org Subject: Re: bug#6390: Should not regexp-quote quote newline? References: X-Spook: bomb militia Guantanamo CIDA Consul national X-Ran: e0]V+[[7AjAv[j2]BuV*6j57R|u!W.9`XZ$oJ,\6E$)loHed_N&}x0LeX-lAsfrxl7eB?6 X-Hue: magenta X-Attribution: GM Date: Sat, 09 Jul 2011 01:30:34 -0400 In-Reply-To: (Kevin Rodgers's message of "Sat, 12 Jun 2010 00:51:00 -0600") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 6390-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) I don't see a need to keep open this particular report, which was marked "wontfix" some time ago. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 09 06:04:18 2011 Received: (at 6390) by debbugs.gnu.org; 9 Jul 2011 10:04:19 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfUOX-00025w-LI for submit@debbugs.gnu.org; Sat, 09 Jul 2011 06:04:18 -0400 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfUOU-00025c-F7; Sat, 09 Jul 2011 06:04:15 -0400 Received: by eye13 with SMTP id 13so1093056eye.3 for ; Sat, 09 Jul 2011 03:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=Vo84uW40adz/Bijk3qkiBfw1eLyT5gIlw+EeWD5pOtM=; b=IUNpEl7AhYvfItGT5WdaploFSlhC/UL5qBswTbcenfIZi7VXxuCFPYtJPnCykdmRho 28ocVg3BgQdbOc8w9LCkO9/9O0eAqj3ZHk+er+wtEEbC2skXw+KUQKzMeHGdIcUK5bXJ N4g6BXdybTTAP6noA2WebJfNYI/VMKK2VgZsc= Received: by 10.213.114.66 with SMTP id d2mr871426ebq.102.1310205848262; Sat, 09 Jul 2011 03:04:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.8.65 with HTTP; Sat, 9 Jul 2011 03:03:48 -0700 (PDT) In-Reply-To: References: From: Lennart Borgman Date: Sat, 9 Jul 2011 12:03:48 +0200 Message-ID: Subject: Re: bug#6390: Should not regexp-quote quote newline? To: 6390@debbugs.gnu.org, rgm@gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -3.6 (---) X-Debbugs-Envelope-To: 6390 Cc: 6390-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.6 (---) On Sat, Jul 9, 2011 at 07:30, Glenn Morris wrote: > > I don't see a need to keep open this particular report, which was marked > "wontfix" some time ago. This was a long time ago. I just reread the thread. My initial proposal was bad which Andreas pointed out. However the proposal to escape \t along with \n and \f which are currently escaped still seems valid. From unknown Tue Jun 17 01:46:34 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 06 Aug 2011 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator