From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.devel Subject: Re: with a fresh emacs "(buffer-local-value fundamental-mode (current-buffer))" error. Date: Thu, 09 Apr 2009 06:15:49 +0800 Message-ID: <49DD2215.2050306@gnu.org> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1239228998 29819 80.91.229.12 (8 Apr 2009 22:16:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Apr 2009 22:16:38 +0000 (UTC) Cc: emacs-devel@gnu.org To: MON KEY Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 09 00:17:58 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Lrg5k-0007A8-V0 for ged-emacs-devel@m.gmane.org; Thu, 09 Apr 2009 00:17:57 +0200 Original-Received: from localhost ([127.0.0.1]:51834 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrg4M-0006tY-Ho for ged-emacs-devel@m.gmane.org; Wed, 08 Apr 2009 18:16:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrg4H-0006si-EA for emacs-devel@gnu.org; Wed, 08 Apr 2009 18:16:25 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrg4B-0006rN-V6 for emacs-devel@gnu.org; Wed, 08 Apr 2009 18:16:24 -0400 Original-Received: from [199.232.76.173] (port=40475 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrg4B-0006rE-Li for emacs-devel@gnu.org; Wed, 08 Apr 2009 18:16:19 -0400 Original-Received: from ti-out-0910.google.com ([209.85.142.191]:43634) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lrg4B-0006ei-Ai for emacs-devel@gnu.org; Wed, 08 Apr 2009 18:16:19 -0400 Original-Received: by ti-out-0910.google.com with SMTP id y8so201951tia.10 for ; Wed, 08 Apr 2009 15:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=PPFEOtGM+2S2/qJoMBnqVhBAX8R2EWKPbB2/DDoUMkU=; b=gtH+cTnQ9F6l18flgAFoCaQpkxsrCrDxroddy2v4j8RmVlpdysdGbABArQoS0Kxbay AptdDoiWgfklIsjPeH9QUMWews7vhbMV/djz3EBvXJcvhJc/Movq9CFSZKkInLUpy/Uz ljT+rHyUyyDnnl0/8edA5XA3DaJOP9z8ja67s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=dS7UOqWhm2LJUW0WAR2Hczss5jMI8NmSMr7YW6d+LaX3Q3lALRUyxYVATJYharHJPy Qxn0YaqZ778Fc8vUIkByrQtyQ38A6zfyeODE42+OzIuJMyTsfAzoe+coTBrfncEAwIvf xj2YxSfbCTX0/2HQ6iMwiZ/dTmgSth+4c3S1M= Original-Received: by 10.110.46.3 with SMTP id t3mr2328711tit.45.1239228976400; Wed, 08 Apr 2009 15:16:16 -0700 (PDT) Original-Received: from ?192.168.249.26? ([118.101.25.89]) by mx.google.com with ESMTPS id j5sm621063tid.1.2009.04.08.15.16.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 08 Apr 2009 15:16:15 -0700 (PDT) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:110154 Archived-At: MON KEY wrote: > Is this a bug, or am I missing something? > > (buffer-local-value fundamental-mode (current-buffer)) > > throws an error Not a bug, there is no variable by that name. > This behavior happens with minor and major modes. > As you observed with longlines-mode, it does not happen with minor-mode variables once they have been loaded and the variable is known to Emacs.