From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#6681: 23.2; "Save Error" from semantic Date: Mon, 09 Aug 2010 09:14:20 -0600 Message-ID: References: <87k4oceeys.fsf@stupidchicken.com> <4C536CD5.8090808@siege-engine.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281368323 17404 80.91.229.12 (9 Aug 2010 15:38:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 9 Aug 2010 15:38:43 +0000 (UTC) Cc: Chong Yidong , 6681@debbugs.gnu.org, Eric Ludlum To: "Eric M. Ludlam" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 09 17:38:41 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OiUQy-00014Q-G9 for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Aug 2010 17:38:40 +0200 Original-Received: from localhost ([127.0.0.1]:52675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiUQx-0008GX-Pe for geb-bug-gnu-emacs@m.gmane.org; Mon, 09 Aug 2010 11:38:39 -0400 Original-Received: from [140.186.70.92] (port=55305 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OiUQm-0008EF-JH for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 11:38:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OiUQl-0008Fn-De for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 11:38:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51914) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiUQl-0008Ff-9P for bug-gnu-emacs@gnu.org; Mon, 09 Aug 2010 11:38:27 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OiU37-0007jZ-Rz; Mon, 09 Aug 2010 11:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Tromey Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 09 Aug 2010 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6681 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6681-submit@debbugs.gnu.org id=B6681.128136682529720 (code B ref 6681); Mon, 09 Aug 2010 15:14:01 +0000 Original-Received: (at 6681) by debbugs.gnu.org; 9 Aug 2010 15:13:45 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiU2q-0007jJ-VJ for submit@debbugs.gnu.org; Mon, 09 Aug 2010 11:13:45 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OiU2p-0007jE-3J for 6681@debbugs.gnu.org; Mon, 09 Aug 2010 11:13:43 -0400 Original-Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o79FEN8M013571 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 9 Aug 2010 11:14:24 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o79FEMIw027134; Mon, 9 Aug 2010 11:14:23 -0400 Original-Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id o79FELtb014640; Mon, 9 Aug 2010 11:14:21 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id 09B5C3781A0; Mon, 9 Aug 2010 09:14:20 -0600 (MDT) X-Attribution: Tom In-Reply-To: <4C536CD5.8090808@siege-engine.com> (Eric M. Ludlam's message of "Fri, 30 Jul 2010 20:22:45 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 09 Aug 2010 11:14:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39358 Archived-At: >>>>> "Eric" == Eric M Ludlam 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