From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Christoph Dalitz Newsgroups: gmane.comp.gnu.octave.general,gmane.emacs.bugs Subject: Re: %-Comments in Emacs Octave-Mode Date: Mon, 27 Oct 2003 21:53:16 +0100 Message-ID: <20031027215316.6cdc4f61.christoph.dalitz@hs-niederrhein.de> References: <20031024134043.78714d06.christoph.dalitz@hs-niederrhein.de> <16281.26431.103647.908189@devzero.bogus.domain> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1067288415 27778 80.91.224.253 (27 Oct 2003 21:00:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2003 21:00:15 +0000 (UTC) Cc: help-octave@bevo.che.wisc.edu, bug-gnu-emacs@gnu.org Original-X-From: help-octave-request@bevo.che.wisc.edu Mon Oct 27 22:00:13 2003 Return-path: Original-Received: from bevo.che.wisc.edu ([128.104.177.141]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEETF-0004BV-00 for ; Mon, 27 Oct 2003 22:00:13 +0100 Original-Received: from bevo.che.wisc.edu (list@localhost [127.0.0.1]) by bevo.che.wisc.edu (8.12.6/8.12.6/Debian-7) with ESMTP id h9RKwefV020030; Mon, 27 Oct 2003 14:58:41 -0600 Original-Received: (from list@localhost) by bevo.che.wisc.edu (8.12.6/8.12.6/Debian-7) id h9RKwemb020014; Mon, 27 Oct 2003 14:58:40 -0600 Resent-Date: Mon, 27 Oct 2003 14:58:40 -0600 X-Authentication-Warning: bevo.che.wisc.edu: list set sender to help-octave-request@bevo.che.wisc.edu using -f Original-To: "John W. Eaton" In-Reply-To: <16281.26431.103647.908189@devzero.bogus.domain> X-Mailer: Sylpheed version 0.8.10claws13 (GTK+ 1.2.10; i686-pc-linux-gnu) Resent-Message-ID: Resent-From: help-octave@bevo.che.wisc.edu X-Mailing-List: X-Loop: help-octave@bevo.che.wisc.edu List-Post: List-Help: List-Subscribe: List-Unsubscribe: Precedence: list Resent-Sender: help-octave-request@bevo.che.wisc.edu Errors-To: help-octave-request@bevo.che.wisc.edu Resent-Bcc: Xref: main.gmane.org gmane.comp.gnu.octave.general:645 gmane.emacs.bugs:6039 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6039 On Fri, 24 Oct 2003 12:54:07 -0500 "John W. Eaton" wrote: > > | just observed that the Emacs octave-mode does not recognize lines > | beginning wiht % as comment lines. > > Please try the following patch. > > - (modify-syntax-entry ?\% "." table) ; see above > + (modify-syntax-entry ?\% "<" table) > Thanks for the hint. I could achieve the same with the entry (add-hook 'octave-mode-hook '(lambda () (modify-syntax-entry ?\% "<"))) in my ~/.emacs file. There is one quibble yet: '%'-comments are indented to end of the line rather than left were they are put. Is there a way to make '%' comments behave like '##' comments? > The problem that the deleted comment > refers to has apparently been fixed, so indenting and font locking > both appear to work properly now for things like > > sprintf ("%s" "some string") > This works correctly, but sprintf ('%s', 'some string') not. I am using emacs 20.7 which ships with the latest Debian. Thanks, Christoph ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------