[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: |
Sun, 09 Aug 2015 19:08:22 -0500 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <mailman.8033.1439136046.904.help-gnu-emacs@gnu.org>,
Emanuel Berg <embe8573@student.uu.se> wrote:
> Marcin Borkowski <mbork@mbork.pl> writes:
>
> >>> functions should be quoted with sharp-quote and not
> >>> just regular quote, i.e., #'my-function and not
> >>> 'my-function.
> >>
> >> Why?
> >
> > See other answers and/or the linked blog post.
>
> If you say something is absolutely so it is not too
> much asked if you yourself is able to explain why this
> is in a couple of sentences.
>
> Anyway, I just tried it in one case - as I have
> hundreds of 'functions none of which are
> #'sharp-quoted.
>
> It was - and now is, again - like this:
>
> (defun set-pane-scroll-keys (map)
> "Set MAP keys for vertical scrolling in panes."
> (define-key map "I" 'scroll-up-pane)
> (define-key map "K" 'scroll-down-pane) )
>
> However, changing it to sharp quotes doesn't seem to be
> anything a sharp programmer would do, as it results in
> the following compile warning:
>
> In end of data:
> global-keys.el:170:1:Warning: the following functions
> are not known to be defined: scroll-up-pane,
> scroll-down-pane
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?
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
- Re: How to quote a list of functions?, (continued)
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/08
- Re: How to quote a list of functions?, Marcin Borkowski, 2015/08/09
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/09
- Re: How to quote a list of functions?, Marcin Borkowski, 2015/08/09
- Message not available
- Re: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/09
Re: How to quote a list of functions?, Emanuel Berg, 2015/08/08
- Re: How to quote a list of functions?, Marcin Borkowski, 2015/08/09
- Message not available
- Re: How to quote a list of functions?, Barry Margolin, 2015/08/11
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/11
- Message not available
- Re: How to quote a list of functions?, Barry Margolin, 2015/08/12
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/12
- Re: How to quote a list of functions?, Stefan Monnier, 2015/08/12
- Re: How to quote a list of functions?, Emanuel Berg, 2015/08/12
Message not availableRe: How to quote a list of functions?, Pascal J. Bourguignon, 2015/08/13