unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Zoltan Kemenczy" <kemenczy@rogers.com>
Subject: cc-engine:c-guess-basic-syntax  related problem in latest CVS
Date: Mon, 7 Jul 2003 22:11:46 -0400	[thread overview]
Message-ID: <000901c344f6$48b52320$0701a8c0@rim.net> (raw)

Try S-M-;  (c-guess-basic-syntax)  at different points within a buffer
visiting a C source file that is *write-protected*... - I get a "Buffer is
read-only: #<buffer foo.c>" message in many places.  If the buffer is made
writeable, the syntactic information is returned...

I poked around a bit with the debugger and since I don't know much about
cc-engine I only got as far as 'c-remove-in-sws' being invoked from
'c-backward-sws' (something about removing `c-in-sws' properties...),
couldn't come up with a fix... :-(

A related question (that started all this) is that the point value of the
syntactic information is now returned as '(syntax-symbol point-integer) list
(it used to be a cons cell: '(symbol . point-integer)).  This breaks my
gud-find-class function inside gud.el. I fixed that function (to use more
maintainable predicate functions on the syntactic info as opposed to the
(car (cdr...)), but before I submit the patch, I'd like to ask if this
change to the '(syntax-symbol point-integer) is there to stay...

Regards,
Zoltan Kemenczy
(gud-jdb)

                 reply	other threads:[~2003-07-08  2:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000901c344f6$48b52320$0701a8c0@rim.net' \
    --to=kemenczy@rogers.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).