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: Thu, 10 Jun 2010 20:07:42 +0200 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 1276194642 30759 80.91.229.12 (10 Jun 2010 18:30:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2010 18:30:42 +0000 (UTC) Cc: 6390@debbugs.gnu.org To: Andreas Schwab Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 10 20:30:41 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 1OMmWU-00012r-9E for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jun 2010 20:30:38 +0200 Original-Received: from localhost ([127.0.0.1]:36708 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMmWT-0007qy-E1 for geb-bug-gnu-emacs@m.gmane.org; Thu, 10 Jun 2010 14:30:37 -0400 Original-Received: from [140.186.70.92] (port=58303 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMmUC-0006BX-OX for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 14:28:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMmUB-0001zC-6j for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 14:28:16 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36440) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMmUB-0001z5-5N for bug-gnu-emacs@gnu.org; Thu, 10 Jun 2010 14:28:15 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OMmBZ-0005RZ-KB; Thu, 10 Jun 2010 14:09:01 -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: Thu, 10 Jun 2010 18:09:01 +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: Original-Received: via spool by 6390-submit@debbugs.gnu.org id=B6390.127619329120917 (code B ref 6390); Thu, 10 Jun 2010 18:09:01 +0000 Original-Received: (at 6390) by debbugs.gnu.org; 10 Jun 2010 18:08:11 +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 1OMmAk-0005RK-Pa for submit@debbugs.gnu.org; Thu, 10 Jun 2010 14:08:11 -0400 Original-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 Original-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= Original-Received: by 10.101.105.22 with SMTP id h22mr511396anm.35.1276193282610; Thu, 10 Jun 2010 11:08:02 -0700 (PDT) Original-Received: by 10.100.154.15 with HTTP; Thu, 10 Jun 2010 11:07:42 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 10 Jun 2010 14:09:01 -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:37675 Archived-At: 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.