From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/47558 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.gnus.general Subject: Re: Cannot open load file: tool-bar Date: Tue, 05 Nov 2002 19:03:28 +0100 Sender: owner-ding@hpc.uh.edu Message-ID: References: <847kfu5w3g.fsf@crybaby.uni-duisburg.de> <84y989mott.fsf@crybaby.uni-duisburg.de> <84iszdqc5h.fsf@crybaby.uni-duisburg.de> <84n0oompug.fsf@crybaby.uni-duisburg.de> <841y60exlw.fsf@crybaby.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1036519707 15367 80.91.224.249 (5 Nov 2002 18:08:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2002 18:08:27 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18987k-0003zO-00 for ; Tue, 05 Nov 2002 19:08:24 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 18984n-0006uQ-00; Tue, 05 Nov 2002 12:05:21 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 05 Nov 2002 12:06:05 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id MAA06652 for ; Tue, 5 Nov 2002 12:05:38 -0600 (CST) Original-Received: (qmail 21863 invoked by alias); 5 Nov 2002 18:04:29 -0000 Original-Received: (qmail 21858 invoked from network); 5 Nov 2002 18:04:29 -0000 Original-Received: from pfepa.post.tele.dk (193.162.153.2) by gnus.org with SMTP; 5 Nov 2002 18:04:29 -0000 Original-Received: from defun.localdomain (0xc3d7e0db.esnxr4.ras.tele.dk [195.215.224.219]) by pfepa.post.tele.dk (Postfix) with ESMTP id 6A09348125D for ; Tue, 5 Nov 2002 19:04:23 +0100 (CET) Original-To: ding@gnus.org In-Reply-To: <841y60exlw.fsf@crybaby.uni-duisburg.de> (kai.grossjohann@uni-duisburg.de's message of "Tue, 05 Nov 2002 18:26:51 +0100") User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-redhat-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:47558 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:47558 kai.grossjohann@uni-duisburg.de (Kai Großjohann) writes: > /---- > | ;; Emacs 21 tool bar. Should be no-op otherwise. > | (defun gnus-group-make-tool-bar () > | (if (and > | (condition-case nil (require 'tool-bar) (error nil)) > | (fboundp 'tool-bar-add-item-from-menu) > \---- > > It comes from gnus-group.el. As you can see, it tries to load the > file, ignoring errors, and if that fails it skips the code that only > works for Emacs 21. > > So, what can we do? Couldn't we use (featurep 'tool-bar)? This should only return t in Emacs 21 versions with tool-bar support.