From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Grant Rettke Newsgroups: gmane.emacs.help Subject: Re: Querying available mode hooks in a given mode Date: Mon, 14 Apr 2014 14:29:33 -0500 Message-ID: References: <87ha5xg77a.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1397503804 31910 80.91.229.3 (14 Apr 2014 19:30:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Apr 2014 19:30:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 14 21:29:48 2014 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 1WZmZd-0007fN-TK for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Apr 2014 21:29:46 +0200 Original-Received: from localhost ([::1]:45365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZmZd-0003Gp-EI for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Apr 2014 15:29:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZmZS-0003Gk-W4 for help-gnu-emacs@gnu.org; Mon, 14 Apr 2014 15:29:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WZmZS-00085O-6s for help-gnu-emacs@gnu.org; Mon, 14 Apr 2014 15:29:34 -0400 Original-Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]:33701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WZmZR-00085G-W8 for help-gnu-emacs@gnu.org; Mon, 14 Apr 2014 15:29:34 -0400 Original-Received: by mail-ob0-f170.google.com with SMTP id uz6so9572633obc.15 for ; Mon, 14 Apr 2014 12:29:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=WKRshxvqIq3mmvpbH2Pql2JoswCmuNFlD95XYWWG1MI=; b=MApVuU1EiA19vVi4Lsdz6x1GPNLZsMIm8TfoRj0SBI1NFhqeihV9e1VHNHcjyas6t1 kpeNa+Zpv3L+19/jxLfaJZKB2tS6ICjNqTXU9WbDrkGdAjFGY6EXsSsFwNNrJgCj7uAo YtmTX5rI6zAobGoj1Qi1FgPrQmk50pIo4XgyR7NGrelLB08PTKcpeHrSGHOoaMzG/lu9 0yVXCGA4bJUi40nEY6q3PskkH4AOgJ6s2bhqH88UX55fOeSa63OHpGGgWlecaY4nRUrv DWDs3OUQ0g40lRsAbkY8lSwIW8dsGS3+fnorc4S1vbMUlUK8rh9j5mS72TK8ZyE4fyAJ ijqA== X-Received: by 10.182.22.33 with SMTP id a1mr3143867obf.60.1397503773298; Mon, 14 Apr 2014 12:29:33 -0700 (PDT) Original-Received: by 10.182.50.135 with HTTP; Mon, 14 Apr 2014 12:29:33 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: YFQZOzQvBWlILwhjjTf3YG5jGtY X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22a 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:97132 Archived-At: On Mon, Apr 14, 2014 at 2:27 PM, Stefan Monnier wrote: > You can probably use (boundp 'ess-foo-bar-hook) to test if the hook > is available. But that will only give the right answer after loading > the file which does (defvar ess-foo-bar-hook ...) or equivalent. Understood and thanks.