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: Pascal J. Bourguignon
Subject: Re: How to quote a list of functions?
Date: Mon, 24 Aug 2015 20:42:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Emanuel Berg <address@hidden> writes:

> "Pascal J. Bourguignon" <address@hidden>
> writes:
>
>> If you're not happy with the lisp-2-ness of emacs
>> lisp, you can always use edwin instead.
>
> Another thing that happens with this sharp quoting is
> you have to `require' a whole lot of stuff to get rid
> of all warnings of stuff not being known to be
> defined.  

It's nice to do this analysis.  Kudo.


You raise a very good point.  A lot of emacs configuration can and is
performed without having the corresponding packages loaded.  Notably,
with the autoload feature, packages are loaded only when you first use
an autoload command.  Therefore indeed, all the commands and functions
that are not autoload, won't be defined when you configure them, and
therefore you will have to use symbols to designate those functions
that will be defined in the future.  Or else you need to load them
first.



> Here is the worst example:
>
> ;; This file: http://user.it.uu.se/~embe8573/conf/emacs-init/global-keys.el
>
> (require 'align-new)
> (require 'buc)
> (require 'buffer-menu)
> (require 'caps-back)
> (require 'close)
> (require 'dired-x)
> (require 'edit)
> (require 'files-my)
> (require 'fill-new)
> (require 'gnus-my)
> (require 'group)
> (require 'help-new)
> (require 'kill)
> (require 'linux-shell)
> (require 'lisp-new)
> (require 'revert-buffer-my)
> (require 'scroll)
> (require 'shell-cli)
> (require 'spell-new)
> (require 'super)
> (require 'w3m-unisearch)
> (require 'window-new)
> (require 'yank-my)
>
> ;; ...

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


reply via email to

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