From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alex Gusarov" Newsgroups: gmane.emacs.help Subject: LISP routines for commenting Date: Fri, 8 Aug 2008 15:36:22 +0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1218232504 4579 80.91.229.12 (8 Aug 2008 21:55:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Aug 2008 21:55:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 08 23:55:56 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KRZwB-0001z0-Pz for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 23:55:55 +0200 Original-Received: from localhost ([127.0.0.1]:42277 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRZvG-0005s2-9c for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Aug 2008 17:54:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KRNSV-00078v-3l for help-gnu-emacs@gnu.org; Fri, 08 Aug 2008 04:36:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KRNSS-00076w-B3 for help-gnu-emacs@gnu.org; Fri, 08 Aug 2008 04:36:26 -0400 Original-Received: from [199.232.76.173] (port=36182 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KRNSS-00076Z-3F for help-gnu-emacs@gnu.org; Fri, 08 Aug 2008 04:36:24 -0400 Original-Received: from rv-out-0708.google.com ([209.85.198.250]:51437) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KRNSS-0007FF-Fa for help-gnu-emacs@gnu.org; Fri, 08 Aug 2008 04:36:24 -0400 Original-Received: by rv-out-0708.google.com with SMTP id k29so888523rvb.6 for ; Fri, 08 Aug 2008 01:36:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=qia5KUUXZMjpLWi46YtlVNWZXhpbUxu2VTnK8Ltx4LM=; b=jM8EfgUgE3UFUP38a00D98sUglx7ETBlNmcX1cEklNem85fpUp21yUrl04KzRbaDu1 anqoNri68eyYZIgzTp+FIs9E7gwmA4GGTdgUHrYU/n9GlEqhKd6+7IpwvdjGqGYZ2APK UFymriJDiKFm0ezViwoelrWfgsOQhQ3d9J0NQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=XWad06IkNRtGlK9UWpVGvj/j6EqqrESk3LtbeNhMX88tpn2KoVDubHiTprchpocLa9 SbFBmks4SIiqsGPnxQrDargisrU438dg99Z9Zdg71u7N+llFF1LSLAVv/nShNVOdudzS A+5uWjprVfzoRVYpw8gKZ4KT55sDYtfQ7kB9A= Original-Received: by 10.140.250.14 with SMTP id x14mr1284552rvh.79.1218184582047; Fri, 08 Aug 2008 01:36:22 -0700 (PDT) Original-Received: by 10.140.143.16 with HTTP; Fri, 8 Aug 2008 01:36:21 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Fri, 08 Aug 2008 17:54:35 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56330 Archived-At: Hello, I want to implement some lisp functions for the following: 1. Insert comment - when mark some lines of code and using it, insert ins-comments, like this: before: l = [] l.append(1) then mark it and use ins-func, after: # ins > , l = [] l.append(1) # ins < , Please, help me with some general code, thanks! -- Best regards, Alex Gusarov