From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "John W. Eaton" Newsgroups: gmane.comp.gnu.octave.general,gmane.emacs.bugs Subject: Re: %-Comments in Emacs Octave-Mode Date: Mon, 27 Oct 2003 15:12:30 -0600 Message-ID: <16285.35390.659885.780388@devzero.bogus.domain> References: <20031024134043.78714d06.christoph.dalitz@hs-niederrhein.de> <16281.26431.103647.908189@devzero.bogus.domain> <20031027215316.6cdc4f61.christoph.dalitz@hs-niederrhein.de> 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 1067289242 31392 80.91.224.253 (27 Oct 2003 21:14:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Oct 2003 21:14:02 +0000 (UTC) Cc: "John W. Eaton" , 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:13:58 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 1AEEgY-0005H0-00 for ; Mon, 27 Oct 2003 22:13:58 +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 h9RLCWfV022631; Mon, 27 Oct 2003 15:12:32 -0600 Original-Received: (from list@localhost) by bevo.che.wisc.edu (8.12.6/8.12.6/Debian-7) id h9RLCWRT022615; Mon, 27 Oct 2003 15:12:32 -0600 Resent-Date: Mon, 27 Oct 2003 15:12:31 -0600 X-Authentication-Warning: bevo.che.wisc.edu: list set sender to help-octave-request@bevo.che.wisc.edu using -f Original-To: Christoph Dalitz In-Reply-To: <20031027215316.6cdc4f61.christoph.dalitz@hs-niederrhein.de> X-Mailer: VM 7.17 under Emacs 21.2.1 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:646 gmane.emacs.bugs:6040 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:6040 On 27-Oct-2003, Christoph Dalitz wrote: | 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? Use %% comments, or modify the code so that it does what you want? | > 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. What is your definition of latest? I think you can get 21.x with the testing distribution. the real problem here is that it is much more complicated to decide whether ' should be a transpose operator or a string delimiter. I don't really care whether octave-mode supports these features (I'm happy with " for strings and # for comments) but I would be happy to accept changes that would make this work better. jwe ------------------------------------------------------------- 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 -------------------------------------------------------------