From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: MON KEY Newsgroups: gmane.emacs.bugs Subject: bug#6390: Should not regexp-quote quote newline? Date: Sat, 12 Jun 2010 02:18:43 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1276324116 26897 80.91.229.12 (12 Jun 2010 06:28:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 12 Jun 2010 06:28:36 +0000 (UTC) Cc: 6390@debbugs.gnu.org To: Lennart Borgman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 12 08:28:34 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 1ONKCo-0004Xr-Aq for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 08:28:34 +0200 Original-Received: from localhost ([127.0.0.1]:60395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONKCn-0001KP-Fp for geb-bug-gnu-emacs@m.gmane.org; Sat, 12 Jun 2010 02:28:33 -0400 Original-Received: from [140.186.70.92] (port=57770 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONKCc-0001KE-Mu for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 02:28:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONKCb-0001fo-65 for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 02:28:22 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51527) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONKCb-0001fk-3Z for bug-gnu-emacs@gnu.org; Sat, 12 Jun 2010 02:28:21 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1ONK3a-0006Fw-4S; Sat, 12 Jun 2010 02:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: MON KEY 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 06:19: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.127632353024041 (code B ref 6390); Sat, 12 Jun 2010 06:19:02 +0000 Original-Received: (at 6390) by debbugs.gnu.org; 12 Jun 2010 06:18:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONK3N-0006Fi-Ji for submit@debbugs.gnu.org; Sat, 12 Jun 2010 02:18:49 -0400 Original-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 Original-Received: by ywh35 with SMTP id 35so1809691ywh.29 for <6390@debbugs.gnu.org>; Fri, 11 Jun 2010 23:18:43 -0700 (PDT) Original-Received: by 10.150.66.18 with SMTP id o18mr3979284yba.242.1276323523428; Fri, 11 Jun 2010 23:18:43 -0700 (PDT) Original-Received: by 10.151.10.5 with HTTP; Fri, 11 Jun 2010 23:18:43 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: waqymEpgSxeUxvmW4t3RcfDXQGw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Sat, 12 Jun 2010 02:19: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:37713 Archived-At: 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\