all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman@gmail.com>
To: Andreas Schwab <schwab@linux-m68k.org>
Cc: 6390@debbugs.gnu.org
Subject: bug#6390: Should not regexp-quote quote newline?
Date: Thu, 10 Jun 2010 20:07:42 +0200	[thread overview]
Message-ID: <AANLkTilZm-5YN5pMsAwSx1K9Tt-z4TZ_hBS8GEfaCcyM@mail.gmail.com> (raw)
In-Reply-To: <m2sk4uvmz2.fsf@igel.home>

On Thu, Jun 10, 2010 at 7:03 PM, Andreas Schwab <schwab@linux-m68k.org> wrote:
> Lennart Borgman <lennart.borgman@gmail.com> 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.





  reply	other threads:[~2010-06-10 18:07 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-10 14:42 bug#6390: Should not regexp-quote quote newline? Lennart Borgman
2010-06-10 15:01 ` Andreas Schwab
2010-06-10 15:02   ` Lennart Borgman
2010-06-10 15:34     ` Drew Adams
2010-06-10 16:08     ` Andreas Schwab
2010-06-10 16:11       ` Lennart Borgman
2010-06-10 16:22         ` Andreas Schwab
2010-06-10 16:46           ` Lennart Borgman
2010-06-10 17:03             ` Andreas Schwab
2010-06-10 18:07               ` Lennart Borgman [this message]
2010-06-10 23:11                 ` Lennart Borgman
2010-06-11  0:44                   ` Lennart Borgman
2010-06-10 15:22 ` Drew Adams
2010-06-10 15:34   ` Lennart Borgman
2010-06-10 16:28     ` Juanma Barranquero
2010-06-10 16:47       ` Lennart Borgman
2010-06-10 16:56     ` Andreas Schwab
2010-06-10 17:00       ` Lennart Borgman
2010-06-11  4:19 ` MON KEY
2010-06-11  4:43   ` Lennart Borgman
2010-06-11 20:09     ` MON KEY
2010-06-11 20:37       ` Lennart Borgman
2010-06-12  6:18         ` MON KEY
2010-06-12 13:28           ` Lennart Borgman
2010-06-14  3:00             ` MON KEY
2010-06-14  5:33               ` Lennart Borgman
2010-06-12  6:51         ` Kevin Rodgers
2010-06-12 13:37           ` Lennart Borgman
2011-07-09  5:30           ` Glenn Morris
2011-07-09 10:03             ` Lennart Borgman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=AANLkTilZm-5YN5pMsAwSx1K9Tt-z4TZ_hBS8GEfaCcyM@mail.gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=6390@debbugs.gnu.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.