From: Lei
Subject: How to comment/uncomment multiple lines in slime+xemacs?
Date: 
Message-ID: <errc5l$pr6$1@news.asu.edu>
Hi, I use Xemacs+slime to  edit lisp files.

I want to comment multiple lines to debug different part of the lisp 
file. Is there any shortcut (or function) to comment/uncomment a 
selected region(multiple lines) in a lisp file?

Thanks a lot!
-Lei

From: Rainer Joswig
Subject: Re: How to comment/uncomment multiple lines in slime+xemacs?
Date: 
Message-ID: <joswig-A01492.08512425022007@news-europe.giganews.com>
In article <············@news.asu.edu>, Lei <······@asu.edu> wrote:

> Hi, I use Xemacs+slime to  edit lisp files.
> 
> I want to comment multiple lines to debug different part of the lisp 
> file. Is there any shortcut (or function) to comment/uncomment a 
> selected region(multiple lines) in a lisp file?
> 
> Thanks a lot!
> -Lei

Common Lisp:

#|

(code)

|#
From: Lars Rune Nøstdal
Subject: Re: How to comment/uncomment multiple lines in slime+xemacs?
Date: 
Message-ID: <pan.2007.02.25.07.54.04.847836@gmail.com>
On Sun, 25 Feb 2007 00:00:16 -0700, Lei wrote:

> Hi, I use Xemacs+slime to  edit lisp files.
> 
> I want to comment multiple lines to debug different part of the lisp 
> file. Is there any shortcut (or function) to comment/uncomment a 
> selected region(multiple lines) in a lisp file?

  M-x slime-insert-balanced-comments
  M-x slime-remove-balanced-comments

-- 
Lars Rune Nøstdal
http://nostdal.org/
From: Lars Rune Nøstdal
Subject: Re: How to comment/uncomment multiple lines in slime+xemacs?
Date: 
Message-ID: <pan.2007.02.25.08.06.33.312122@gmail.com>
On Sun, 25 Feb 2007 08:54:05 +0100, Lars Rune Nøstdal wrote:

> On Sun, 25 Feb 2007 00:00:16 -0700, Lei wrote:
> 
>> Hi, I use Xemacs+slime to  edit lisp files.
>> 
>> I want to comment multiple lines to debug different part of the lisp 
>> file. Is there any shortcut (or function) to comment/uncomment a 
>> selected region(multiple lines) in a lisp file?
> 
>   M-x slime-insert-balanced-comments
>   M-x slime-remove-balanced-comments

Here's how you can find stuff like this:

  M-x apropos <enter> then type in "comment slime" and press enter.

-- 
Lars Rune Nøstdal
http://nostdal.org/
From: Harald Hanche-Olsen
Subject: Re: How to comment/uncomment multiple lines in slime+xemacs?
Date: 
Message-ID: <pcoirdqa7o1.fsf@shuttle.math.ntnu.no>
+ Lei <······@asu.edu>:

| Hi, I use Xemacs+slime to  edit lisp files.
|
| I want to comment multiple lines to debug different part of the lisp
| file. Is there any shortcut (or function) to comment/uncomment a
| selected region(multiple lines) in a lisp file?

You asked the exact same question on the slime-devel list.  Please ask
such questions in only one venue at a time, to avoid needlessly
wasting other people's time.  (If you don't get a satisfactory answer
in one place, it's okay to take it elsewhere.)

(But consider this helpful advice:  C-h a comment RET done in a Lisp
buffer would have pointed you in the right direction.)

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell
From: Ken Tilton
Subject: Re: How to comment/uncomment multiple lines in slime+xemacs?
Date: 
Message-ID: <0cgEh.1$z42.0@newsfe12.lga>
Harald Hanche-Olsen wrote:
> + Lei <······@asu.edu>:
> 
> | Hi, I use Xemacs+slime to  edit lisp files.
> |
> | I want to comment multiple lines to debug different part of the lisp
> | file. Is there any shortcut (or function) to comment/uncomment a
> | selected region(multiple lines) in a lisp file?
> 
> You asked the exact same question on the slime-devel list.  Please ask
> such questions in only one venue at a time, to avoid needlessly
> wasting other people's time.  (If you don't get a satisfactory answer
> in one place, it's okay to take it elsewhere.)

You gots to be kidding. And how long must I wait? And exactly how is 
time being wasted if I cross-ask?

kt

-- 
Well, I've wrestled with reality for 35 years, Doctor, and
I'm happy to state I finally won out over it.
                                   -- Elwood P. Dowd

In this world, you must be oh so smart or oh so pleasant.
                                   -- Elwood's Mom
From: Harald Hanche-Olsen
Subject: Re: How to comment/uncomment multiple lines in slime+xemacs?
Date: 
Message-ID: <pcohcta876r.fsf@shuttle.math.ntnu.no>
+ Ken Tilton <·········@gmail.com>:

| Harald Hanche-Olsen wrote:
|> Please ask
|> such questions in only one venue at a time, to avoid needlessly
|> wasting other people's time.  (If you don't get a satisfactory answer
|> in one place, it's okay to take it elsewhere.)
|
| You gots to be kidding.

Nope.  (But the transgression in this case is really minor, so I might
not have mentioned it at all.  Life gets unpleasant if minor blunders
are pointed out all the time, but I think it is worthwhile to speak up
once in a rare while.)

| And how long must I wait?

No easy rules.  Depends on the urgency of the question and the typical
time scale of responses in the place you're asking, among other things.
In this case, I judge the urgency to be low (the OP could just comment
and uncomment blocks by slower methods until an answer was forthcoming).

| And exactly how is time being wasted if I cross-ask?

I assumed that if the question no longer needs answering because it
has already been answered elsewhere, then time has been wasted.  If
this assumption is incorrect, the conclusion does not follow.

-- 
* Harald Hanche-Olsen     <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
  when there is no ground whatsoever for supposing it is true.
  -- Bertrand Russell
From: Lei
Subject: Re: How to comment/uncomment multiple lines in slime+xemacs?
Date: 
Message-ID: <45E1CD00.2040707@asu.edu>
Harald Hanche-Olsen wrote:
> + Ken Tilton <·········@gmail.com>:
> 
> | Harald Hanche-Olsen wrote:
> |> Please ask
> |> such questions in only one venue at a time, to avoid needlessly
> |> wasting other people's time.  (If you don't get a satisfactory answer
> |> in one place, it's okay to take it elsewhere.)
> |
> | You gots to be kidding.
> 
> Nope.  (But the transgression in this case is really minor, so I might
> not have mentioned it at all.  Life gets unpleasant if minor blunders
> are pointed out all the time, but I think it is worthwhile to speak up
> once in a rare while.)
> 
> | And how long must I wait?
> 
> No easy rules.  Depends on the urgency of the question and the typical
> time scale of responses in the place you're asking, among other things.
> In this case, I judge the urgency to be low (the OP could just comment
> and uncomment blocks by slower methods until an answer was forthcoming).
> 
> | And exactly how is time being wasted if I cross-ask?
> 
> I assumed that if the question no longer needs answering because it
> has already been answered elsewhere, then time has been wasted.  If
> this assumption is incorrect, the conclusion does not follow.
> 

All these suggestions are very helpful.
Next time, I should post on comp.lang.lisp first. This is more active 
than other groups :)

Thanks again.
-Lei