From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.bugs Subject: bug#6390: Should not regexp-quote quote newline? Date: Sat, 12 Jun 2010 15:28:04 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1276351113 2175 80.91.229.12 (12 Jun 2010 13:58:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 13:58:33 +0000 (UTC) Cc: 6390@debbugs.gnu.org To: MON KEY Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 12 15:58:31 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ONREE-0002MR-TM for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 15:58:31 +0200 Original-Received: from localhost ([127.0.0.1]:57926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONRED-0001Qo-7Z for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 09:58:29 -0400 Original-Received: from [140.186.70.92] (port=51269 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONRE7-0001QY-7j for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:58:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONRE5-0007cA-Uk for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:58:23 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50932) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONRE5-0007c4-S6 for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 09:58:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ONQli-0001cS-Ce; Sat, 12 Jun 2010 09:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Jun 2010 13:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6390 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 6390-submit@debbugs.gnu.org id=B6390.12763493126211 (code B ref 6390); Sat, 12 Jun 2010 13:29:02 +0000 Original-Received: (at 6390) by debbugs.gnu.org; 12 Jun 2010 13:28:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONQlE-0001c8-1Q for submit@debbugs.gnu.org; Sat, 12 Jun 2010 09:28:32 -0400 Original-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 Original-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= Original-Received: by 10.101.132.14 with SMTP id j14mr2751108ann.143.1276349304151; Sat, 12 Jun 2010 06:28:24 -0700 (PDT) Original-Received: by 10.100.154.15 with HTTP; Sat, 12 Jun 2010 06:28:04 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 12 Jun 2010 09:29:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:37724 Archived-At: 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\ >