From: Alan Mackenzie<none@example.invalid>
Subject: Re: font locking problem
Date: Wed, 5 May 2004 07:14:31 +0000 [thread overview]
Message-ID: <n84a7c.q5.ln@acm.acm> (raw)
In-Reply-To: c76vbr$jqh$1@mughi.cs.ubc.ca
Lowell Kirsh <lkirsh@cs.ubc.ca> wrote on Mon, 03 May 2004 19:32:26 -0700:
> I am having emacs problems. First, here is my entire .emacs file:
> (require 'font-lock)
> (require 'lazy-lock)
> (global-font-lock-mode t)
> (setq font-lock-support-mode 'lazy-lock-mode)
Would you tell us your Emacs version number (M-x emacs-version) and your
CC Mode version number (M-x c-version), please.
> Now here's my problem: I start up (GNU) emacs and then try to visit a
> java file. The computer beeps and in the minibuffer it says:
> "Wrong type argument: integer-or-marker-p, nil"
That's an internal coding error, probably in CC Mode. Try setting
`debug-on-error' (M-: (setq debug-on-error t)), then visit the file
again. That should give a stack dump.
> and doesn't display the file on the screen. But when I do a C-x b, it
> shows that the file has been loaded into a buffer. And there's one more
> problem - the java file buffer thinks it's been modified, even though it
> hasn't. When visiting that buffer, I try to undo but there is "no more
> undo information".
What's happening here is that it's started the font locking, but not
finished it. Font locking works by adding "text properties" (for example
"red text on black background") to bits of the buffer. Changing text
properties counts as changing the buffer (unfortunately, in my view).
Each time font locking has done its bit, it rubs out the "buffer-changed"
mark. Font locking also takes steps to prevent these text-property
changes going onto the undo list, because they're not what people
typically want to undo. Because the font locking has crashed, it leaves
the buffer in a "changed" state.
> Any ideas? This seems like a bug to me, but I don't want to jump to
> conclusions too soon.
Oh, it's definitely a bug. :-) The solution is likely to be along the
lines "please upgrade to ..... version ...., which can be downloaded from
<http://..../..../....>".
> Lowell
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
next prev parent reply other threads:[~2004-05-05 7:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-04 2:32 font locking problem Lowell Kirsh
2004-05-04 16:26 ` Kevin Rodgers
2004-05-04 22:36 ` Lowell Kirsh
2004-05-05 7:14 ` Alan Mackenzie [this message]
2004-05-05 21:12 ` Lowell Kirsh
2004-05-07 8:33 ` Alan Mackenzie
2004-05-08 3:25 ` Lowell Kirsh
2004-05-09 19:44 ` Stefan Monnier
2004-05-10 21:29 ` Lowell Kirsh
2004-05-11 15:45 ` Kevin Rodgers
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=n84a7c.q5.ln@acm.acm \
--to=none@example.invalid \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.