From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: buffer local variables handled wrong [9.0.5 (release_9.0.5-497-g5bc540 @ /home/hs/.emacs.d/lib/org-mode/lisp/)] Date: Sat, 03 Jun 2017 22:46:01 +0200 Message-ID: <87a85olrzq.fsf@nicolasgoaziou.fr> References: <20170603114859.GE7145@seven> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34895) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dHFw5-0001zm-UE for emacs-orgmode@gnu.org; Sat, 03 Jun 2017 16:46:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dHFw2-0006Sa-Qe for emacs-orgmode@gnu.org; Sat, 03 Jun 2017 16:46:13 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38785) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dHFw2-0006Pu-Ja for emacs-orgmode@gnu.org; Sat, 03 Jun 2017 16:46:10 -0400 In-Reply-To: <20170603114859.GE7145@seven> (Stefan-W. Hahn's message of "Sat, 3 Jun 2017 13:48:59 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Stefan-W. Hahn" Cc: emacs-orgmode@gnu.org Hello, "Stefan-W. Hahn" writes: > I use a minor mode (moccur-edit-mode, seems a little bit old) which > initializes one variable in this way: > > ,---- > | (defvar moccur-edit-old-content) > | (make-local-variable 'moccur-edit-old-content) > `---- > > This leads to following result in (buffer-local-variables): > > ,---- > | ... (moccur-edit-file-overlays) moccur-edit-old-content (company-prefix) ... > `---- > > I think this is correct and happens not only by the used minor-mode. > > When doing org-capture now I got a lisp error: > > Debugger entered--Lisp error: listp moccur-edit-old-content > > This error comes from org-clone-local-variables, because there the > prediction for local variables is always to be a list. Fixed. Thank you for the report and the analysis. Regards, -- Nicolas Goaziou