GNU bug report logs - #6681
23.2; "Save Error" from semantic

Previous Next

Package: emacs;

Reported by: Tom Tromey <tromey <at> redhat.com>

Date: Tue, 20 Jul 2010 16:38:02 UTC

Severity: normal

Merged with 6342

Found in version 23.2

Done: David Engster <deng <at> randomsample.de>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 6681 <at> debbugs.gnu.org (full text, mbox):

From: Tom Tromey <tromey <at> redhat.com>
To: "Eric M. Ludlam" <eric <at> siege-engine.com>
Cc: 6681 <at> debbugs.gnu.org, Chong Yidong <cyd <at> stupidchicken.com>,
	Eric Ludlum <zappo <at> gnu.org>
Subject: Re: bug#6681: 23.2; "Save Error" from semantic
Date: Mon, 09 Aug 2010 09:14:20 -0600
>>>>> "Eric" == Eric M Ludlam <eric <at> siege-engine.com> writes:

Eric> Kai had a hook that expected a buffer to always exist in his c mode
Eric> hook.  Semantic's parser has to create c mode buffers with no file in
Eric> order to build up text from macros to parse it.

If I understand correctly, then I don't think I have this problem.
I tried making a c-mode buffer without a file, and I didn't see any
error.  I used:

(let ((buf (get-buffer-create "Zardoz")))
  (with-current-buffer buf
    (c-mode)))

I also looked at my various c-mode (and related) hooks and they all do
seem to check buffer-file-name before using it.

Is there something else I ought to try?

Tom




This bug report was last modified 12 years and 229 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.