From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maindoor Newsgroups: gmane.emacs.help Subject: Using C++ style block comment in c-mode Date: Mon, 6 Oct 2008 00:09:24 -0700 (PDT) Message-ID: <203869.94815.qm@web57808.mail.re3.yahoo.com> References: <20081005211215.318d8f9d@ba-sing-se.nano.net> Reply-To: sanjeevfiles@yahoo.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0-828560368-1223276964=:94815" X-Trace: ger.gmane.org 1223283413 8903 80.91.229.12 (6 Oct 2008 08:56:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2008 08:56:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 06 10:57:50 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 1KmluX-00017U-5O for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Oct 2008 10:57:49 +0200 Original-Received: from localhost ([127.0.0.1]:54985 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KmltT-00031y-5X for geh-help-gnu-emacs@m.gmane.org; Mon, 06 Oct 2008 04:56:43 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kmlt2-0002za-8D for help-gnu-emacs@gnu.org; Mon, 06 Oct 2008 04:56:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kmlsy-0002vm-0V for help-gnu-emacs@gnu.org; Mon, 06 Oct 2008 04:56:15 -0400 Original-Received: from [199.232.76.173] (port=35099 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kmlsx-0002vK-NZ for help-gnu-emacs@gnu.org; Mon, 06 Oct 2008 04:56:11 -0400 Original-Received: from web57808.mail.re3.yahoo.com ([68.142.236.86]:21549) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Kmlsw-0003HF-TB for help-gnu-emacs@gnu.org; Mon, 06 Oct 2008 04:56:11 -0400 Original-Received: (qmail 94818 invoked by uid 60001); 6 Oct 2008 07:09:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=wivOG/NuYZxI+2rlzluMIhNi2nLWwHrfHVsK+0pOMtazs/eWEPRxnSY9KE4M5ObMkXwtgmT8UlcXJuP75Y7sshd/sBkt/Hou4NLJnBpHheappVfe4O4YCJTaCkVTKKQEFhi06VmIblrKzq8+VRf/e0nf+7eY1nfcJt9DZQpX4IY=; X-YMail-OSG: 6O4vSe8VM1kconj6jsxjuKzDrkp__S836sf1iEPuPGh2i6kc4V2MZKRqzWLS_mgenPc0xrdDzThgH_m4GIxLLx7dq2ErVuXGENvWvrLNU33p_eS11WJKtu7dkxoEyRZoKPQ1ERXXhSYQ7RCPoydkCI7mLFWp0Q-- Original-Received: from [124.30.112.50] by web57808.mail.re3.yahoo.com via HTTP; Mon, 06 Oct 2008 00:09:24 PDT X-Mailer: YahooMailWebService/0.7.218.2 In-Reply-To: <20081005211215.318d8f9d@ba-sing-se.nano.net> X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) 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:58411 Archived-At: --0-828560368-1223276964=:94815 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I already had this in my .emacs file for c mode. So I added=20 a set variable to support c++ style comments for C, see at=20 the end. But it still doesn't work. any suggestions ? (setq c-default-style "linux-c-mode") (defun linux-c-mode () =A0 (interactive) =A0 (c-mode) =A0 (setq c-indent-level 8) =A0 (setq c-brace-imaginary-offset 0) =A0 (setq c-brace-offset -8) =A0 (setq c-argdecl-indent 8) =A0 (setq c-label-offset -8) =A0 (setq c-continued-statement-offset 8) =A0 (setq indent-tabs-mode nil) =A0 (setq tab-width 4) ->=A0 (setq comment-start "// ") ->=A0 (setq comment-end " ")) Regards, Maindoor. =20 hasEML =3D false; =20 =20 =20 =20 =0A=0A=0A --0-828560368-1223276964=:94815 Content-Type: text/html; charset=us-ascii
I already had this in my .emacs file for c mode. So I added
a set variable to support c++ style comments for C, see at
the end. But it still doesn't work. any suggestions ?

(setq c-default-style "linux-c-mode")
(defun linux-c-mode ()
  (interactive)
  (c-mode)
  (setq c-indent-level 8)
  (setq c-brace-imaginary-offset 0)
  (setq c-brace-offset -8)
  (setq c-argdecl-indent 8)
  (setq c-label-offset -8)
  (setq c-continued-statement-offset 8)
  (setq indent-tabs-mode nil)
  (setq tab-width 4)
->  (setq comment-start "// ")
->  (setq comment-end " "))

Regards,
Maindoor.


--0-828560368-1223276964=:94815--