From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: Re: Docs submitted (really #') Date: Wed, 11 Feb 2009 10:41:07 -0600 Message-ID: <4992FFA3.9070004@sift.info> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LXI9F-0002no-2X for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 11:41:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LXI9D-0002lK-FV for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 11:41:16 -0500 Received: from [199.232.76.173] (port=33764 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LXI9D-0002ks-5P for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 11:41:15 -0500 Received: from outbound-mail-118.bluehost.com ([69.89.22.18]:50202) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LXI9A-0005IP-16 for emacs-orgmode@gnu.org; Wed, 11 Feb 2009 11:41:12 -0500 In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org > Date: Wed, 11 Feb 2009 09:58:43 -0500 > From: Bernt Hansen > Subject: [Orgmode] Re: Docs submitted > To: Carsten Dominik > Cc: emacs-orgmode@gnu.org, "Tom Breton \(Tehom\)" > Message-ID: <87fxilggv0.fsf@gollum.intra.norang.ca> > Content-Type: text/plain; charset=us-ascii > > Carsten Dominik writes: > >> On Feb 11, 2009, at 2:08 AM, Tom Breton (Tehom) wrote: >> >>> (eval-after-load 'org >>> '(progn >>> ;;^--HERE. >>> (add-to-list 'org-todo-setup-filter-hook >>> #'org-choose-setup-filter) >>> (add-to-list 'org-todo-get-default-hook >>> #'org-choose-get-default-mark) >>> (add-to-list 'org-trigger-hook >>> #'org-choose-keep-sensible) >>> (add-to-list 'org-todo-interpretation-widgets >>> '(:tag "Choose (to record decisions)" choose) >>> 'append) >>> )) >>> >> Hi Tom, >> >> maybe you can educate me: I have never understood what the "#" does >> in code like the one you have here. You are using it, so maybe you >> know? > > As I understand it (from my book on Common Lisp) #'some-function is used > to quote function names. 'some-function quotes a variable. > > It means "Get me the function with the following name" - without the #', > Lisp would treat some-function as the name of a variable and look up the > value of the variable, not the function. > In Common Lisp, #' is a reader macro that is an abbreviation for function. So #'foo is read as (function foo). I'm not at all sure what #' means in elisp, which is not the same programming language. A quick peek at the Elisp info file didn't find reader macros anywhere in there. AFAIK for defining hooks a symbol will be interpreted as a function name, won't it? So replacing all of the #'s with 's above would work, wouldn't it? Best, r