From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Balaji Venkataraman Newsgroups: gmane.emacs.help Subject: Re: Two questions.... Date: Mon, 02 Jun 2003 15:01:49 -0700 Organization: Intel Corporation Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <8an0h0rvea.fsf@sm.intel.com> References: <84vfvoubrx.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1054592095 30653 80.91.224.249 (2 Jun 2003 22:14:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2003 22:14:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 00:14:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19MxZs-0007y6-00 for ; Tue, 03 Jun 2003 00:14:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19Mxac-0003tN-9y for gnu-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2003 18:15:38 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news2.euro.net!transit.news.cuci.nl!cleanfeed.casema.net!bnewsoutpeer00.bru.ops.eu.uu.net!bnewsinpeer01.bru.ops.eu.uu.net!emea.uu.net!ash.uu.net!news01.intel.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: leith.sm.intel.com Original-X-Trace: news01.intel.com 1054591310 20720 10.13.43.98 (2 Jun 2003 22:01:50 GMT) Original-X-Complaints-To: usenet@news01.intel.com Original-NNTP-Posting-Date: Mon, 2 Jun 2003 22:01:50 +0000 (UTC) User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.1 (usg-unix-v) Cancel-Lock: sha1:4StGQNxRiPNrrpFL6/8a2dFJ0P4= Original-Xref: shelby.stanford.edu gnu.emacs.help:114009 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:10503 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:10503 >>>>> "Kai" == Kai Großjohann writes: Kai> Urban Gabor writes: >> 2. I generaly do C/C++ and Perl editing with emacs. It would be very >> convenient to ha a generic macro, which insert an empty comment in >> the code. My problem is, that the formar of the comment is dependig >> on the programming language (mode) you use. Is there a genereal >> solution? Kai> I hit M-;. (This is new in Emacs 21.) -- This line is not blank. If I understand Urban correctly, he wants to insert a new comment block - like say some header text - he does not want to know how to (un)comment existing lines etc. Meaning if I'm in C mode I want to say "M-x insert-my-header" and it does // Filename: // Date started: but in Perl mode it does # Filename: # Date started: At least that's what I've wished for a while. Thought I'd learn enough elisp to write a function to do that. But when is the question! -- Remember 2 + 2 = 5, for large values of 2