From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: What does "lacks a prefix" mean? Date: Wed, 08 Jul 2015 12:45:20 -0400 Organization: A noiseless patient Spider Message-ID: References: <1e0ad02f-ca3e-495c-bb85-61f77090d31d@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1436375520 20524 80.91.229.3 (8 Jul 2015 17:12:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jul 2015 17:12:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 08 19:12:00 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZCsY5-0003u6-6M for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2015 18:50:17 +0200 Original-Received: from localhost ([::1]:36017 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZCsY4-00077b-NB for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Jul 2015 12:50:16 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="7929"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+g1buzwqD3i7dB+/fo6Wnq" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:tE+cMZueKrYl9DIGx09Qogva+T8= Original-Xref: usenet.stanford.edu gnu.emacs.help:213244 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105531 Archived-At: In article <1e0ad02f-ca3e-495c-bb85-61f77090d31d@googlegroups.com>, BobD wrote: > My elisp: > > (defun blabba () > (defvar n 0) > ) > > byte-compile-file yields this: > > In blabba: > test.el:1:8:Warning: global/dynamic var `n' lacks a prefix > > What does my elisp lack? > Other than asking here, where can I learn what "lacks a prefix" means? The convention in Emacs Lisp is that global variables should have names of the form packagename-variable. Giving a global variable a name without a package prefix is a good way to have collisions between different packages. -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***