[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6390: Should not regexp-quote quote newline?
From: |
Lennart Borgman |
Subject: |
bug#6390: Should not regexp-quote quote newline? |
Date: |
Fri, 11 Jun 2010 01:11:53 +0200 |
On Thu, Jun 10, 2010 at 8:07 PM, Lennart Borgman
<lennart.borgman@gmail.com> wrote:
> 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)))
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 ...
- bug#6390: Should not regexp-quote quote newline?, (continued)
- bug#6390: Should not regexp-quote quote newline?, Andreas Schwab, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?, Drew Adams, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?, Andreas Schwab, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?, Andreas Schwab, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?, Andreas Schwab, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/10
- bug#6390: Should not regexp-quote quote newline?,
Lennart Borgman <=
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/10
bug#6390: Should not regexp-quote quote newline?, MON KEY, 2010/06/11
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/11
- bug#6390: Should not regexp-quote quote newline?, MON KEY, 2010/06/11
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/11
- bug#6390: Should not regexp-quote quote newline?, MON KEY, 2010/06/12
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/12
- bug#6390: Should not regexp-quote quote newline?, MON KEY, 2010/06/13
- bug#6390: Should not regexp-quote quote newline?, Lennart Borgman, 2010/06/14
bug#6390: Should not regexp-quote quote newline?, Kevin Rodgers, 2010/06/12