[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.50; ielm doesn't handle comments
From: |
Bastien Guerry |
Subject: |
Re: 23.0.50; ielm doesn't handle comments |
Date: |
Fri, 15 Feb 2008 14:27:41 +0000 |
User-agent: |
Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) |
Lawrence Mitchell <address@hidden> writes:
> Bastien wrote:
>
> [...]
>
>> Right. I have come up with another solution, not relying on font-lock,
>> but this one doesn't allow the double-quote character in comments.
>
>> Please improve it if you can. If no objection/suggestion until next
>> week, I'll apply this one.
>
> I think the right way to fix this is to allow ielm to read the
> form as it currently does (using read-from-string) and then
> discard following input if it contains either merely whitespace
> (as is currently the case) or a comment.
Of course, you're right.
I haven't seen your first patch, sorry.
I propose this slightly modified patch below: it uses
"\\`[ \t\n]*\\(?:;.*\\)*\\'"
^
^
in `ielm-is-whitespace-or-comment' so that a sexp like
(message "test");; comment
^ <= no whitespace
doesn't return an error.
I will apply this with the ChangeLog you provided if you agree.
Thanks,
ieml.el.patch
Description: Text Data
--
Bastien
- 23.0.50; ielm doesn't handle comments, Adam Winiecki, 2008/02/13
- Re: 23.0.50; ielm doesn't handle comments, Lawrence Mitchell, 2008/02/14
- Re: 23.0.50; ielm doesn't handle comments, Richard Stallman, 2008/02/14
- Re: 23.0.50; ielm doesn't handle comments, Bastien Guerry, 2008/02/14
- Re: 23.0.50; ielm doesn't handle comments, Reiner Steib, 2008/02/14
- Re: 23.0.50; ielm doesn't handle comments, Bastien Guerry, 2008/02/14
- Re: 23.0.50; ielm doesn't handle comments, Lawrence Mitchell, 2008/02/14
- Re: 23.0.50; ielm doesn't handle comments, Bastien, 2008/02/14
- Re: 23.0.50; ielm doesn't handle comments, Lawrence Mitchell, 2008/02/15
- Re: 23.0.50; ielm doesn't handle comments,
Bastien Guerry <=
- Re: 23.0.50; ielm doesn't handle comments, Bastien Guerry, 2008/02/15
- Re: 23.0.50; ielm doesn't handle comments, Lawrence Mitchell, 2008/02/15
- Re: 23.0.50; ielm doesn't handle comments, Bastien, 2008/02/16
- Re: 23.0.50; ielm doesn't handle comments, Lawrence Mitchell, 2008/02/16
- Re: 23.0.50; ielm doesn't handle comments, Glenn Morris, 2008/02/16
- Re: 23.0.50; ielm doesn't handle comments, Bastien Guerry, 2008/02/16