help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to quote a list of functions?


From: Barry Margolin
Subject: Re: How to quote a list of functions?
Date: Tue, 11 Aug 2015 01:16:23 -0500
User-agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X)

In article <address@hidden>,
 Emanuel Berg <address@hidden> wrote:

> Barry Margolin <address@hidden> writes:
> 
> > You consider that a misfeature? Isn't it a feature
> > that it warns you about possible typos in the
> > function names? Why are you binding keys to
> > nonexistent functions?
> 
> They are existing when I use them because I have
> hundreds of key bindings that work like that.

So? The compiler runs when you byte-compile the file, there's no way it 
can know what the state will be when you run it.

> The compiler has no issues either as it didn't produce
> any warnings until I added the sharp quotes. Don't you
> think the compiler should warn you when you do
> something wrong, and encourage you when you do
> something right - not the other way around?

Yes, but there's a limit to its knowledge. When you use the sharp 
quotes, you're telling it that the symbol is being used as a function 
name, not just data. Given this context, it performs function-related 
checks.

> Anyway I'll add sharp quotes and see how to please the
> compiler - stay tuned...

-- 
Barry Margolin, address@hidden
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


reply via email to

[Prev in Thread] Current Thread [Next in Thread]