From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: exits funnel Newsgroups: gmane.emacs.help Subject: comment / uncomment region Date: Sat, 31 Jul 2004 14:34:44 -0700 (PDT) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <20040731213444.40882.qmail@web52910.mail.yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1091309703 2565 80.91.224.253 (31 Jul 2004 21:35:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 31 Jul 2004 21:35:03 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 31 23:34:57 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Br1VI-00021Q-00 for ; Sat, 31 Jul 2004 23:34:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Br1Yb-0005Nq-TN for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jul 2004 17:38:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Br1YU-0005NQ-FT for help-gnu-emacs@gnu.org; Sat, 31 Jul 2004 17:38:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Br1YS-0005N0-ST for help-gnu-emacs@gnu.org; Sat, 31 Jul 2004 17:38:14 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Br1YS-0005Mx-QN for help-gnu-emacs@gnu.org; Sat, 31 Jul 2004 17:38:12 -0400 Original-Received: from [206.190.39.187] (helo=web52910.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.34) id 1Br1V6-0008Hw-Qy for help-gnu-emacs@gnu.org; Sat, 31 Jul 2004 17:34:44 -0400 Original-Received: from [67.86.87.9] by web52910.mail.yahoo.com via HTTP; Sat, 31 Jul 2004 14:34:44 PDT Original-To: help-gnu-emacs@gnu.org 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: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:19907 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19907 Hello, I'm having trouble getting comment-region and uncomment-region to work in the .grammar files I'm editing. I'm pretty new to Emacs but I understnad they don't work because there is no major mode for these sablecc grammar files. I've looked at the doc a bit and I understand that I have to set the variable comment-start to "//" but when I evaluate (setq comment-start) in the scratch buffer it seems to change the value only for that buffer. Can anyone give me a jump start here? Ideally, I'd like to be able to put something in my .emacs file which will set its value for any active .grammar file, but I'd be satisfied if I could at least figure out how to set it interactively for the current buffer. Thanks in advance. -exits __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com